[ { bigName: 'shouji', smallName: '华为' }, { bigName: 'shouji', smallName: '苹果' }, { bigName: '电脑', smallName: '华硕' }, { bigName: '电脑', smallName: '天选' }, ]实现el-cascader的数据结构
时间: 2023-05-24 10:04:39 浏览: 92
数据结构哦
[
{
value: 'shouji',
label: '手机',
children: [
{
value: '华为',
label: '华为'
},
{
value: '苹果',
label: '苹果'
}
]
},
{
value: 'diannao',
label: '电脑',
children: [
{
value: '华硕',
label: '华硕'
},
{
value: '天选',
label: '天选'
}
]
}
]
阅读全文