mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2024-11-10 09:39:15 +08:00
14 lines
297 B
TypeScript
14 lines
297 B
TypeScript
import type { App } from 'vue'
|
|
import * as components from './components'
|
|
|
|
export default {
|
|
install(app: App) {
|
|
for (const componentsKey in components) {
|
|
const component = (components as any)[componentsKey]
|
|
if (component.install) {
|
|
app.use(component)
|
|
}
|
|
}
|
|
}
|
|
}
|