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]

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-07-10
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
相关资源
相似解决方案