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

期望NCascader组件中,增加一个props可以替代 CascaderOption 中的 disabled 字段名 #3338

Closed
AustinQin opened this issue Jul 25, 2022 · 4 comments · Fixed by #3344
Assignees
Labels
feature request New feature or request priority: low

Comments

@AustinQin
Copy link

This function solves the problem (这个功能解决的问题)

当服务端接口返回的数据中,用来表示禁用选项的字段名不为disabled时,需要遍历数据来更改字段名为disabled,数据量大时不合适。

Expected API (期望的 API)

disabled-field

@github-actions github-actions bot added the feature request New feature or request label Jul 25, 2022
@Sepush
Copy link
Collaborator

Sepush commented Jul 25, 2022

不会改 disabled = yourdisabled

@Sepush Sepush closed this as completed Jul 25, 2022
@07akioni 07akioni reopened this Jul 25, 2022
@07akioni
Copy link
Collaborator

@Sepush 这个倒是可以做,treemate 提供了这个配置的一个选项,只不过没通过 naive 暴露出去

@07akioni
Copy link
Collaborator

07akioni commented Jul 25, 2022

image

@07akioni
Copy link
Collaborator

07akioni commented Jul 25, 2022

不过这个事情优先级依然不是很高,欢迎 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants