element 级联选择器使用 getCheckedNodes() 方法


ref: getCheckedNodes() 方法x必须项
 show-all-levels: 输入框中是否显示选中值的完整路径
options: 可选项数据源,键名可通过  Props 属性配置
 // 获取级联选择器选中的名称数组
      const lenLength = this.$refs.myCascader.getCheckedNodes()[0].pathLabels.length - 1
      this.financialBudgetForm.projectFrom = this.$refs.myCascader.getCheckedNodes()[0].pathLabels[lenLength]

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM