Replies: 1 comment 4 replies
-
You use VaDropdown and VaTreeView to make own component. <script setup lang="ts">
// Define props
const vModel = // define v-model
const selectedText = computed(() => /** Convert nodes to text */)
</script>
<template>
<VaDropdown>
<template #anchor>
<VaInput :model-value=""selectedText />
</template>
<VaDropdownContent>
<VaTreeView v-model="vModel" :nodes="$props.options" selectable expand-all />
</VaDropdownContent>
</VaDropdown>
</template> |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
The tree selector of the dropdown menu, it combines the functions of components
VaTreeView
andVaSelect
Unfortunately, I haven't found a way to create a select with nesting level and the ability to select any level of this nesting.
What do you think about it?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions