-
而且使用filterOption搜索时,第二个参数回传内容自动包含label而不是option组件实例,因此无需使用option.props.children方式进行label匹配,换成options.children,虽然支持,但是也标上了deprecated标签 但是有一个问题就是Option组件可以设置disabled,但是这种方式如何设置呢? 版本:antd@4.9.2 提前感谢! |
Beta Was this translation helpful? Give feedback.
Answered by
yoyo837
Dec 15, 2020
Replies: 2 comments 3 replies
-
options={[{
disabled: true
}]} 试试 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tianzhich
-
jsx换js就不习惯啦?😂 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
试试