resetCascaderFn() { if(this.$refs.myCascader){ this.$refs.myCascader.$refs.panel.checkedValue = [] this.$refs.myCascader.$refs.panel.clearCheckedNodes() this.$refs.myCascader.$refs.panel.activePath = [] this.$refs.myCascader.$refs.panel.syncActivePath() this.$refs.myCascader.$refs.input.$refs.input.setAttribute("aria-expanded",false) this.$refs.myCascader.$emit('visible-change',false) this.$refs.myCascader.$refs.panel.$emit('visible-change',false) this.$refs.myCascader.$emit('close') } }
|