Commit 5a3c9f5419cc1090803e17f0735b2f047aa6654a
1 parent
f3142485
perf: 移除 dialog 全局引入(全局引入XModel)
Showing
2 changed files
with
1 additions
and
2 deletions
yudao-ui-admin-vue3/src/components/UploadFile/src/UploadImg.vue
| @@ -29,6 +29,7 @@ | @@ -29,6 +29,7 @@ | ||
| 29 | </template> | 29 | </template> |
| 30 | <script setup lang="ts"> | 30 | <script setup lang="ts"> |
| 31 | import { ref, watch } from 'vue' | 31 | import { ref, watch } from 'vue' |
| 32 | +import { Dialog } from '@/components/Dialog' | ||
| 32 | import { useMessage } from '@/hooks/web/useMessage' | 33 | import { useMessage } from '@/hooks/web/useMessage' |
| 33 | import { propTypes } from '@/utils/propTypes' | 34 | import { propTypes } from '@/utils/propTypes' |
| 34 | import { getAccessToken, getTenantId } from '@/utils/auth' | 35 | import { getAccessToken, getTenantId } from '@/utils/auth' |
yudao-ui-admin-vue3/src/components/index.ts
| @@ -3,7 +3,6 @@ import { Icon } from './Icon' | @@ -3,7 +3,6 @@ import { Icon } from './Icon' | ||
| 3 | import { Form } from '@/components/Form' | 3 | import { Form } from '@/components/Form' |
| 4 | import { Table } from '@/components/Table' | 4 | import { Table } from '@/components/Table' |
| 5 | import { Search } from '@/components/Search' | 5 | import { Search } from '@/components/Search' |
| 6 | -import { Dialog } from '@/components/Dialog' | ||
| 7 | import { XModal } from '@/components/XModal' | 6 | import { XModal } from '@/components/XModal' |
| 8 | import { XButton, XTextButton } from '@/components/XButton' | 7 | import { XButton, XTextButton } from '@/components/XButton' |
| 9 | import { DictTag } from '@/components/DictTag' | 8 | import { DictTag } from '@/components/DictTag' |
| @@ -15,7 +14,6 @@ export const setupGlobCom = (app: App<Element>): void => { | @@ -15,7 +14,6 @@ export const setupGlobCom = (app: App<Element>): void => { | ||
| 15 | app.component('Form', Form) | 14 | app.component('Form', Form) |
| 16 | app.component('Table', Table) | 15 | app.component('Table', Table) |
| 17 | app.component('Search', Search) | 16 | app.component('Search', Search) |
| 18 | - app.component('Dialog', Dialog) | ||
| 19 | app.component('XModal', XModal) | 17 | app.component('XModal', XModal) |
| 20 | app.component('XButton', XButton) | 18 | app.component('XButton', XButton) |
| 21 | app.component('XTextButton', XTextButton) | 19 | app.component('XTextButton', XTextButton) |