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

tree-select 搜索后元素重复 #3370

Open
1 task
tclxeric-qiu opened this issue Dec 6, 2024 · 0 comments
Open
1 task

tree-select 搜索后元素重复 #3370

tclxeric-qiu opened this issue Dec 6, 2024 · 0 comments
Labels
💤 Inactive Inactive issues

Comments

@tclxeric-qiu
Copy link

tclxeric-qiu commented Dec 6, 2024

Basic Info

image

`

{{ item?.label }}
<script> import { ref } from 'vue';

export default {
setup() {
const selected = ref([]);
const treeCheckedStrategy = ref('all');

return {
  selected,
  treeCheckedStrategy,
  strategyOptions,
  treeData,
};

},
};

const strategyOptions = [
{
value: 'all',
label: 'show all'
},
{
value: 'parent',
label: 'show parent'
},
{
value: 'child',
label: 'show child'
}
];

const treeData = [
{
title: 'Trunk 0-0',
value: 'Trunk 0-0',
key: '0-0',
children: [
{
title: 'Leaf 0-0-1',
value: 'Leaf 0-0-1',
key: '0-0-1',
},
{
title: 'Leaf 0-1-1',
value: 'Leaf 0-1-1',
key: '0-1-1',
},
{
title: 'Leaf 0-1-2',
value: 'Leaf 0-1-2',
key: '0-1-2',
}
],
},
{
title: 'Trunk 0-1',
value: 'Trunk 0-1',
key: '0-1',
children: [
{
title: 'Branch 0-1-1',
value: 'Branch 0-1-1',
key: '0-1-1',
},
{
title: 'Leaf 0-1-2',
value: 'Leaf 0-1-2',
key: '0-1-2',
},
],
},
{
title: 'Trunk 0-2',
value: 'Trunk 0-2',
key: '0-2',
children: [
{
title: 'Branch 0-1-1',
value: 'Branch 0-1-1',
key: '0-1-1',
}
],
},
];
</script>
`

@github-actions github-actions bot added the 💤 Inactive Inactive issues label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💤 Inactive Inactive issues
Projects
None yet
Development

No branches or pull requests

1 participant