mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:31:41 +08:00
chore: rename Application to app
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { Component } from 'vue';
|
||||
import type { ComponentType } from './types/index';
|
||||
|
||||
/**
|
||||
* Component list, register here to use it in the form
|
||||
*/
|
||||
@@ -17,8 +19,6 @@ import {
|
||||
} from 'ant-design-vue';
|
||||
import RadioButtonGroup from './components/RadioButtonGroup.vue';
|
||||
|
||||
import { ComponentType } from './types/index';
|
||||
|
||||
const componentMap = new Map<ComponentType, any>();
|
||||
|
||||
componentMap.set('Input', Input);
|
||||
|
@@ -108,4 +108,5 @@ export type ComponentType =
|
||||
| 'ImageUpload'
|
||||
| 'Switch'
|
||||
| 'StrengthMeter'
|
||||
| 'Upload'
|
||||
| 'Render';
|
||||
|
@@ -1,2 +1,8 @@
|
||||
export { default as BasicUpload } from './src/BasicUpload.vue';
|
||||
// export * from './src/types';
|
||||
import type { App } from 'vue';
|
||||
import BasicUpload from './src/BasicUpload.vue';
|
||||
|
||||
export default (app: App): void => {
|
||||
app.component(BasicUpload.name, BasicUpload);
|
||||
};
|
||||
|
||||
export { BasicUpload };
|
||||
|
@@ -41,6 +41,7 @@
|
||||
import { omit } from 'lodash-es';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'BasicUpload',
|
||||
components: { UploadModal, UploadPreviewModal, Icon, Tooltip },
|
||||
props: uploadContainerProps,
|
||||
setup(props, { emit, attrs }) {
|
||||
|
@@ -33,7 +33,7 @@ import {
|
||||
Result,
|
||||
Empty,
|
||||
} from 'ant-design-vue';
|
||||
import { getApp } from '/@/setup/Application';
|
||||
import { getApp } from '/@/setup/App';
|
||||
|
||||
const compList = [Icon, Button, AntButton.Group, AppFooter];
|
||||
|
||||
|
Reference in New Issue
Block a user