dataease-dm/core/core-frontend/src/custom-component/index.ts
2023-10-23 22:00:14 +08:00

11 lines
332 B
TypeScript

import type { App } from 'vue'
const components = ['circle-shape']
export const setupCustomComponent = (app: App<Element>) => {
components.forEach(key => {
app.component(key, () => import(`@/custom-component/${key}/Component.vue`))
app.component(key + '-attr', () => import(`@/custom-component/${key}/Attr.vue`))
})
}