摘要: 例如上图需要拿到 "山西省/运城市 /临猗县"的值 1 <el-cascader 2 ref="myCascader" 3 :props="{ checkStrictly: true }" 4 @change="handleAreaChange"> 5 </el-cascader> 给el-casc 阅读全文
posted @ 2020-05-15 11:51 最初的样子 阅读(2383) 评论(0) 推荐(0) 编辑
摘要: 方法一:给cascader组件赋值一个别名ref="myCascader" (注意:2.9.2 版本之前可用的方法) 1 this.$refs['myCascader'].currentLabels 方法二:在 2.9.2 后官方新增了 getCheckedNodes() 方法 1 this.$re 阅读全文
posted @ 2020-05-15 11:50 最初的样子 阅读(5670) 评论(0) 推荐(1) 编辑