vue element-ui typescript tree报错 === Property 'getCheckedNodes' does not exist on type 'Element | Element[] | Vue | Vue[]'.

import { Tree } from 'element-ui'

const ref = <Tree>this.$refs.tree
ref.getCheckedNodes()  

 

posted @ 2019-08-29 15:08  Cynthia娆墨旧染  阅读(1651)  评论(0编辑  收藏  举报