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