antd-tiny-vue/components/index.ts

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)
}
}
}
}