forked from github/dataease
11 lines
332 B
TypeScript
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`))
|
|
})
|
|
}
|