We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.10.6
No response
比如我想展开 1、1.1、1.1.1 三个层级时 当我点击按钮设置 expanded 的值后 只能展开 1 这一级, 1.1 和1.1.1 无法展开 ` <t-button @click="handleOpen">展开某一级 <t-tree ref="tree" :data="items" hover v-model:expanded="expandedClassify" :check-strictly="checkStrictly" :load="load" value-mode="all" @load="onLoad" />
Vue(3.5.13)
The text was updated successfully, but these errors were encountered:
👋 @mayday97,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
No branches or pull requests
tdesign-vue-next 版本
1.10.6
重现链接
No response
重现步骤
比如我想展开 1、1.1、1.1.1 三个层级时 当我点击按钮设置 expanded 的值后 只能展开 1 这一级, 1.1 和1.1.1 无法展开
<script setup> import { ref } from 'vue'; const checkable = ref(true); const checkStrictly = ref(false); const expandedClassify=ref([]) const items = ref([ { label: '1', value: '1', children: true, }, { label: '2', value: '2', children: true, }, ]); const onLoad = (state) => { console.log('on load:', state); }; const load = (node) => { return new Promise((resolve) => { setTimeout(() => { let nodes = []; if (node.level < 6) { nodes = [ { label: `${node.label}.1`, value: `${node.value}.1`, children: true, }, { label: `${node.label}.2`, value: `${node.value}.2`, children: true, }, ]; } resolve(nodes); }, 1000); }); }; function handleOpen(){ // 比如展开到 1.1.1 const arr=['1','1.1','1.1.1'] expandedClassify.value=arr } </script>``
<t-button @click="handleOpen">展开某一级
<t-tree
ref="tree"
:data="items"
hover
v-model:expanded="expandedClassify"
:check-strictly="checkStrictly"
:load="load"
value-mode="all"
@load="onLoad"
/>
期望结果
No response
实际结果
No response
框架版本
Vue(3.5.13)
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: