el-cascader用filterable時,change獲取不到值得問題

el-cascader得用法

            <el-cascader
              v-model=""
              :options=""
              :props=""
              size="small"
              @change="changeCity"
              style="width: 100%"
              ref="cascaderCity"
              clearable
              filterable
            ></el-cascader>

getCheckedNodes()方法獲取值

this.$nextTick(() => {
   this.$refs.cascaderCity.getCheckedNodes()
})
          

this.$nextTick 不用this.$nextTick,this.$refs.cascaderCity.getCheckedNodes獲取不到

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章