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

[Cascader ] 使用load模式下 搜索不出选项里的children为true的选项 #4637

Open
jesseice opened this issue Oct 10, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@jesseice
Copy link

tdesign-vue-next 版本

1.10.2

重现链接

https://codesandbox.io/p/sandbox/tdesign-vue-next-cascader-load-demo-forked-qr2dlt?file=%2Fsrc%2Fdemo.vue%3A32%2C22

重现步骤

<script setup> import { ref } from "vue"; const options = ref([ { label: "选项1", value: "1", children: true, }, { label: "选项2", value: "2", children: true, }, ]); const value = ref(); const load = (node) => new Promise((resolve) => { setTimeout(() => { let nodes = []; if (node.level < 2) { nodes = [ { label: `${node.label}.1`, children: node.level < 1, }, { label: `${node.label}.2`, children: node.level < 1, }, ]; } resolve(nodes); }, 1000); }); </script>

期望结果

可以筛选所有选项

实际结果

只筛选了选项的children为false的项

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @jesseice,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the 🐞 bug Something isn't working label Oct 10, 2024
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

2 participants