方法一:给cascader组件赋值一个别名ref="myCascader" (注意:2.9.2 版本之前可用的方法)

1 this.$refs['myCascader'].currentLabels

 

方法二:在 2.9.2 后官方新增了 getCheckedNodes() 方法

1 this.$refs.myCascader.getCheckedNodes()[0].pathLabels

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案