refactor: use vben/common-ui docAlert

This commit is contained in:
xingyu4j
2025-06-10 16:32:29 +08:00
parent 057ea74e0e
commit f32eef482f
201 changed files with 353 additions and 553 deletions

View File

@@ -5,13 +5,12 @@ import type { MallCategoryApi } from '#/api/mall/product/category';
import { ref } from 'vue';
import { useRouter } from 'vue-router';
import { Page, useVbenModal } from '@vben/common-ui';
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
import { message } from 'ant-design-vue';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import { deleteCategory, getCategoryList } from '#/api/mall/product/category';
import { DocAlert } from '#/components/doc-alert';
import { $t } from '#/locales';
import { useGridColumns, useGridFormSchema } from './data';

View File

@@ -4,7 +4,7 @@ import type { MallCommentApi } from '#/api/mall/product/comment';
import { h } from 'vue';
import { confirm, Page, prompt, useVbenModal } from '@vben/common-ui';
import { confirm, DocAlert, Page, prompt, useVbenModal } from '@vben/common-ui';
import { message, Textarea } from 'ant-design-vue';
@@ -14,7 +14,6 @@ import {
replyComment,
updateCommentVisible,
} from '#/api/mall/product/comment';
import { DocAlert } from '#/components/doc-alert';
import { $t } from '#/locales';
import { useGridColumns, useGridFormSchema } from './data';

View File

@@ -1,9 +1,7 @@
<script lang="ts" setup>
import { ref } from 'vue';
import { Page } from '@vben/common-ui';
import { DocAlert } from '#/components/doc-alert';
import { DocAlert, Page } from '@vben/common-ui';
import PropertyGrid from './modules/property-grid.vue';
import ValueGrid from './modules/value-grid.vue';

View File

@@ -5,7 +5,7 @@ import type { MallSpuApi } from '#/api/mall/product/spu';
import { onMounted, ref } from 'vue';
import { useRouter } from 'vue-router';
import { confirm, Page } from '@vben/common-ui';
import { confirm, DocAlert, Page } from '@vben/common-ui';
import {
downloadFileFromBlobPart,
handleTree,
@@ -23,7 +23,6 @@ import {
getTabsCount,
updateStatus,
} from '#/api/mall/product/spu';
import { DocAlert } from '#/components/doc-alert';
import { $t } from '#/locales';
import { fenToYuan, ProductSpuStatusEnum } from '#/utils';