<Cascader v-model="value3" :data="data" ref="Cascader"></Cascader>
<Button @click="openselect"></Button>
openselect:function(){
let _this = this;
setTimeout(()=>{
//需要计时器,因为和本身自带的事件冲突,需要延迟执行
_this.$refs['Cascader'].onFocus()
},500)
}
iview Cascader 使用外部按钮控制展开下拉
最新推荐文章于 2024-06-07 17:23:29 发布