<el-form-item label="地址:" prop="FRegionId">
                        <el-cascader ref="refRegion" :options="CityRegionOption" v-model="FRegionId" @@change="FRegionchange"
                                     :props="{ checkStrictly: true }"
                                     clearable></el-cascader>
                    </el-form-item>
 watch: {
                handlerValue() {                   
                    if (this.$refs.refRegion) {
                        this.$refs.refRegion.dropDownVisible = false; //监听值发生变化就关闭它
                    }
                }
            },
            mounted() {
                setInterval(function () {
                    document.querySelectorAll('.el-cascader-node__label').forEach(el => {
                        el.onclick = function () {
                            if (this.previousElementSibling) this.previousElementSibling.click()
                        }
                    })
                }, 1000)
            },

el-cascader 设置选中任意一级

源文:

https://www.cnblogs.com/listen9436/p/12304268.html
https://www.cnblogs.com/whoamimy/p/12488790.html

 

相关文章:

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