/* * @Author: Devin * @Date: 2023-01-11 16:52:24 * @LastEditors: Devin * @LastEditTime: 2023-02-22 10:21:27 * @Description:公共组件全局注册 */ // 公共框架 import CommonLayer from '../packages/layer/CommonLayer.vue'; // 公共布局:search + btns + table + pagenation import CommonPagePanel from '../packages/page-panel/PagePanel.vue'; // 公共面板 import CommonPanel from '../packages/panel/Panel.vue'; // 公共搜索 import CommonSearch from '../packages/search/Search.vue'; // 公共表格 import CommonTable from '../packages/table/CommonTable.vue'; import CommonPage from '../packages/table/CommonPage.vue'; // 公共表单 import CommonForm from '../packages/form/Form.vue'; import CommonCheckGroup from '../packages/form/CheckGroup.vue'; import CommonDownload from '../packages/form/Download.vue'; import CommonUpload from '../packages/form/Upload.vue'; import CommonSelect from '../packages/form/Select.vue'; import CommonRadioGroup from '../packages/form/RadioGroup.vue'; // 公共tree import CommonTree from '../packages/tree/Tree.vue'; import CommonIcon from '../packages/icon/SvgIcon.vue'; import CommonCardGroup from '../packages/card/CardGroup.vue'; import CommonCard from '../packages/card/Card.vue'; import CommonDialog from '../packages/dialog/Dialog.vue'; import CommonDrawer from '../packages/drawer/Drawer.vue'; import CommonBread from '../packages/bread-crumb/Bread.vue'; import CommonTabs from '../packages/tabs/CommonTabs.vue'; import CommonX6Flow from '../packages/flow/Index.vue'; // 描述 import CommonInfo from '../packages/info/CommonInfo.vue'; // 复杂表单 import CommonComplexForm from '../packages/complex-form/CommonComplexForm.vue'; export function setupGlobalComponents(app: any) { app.component('CommonLayer', CommonLayer); app.component('CommonPagePanel', CommonPagePanel); app.component('CommonPanel', CommonPanel); app.component('CommonSearch', CommonSearch); app.component('CommonTable', CommonTable); app.component('CommonPagenation', CommonPage); app.component('CommonForm', CommonForm); app.component('CommonCheckGroup', CommonCheckGroup); app.component('CommonDownload', CommonDownload); app.component('CommonUpload', CommonUpload); app.component('CommonSelect', CommonSelect); app.component('CommonTree', CommonTree); app.component('CommonIcon', CommonIcon); app.component('CommonCardGroup', CommonCardGroup); app.component('CommonCard', CommonCard); app.component('CommonDialog', CommonDialog); app.component('CommonDrawer', CommonDrawer); app.component('CommonBread', CommonBread); app.component('CommonTabs', CommonTabs); app.component('CommonInfo', CommonInfo); app.component('CommonComplexForm', CommonComplexForm); app.component('CommonRadioGroup', CommonRadioGroup); app.component('CommonX6Flow', CommonX6Flow); }