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

picker联级选择器失效问题 #136

Open
Veaxe opened this issue Oct 21, 2024 · 0 comments
Open

picker联级选择器失效问题 #136

Veaxe opened this issue Oct 21, 2024 · 0 comments

Comments

@Veaxe
Copy link

Veaxe commented Oct 21, 2024

问题描述:
除了数组第一项没有children元素外其他元素都有children的情况下,导致picker只渲染了数组的第一层。反之第一项有children则正常。

正常数据
const _options = ref([ { label: '选项1', value: '1', children: [ { label: '选项1-1', value: '1-1' }, { label: '选项1-2', value: '1-2' } ] }, { label: '选项2', value: '2', children: [ { label: '选项2-1', value: '2-1', children: [{ label: '选项2-1-1', value: '2-1-1', }] }, { label: '选项2-2', value: '2-2' } ] }, { label: '选项3', value: '3', children: [ { label: '选项3-1', value: '3-1', }, { label: '选项3-2', value: '3-2' }] }, ])
image

异常数据
const _options = ref([ { label: '选项1', value: '1' }, { label: '选项2', value: '2', children: [ { label: '选项2-1', value: '2-1', children: [{ label: '选项2-1-1', value: '2-1-1', }] }, { label: '选项2-2', value: '2-2' } ] }, { label: '选项3', value: '3', children: [ { label: '选项3-1', value: '3-1', }, { label: '选项3-2', value: '3-2' }] }, ])
image

@Veaxe Veaxe changed the title picker级联选择器的问题 picker联级选择器失效问题 Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant