Skip to content

[Feature Request]Tree组件设置disabled后标题添加禁用样式&细分disabled属性 #112

@Exrick

Description

@Exrick

What problem does this feature solve?

  • 目前ViewUI不显示复选框后设置disabled后无禁用样式标识,用户无法区别

https://run.iviewui.com/evJ4Um15

image

可细分disabled属性禁用复选框或item

image

https://ant.design/components/tree-cn/

image

https://www.naiveui.com/zh-CN/light/components/tree

image

What does the proposed API look like?

新增checkboxDisabled属性

disabled属性增加禁用样式

image

color: var(--color-disabled);
cursor: not-allowed;

参考Ant Design https://ant.design/components/tree-cn/
参考Naive UI https://www.naiveui.com/zh-CN/light/components/tree

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions