element-plus/packages/components/tree/index.ts

14 lines
304 B
TypeScript
Raw Normal View History

2020-08-21 16:16:08 +08:00
import Tree from './src/tree.vue'
2020-10-29 17:28:26 +08:00
import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
Tree.install = (app: App): void => {
2020-08-21 16:16:08 +08:00
app.component(Tree.name, Tree)
}
2020-10-29 17:28:26 +08:00
const _Tree = Tree as SFCWithInstall<typeof Tree>
export default _Tree
export const ElTree = _Tree