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
const testOptions = [ { value: 1, label: '数学', children: [ { value: 3, label: '小学' }, { value: 15, label: '初中' } ] }, { value: 2, label: '英语', children: [ { value: 3, label: '小学' }, { value: 15, label: '初中' } ] } ] 参考这种数据类型的options,每个父选项中的子选项的值都是一样的,假如我选择的是value为2的父选项中的value为15的子选项(英语/初中),我希望我的value可以以这样的形式展现[2,15],如果是在新建的场景下,我确实可以使用update-value的回调中拿到pathValue来获取父级,但如果是一个详情页面,需要数据回显,我如何能确认我的父选项呢?
希望能将cascader的value可以增加父选项的值
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题的清晰而简明的描述
const testOptions = [
{
value: 1,
label: '数学',
children: [
{
value: 3,
label: '小学'
},
{
value: 15,
label: '初中'
}
]
},
{
value: 2,
label: '英语',
children: [
{
value: 3,
label: '小学'
},
{
value: 15,
label: '初中'
}
]
}
] 参考这种数据类型的options,每个父选项中的子选项的值都是一样的,假如我选择的是value为2的父选项中的value为15的子选项(英语/初中),我希望我的value可以以这样的形式展现[2,15],如果是在新建的场景下,我确实可以使用update-value的回调中拿到pathValue来获取父级,但如果是一个详情页面,需要数据回显,我如何能确认我的父选项呢?
建议的解决方案
希望能将cascader的value可以增加父选项的值
备选方案
No response
附加上下文
No response
验证
The text was updated successfully, but these errors were encountered: