element-plus/packages/tree/index.ts

12 lines
268 B
TypeScript
Raw Normal View History

2020-08-21 16:16:08 +08:00
import { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
2020-08-21 16:16:08 +08:00
import Tree from './src/tree.vue'
2020-10-29 17:28:26 +08:00
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: SFCWithInstall<typeof Tree> = Tree
export default _Tree