el-cascader清除级联选择框选中状态
<el-cascader
ref="cascader"
v-model="optionsValue"
:options="options"
:props="Options"
@change="handleChange"
clearable>
</el-cascader>
//重置methods
reset () {
this.optionsValue=[]; //v-model绑定值清空
this.$nextTick(() => {
// 清空级联选择器选中状态
this.$refs.cascader.$refs.panel.clearCheckedNodes()
// 清除⾼亮
this.$refs.cascader.$refs.panel.activePath = []
})
}