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()  
原文地址:https://www.cnblogs.com/cynthia-wuqian/p/11429794.html