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
问题描述: 除了数组第一项没有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' }] }, ])
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' }] }, ])
异常数据 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' }] }, ])
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' }] }, ])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述:
除了数组第一项没有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' }] }, ])
异常数据
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' }] }, ])
The text was updated successfully, but these errors were encountered: