<el-cascader
style="width: 90%"
v-model="form.quitBy"
:options="options"
:props="quitProp"
:show-all-levels="false"
@change="handlequitChange"
@active-item-change="handleItemChange"
ref="quitCascader"
></el-cascader>
联级选择器框里面的值默认显示的是props绑定的label值,我们现在需要改变框内显示的值,比如说想让它再加一个字段
很简单,只需要在change函数里面增加一句话
this.$refs['quitCascader'].inputValue="你想要框内显示的值"