Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picker 选择器 数据源设置disabled 为 true 依然能选择 #2575

Open
spwuc opened this issue Sep 6, 2024 · 1 comment
Open

Picker 选择器 数据源设置disabled 为 true 依然能选择 #2575

spwuc opened this issue Sep 6, 2024 · 1 comment

Comments

@spwuc
Copy link

spwuc commented Sep 6, 2024

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.6.17

平台

weapp

重现链接

重现步骤

Picker 选择器 数据源设置disabled 为 true 依然能选择

期望的结果是什么?

希望可以设置disabled后禁用

实际的结果是什么?

设置disabled后依然可以选择

环境信息

No response

其他补充信息

No response

@zhangminggeek
Copy link
Contributor

export interface PickerOption {
  text: string | number
  value: string | number
  disabled?: boolean
  children?: PickerOption[]
  className?: string | number
}

ts 中定义了 disabled 但文档中没有体现功能,代码里也没有用到这个字段

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants