ant-design-mobile icon indicating copy to clipboard operation
ant-design-mobile copied to clipboard

[Picker] Picker Column support disabled certain option

Open anysunflower opened this issue 2 years ago • 1 comments

Version of antd-mobile

~5.10.2

What is this feature about?

Picker column Item支持可以disabled某个具体的item 场景是: 比如历史数据当中有选项A的历史数据 但是新的业务场景中,如果对字段进行修改,不允许再修改成选项A 因此选项A的展示需要兼容,但是下拉不允许选择

效果类似,antd中select的Option disabled

image

anysunflower avatar May 30 '22 07:05 anysunflower

不确定会不会支持,因为从交互的角度来讲可能会对用户有些迷惑性,明明拖拽到某个选项了却会自动弹开

目前推荐的解决方法是业务项目中自己对 columns 做个 filter 处理

awmleer avatar May 30 '22 13:05 awmleer