fix bug
This commit is contained in:
16
src/main.js
16
src/main.js
@@ -13,6 +13,8 @@ import '@smallwei/avue/lib/index.css';
|
||||
import avueUeditor from 'avue-plugin-ueditor';
|
||||
import crudCommon from '@/mixins/crud.js';
|
||||
import { getScreen, findColumn } from './utils/util';
|
||||
import { setupPaginationEnhancer } from './utils/pagination';
|
||||
import { setupDialogFormLabelAlign } from './utils/dialog-form-label';
|
||||
import './permission';
|
||||
import error from './error';
|
||||
import App from './App.vue';
|
||||
@@ -28,6 +30,7 @@ import cronEditor from './components/cron-editor/main.vue';
|
||||
import basicBlock from './components/basic-block/main.vue';
|
||||
import basicContainer from './components/basic-container/main.vue';
|
||||
import emptyPagination from './components/empty-pagination/main.vue';
|
||||
import vehicleAttachmentUpload from './components/vehicle-attachment-upload/main.vue';
|
||||
import thirdRegister from './components/third-register/main.vue';
|
||||
import flowDesign from './components/flow-design/main.vue';
|
||||
import flowDesignStep from './components/flow-design-step/main.vue';
|
||||
@@ -47,6 +50,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||||
app.component('basicContainer', basicContainer);
|
||||
app.component('basicBlock', basicBlock);
|
||||
app.component('emptyPagination', emptyPagination);
|
||||
app.component('vehicleAttachmentUpload', vehicleAttachmentUpload);
|
||||
app.component('highlight', highlight);
|
||||
app.component('codeEditor', codeEditor);
|
||||
app.component('cronEditor', cronEditor);
|
||||
@@ -72,6 +76,16 @@ app.use(ElementPlus, {
|
||||
app.use(Avue, {
|
||||
axios,
|
||||
calcHeight: 10,
|
||||
crudOption: {
|
||||
searchIcon: true,
|
||||
searchIndex: 8,
|
||||
searchLabelWidth: 160,
|
||||
searchMenuSpan: 24,
|
||||
searchMenuPosition: 'right',
|
||||
menuWidth: 220,
|
||||
},
|
||||
labelPosition: 'right',
|
||||
labelWidth: 'auto',
|
||||
locale: language,
|
||||
i18n: (key, options) => i18n.global.t(key, options),
|
||||
});
|
||||
@@ -81,3 +95,5 @@ app.use(VueClipboard, {
|
||||
appendToBody: true, // 这可以帮助解决一些更复杂的使用场景下的问题
|
||||
});
|
||||
app.mount('#app');
|
||||
setupPaginationEnhancer();
|
||||
setupDialogFormLabelAlign();
|
||||
|
||||
Reference in New Issue
Block a user