elementUI tree组件收起

elementUI tree组件收起方法

this.$nextTick(() => {
          for (let i = 0; i < (this.$refs.sourceTree as any).store._getAllNodes().length; i++) {
            (this.$refs.sourceTree as any).store._getAllNodes()[i].expanded = false
          }
        })

  

posted @ 2020-10-21 20:30  karila  阅读(883)  评论(0编辑  收藏  举报