22 lines
777 B
TypeScript
22 lines
777 B
TypeScript
/**
|
|
* 全局注册自定义组件 待完善
|
|
* @param app
|
|
*/
|
|
import { App } from 'vue';
|
|
import { PageWrapper, PageFooter } from '@/components/Page';
|
|
import NumberInput from '@/components/numberInput/index.vue';
|
|
import pagination from '@/components/pagination/index.vue';
|
|
import { BasicTable } from '@/components/Table';
|
|
import { basicModal } from '@/components/Modal';
|
|
import { Authority } from '@/components/Authority';
|
|
|
|
export function setupCustomComponents(app: App) {
|
|
app.component('PageWrapper', PageWrapper);
|
|
app.component('NumberInput', NumberInput);
|
|
app.component('pagination', pagination);
|
|
app.component('basicModal', basicModal);
|
|
app.component('BasicTable',BasicTable)
|
|
app.component('PageFooter', PageFooter);
|
|
app.component('Authority', Authority);
|
|
}
|