Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

【select】select组件使用options属性替代Option组件时,disabled属性如何设置?

文档说使用options属性可以获得更好性能:image.png

而且使用filterOption搜索时,第二个参数回传内容自动包含label而不是option组件实例,因此无需使用option.props.children方式进行label匹配,换成options.children,虽然支持,但是也标上了deprecated标签
image.png

但是有一个问题就是Option组件可以设置disabled,但是这种方式如何设置呢?

版本:[email protected]

提前感谢!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...