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

TreeOption Properties, set 'type'='group', treeNode can't expand. #3388

Closed
iwnasup opened this issue Jul 29, 2022 · 6 comments
Closed

TreeOption Properties, set 'type'='group', treeNode can't expand. #3388

iwnasup opened this issue Jul 29, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@iwnasup
Copy link
Contributor

iwnasup commented Jul 29, 2022

TuSimple/naive-ui version (版本)

2.32.0

Vue version (Vue 版本)

3.2.33

Browser and its version (浏览器及其版本)

Chrome(103.0.5060.134)

System and its version (系统及其版本)

Windows 11

Node version (Node 版本)

v16.15.0

Reappearance link (重现链接)

https://codesandbox.io/s/festive-curran-178sy4?file=/src/Demo.vue

Reappearance steps (重现步骤)

run it.

Expected results (期望的结果)

treeNode can expand

Actual results (实际的结果)

treeNode can't expand

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Jul 29, 2022
@Sepush
Copy link
Collaborator

Sepush commented Jul 30, 2022

treeOption does not have a type field
https://www.naiveui.com/en-US/os-theme/components/tree#TreeOption-Properties

@Sepush Sepush closed this as completed Jul 30, 2022
@iwnasup
Copy link
Contributor Author

iwnasup commented Jul 30, 2022

treeOption没有type字段 https://www.naiveui.com/en-US/os-theme/components/tree#TreeOption-Properties

对,没有,但是加了之后会出现这个链接里所展示的问题:https://codesandbox.io/s/festive-curran-178sy4?file=/src/Demo.vue
加了type=“group”,会导致节点无法展开,而且子节点会出现。
我不是想要你们加type属性,而是希望可以解决这个问题。

@Sepush
Copy link
Collaborator

Sepush commented Jul 30, 2022

treeOption没有type字段 https://www.naiveui.com/en-US/os-theme/components/tree#TreeOption-Properties

对,没有,但是加了之后会出现这个链接里所展示的问题:https://codesandbox.io/s/festive-curran-178sy4?file=/src/Demo.vue 加了type=“group”,会导致节点无法展开,而且子节点会出现。 我不是想要你们加type属性,而是希望可以解决这个问题。

既然没有这个属性 那就不应该传的 你不设置就是正常的

@iwnasup
Copy link
Contributor Author

iwnasup commented Jul 30, 2022

treeOption没有type字段 https://www.naiveui.com/en-US/os-theme/components/tree#TreeOption-Properties

对,没有,但是加了之后会出现这个链接里所展示的问题:https://codesandbox.io/s/festive-curran-178sy4?file=/src/Demo.vue 加了type=“group”,会导致节点无法展开,而且子节点会出现。 我不是想要你们加type属性,而是希望可以解决这个问题。

既然没有这个属性 那就不应该传的 你不设置就是正常的

确实如此。那么可以请你们给treeNode加一个可以添加自定义属性的功能吗?这样我就可以使用type了

@Sepush Sepush reopened this Jul 30, 2022
@07akioni
Copy link
Collaborator

这是个问题,会处理一下 @iwnasup

@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Jul 30, 2022
@iwnasup
Copy link
Contributor Author

iwnasup commented Jul 30, 2022

这是个问题,会处理一下 @iwnasup

感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants