表单绑定的
编辑的时候,给绑定的typeArr赋值数组,但是不显示,
是这么操作不是
表单绑定的
是这么操作不是
https://blog.csdn.net/weixin_43837268/article/details/94588718
cityList: [
{
id: 1,
name: '北京',
child: [
id: 11,
name: '大兴区',
child: [
id: 111,
name: '亦庄'
]
]
}
]
<template>
<el-cascader
:options="cityList"
:props="optionProps"
v-model="selectedOptions"
@change="handleChange">
</el-cascader>
</template>
<script>
data: {
optionProps: {
value: 'id',
label: 'name',
children: 'child'
}
}
</script>