可通过属性props来改变级联选择器默认遍历的value和label
贴段自己的代码
<el-form-item
label="类型"
>
<el-cascader
v-model="form.flzj"
:options="flzjlist"
:props="defaultParams"
clearable
></el-cascader>
</el-form-item>
data() {
return {
//定义级联选择器的props
defaultParams: {
label: "dwmc",
value: "id",
children: "children",
checkStrictly: true
},
//级联样式选择器遍历的数组
flzjlist: [],
};
},