element 默认值
el-cascader
组件默认值
<el-cascader
v-model="value"
:options="options"
:props="optionProps"
@change="handleChange"
></el-cascader>
optionProps: {
value: "id", // id,label,chidren 是返回来的字段
label: "label",
children: "children",
},
value 绑定的是选中的数组 options 绑定的是请求过来的对象数组 props el-cascader规定固定的字段进行渲染所以需要props属性 @change 监听默认选中的状态