From 7377350b187e9751a78993a8c0bb3e2fd35aa70a Mon Sep 17 00:00:00 2001 From: zhangtao <9480807882@qq.com> Date: Mon, 8 Sep 2025 00:49:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(types):=20=E6=B8=85=E7=90=86=E5=B9=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=84=E4=BB=B6=E7=B1=BB=E5=9E=8B=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从 fastapp 组件类型中移除部分未使用的组件声明 - 新增 WdProgress、WdTextarea、WdUpload 组件类型声明 - 从 auto-imports 类型中移除 useTimeAgoIntl 的声明 - 从 components 类型中移除 ElLoadingSpinner 的声明 - 更新 .gitignore,忽略新增的类型声明文件路径 --- .gitignore | 3 +++ fastapp/components.d.ts | 11 +++-------- frontend/src/types/auto-imports.d.ts | 1 - frontend/src/types/components.d.ts | 1 - 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index d4cb9f30..f266fe95 100755 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,6 @@ devops/nginx/fastapp/dist devops/nginx/fastdocs/dist devops/nginx/frontend/dist devops/nginx/ssl +fastapp/components.d.ts +frontend/src/types/auto-imports.d.ts +frontend/src/types/components.d.ts diff --git a/fastapp/components.d.ts b/fastapp/components.d.ts index 48b919cf..7b2eaebb 100644 --- a/fastapp/components.d.ts +++ b/fastapp/components.d.ts @@ -17,21 +17,16 @@ declare module 'vue' { QiunDataCharts: typeof import('./src/components/qiun-data-charts/qiun-data-charts.vue')['default'] QiunError: typeof import('./src/components/qiun-error/qiun-error.vue')['default'] QiunLoading: typeof import('./src/components/qiun-loading/qiun-loading.vue')['default'] - WdAvatar: typeof import('wot-design-uni/components/wd-avatar/wd-avatar.vue')['default'] - WdBackTop: typeof import('wot-design-uni/components/wd-back-top/wd-back-top.vue')['default'] WdBadge: typeof import('wot-design-uni/components/wd-badge/wd-badge.vue')['default'] WdButton: typeof import('wot-design-uni/components/wd-button/wd-button.vue')['default'] WdCard: typeof import('wot-design-uni/components/wd-card/wd-card.vue')['default'] WdCell: typeof import('wot-design-uni/components/wd-cell/wd-cell.vue')['default'] WdCellGroup: typeof import('wot-design-uni/components/wd-cell-group/wd-cell-group.vue')['default'] WdCheckbox: typeof import('wot-design-uni/components/wd-checkbox/wd-checkbox.vue')['default'] - WdCol: typeof import('wot-design-uni/components/wd-col/wd-col.vue')['default'] WdCollapse: typeof import('wot-design-uni/components/wd-collapse/wd-collapse.vue')['default'] WdCollapseItem: typeof import('wot-design-uni/components/wd-collapse-item/wd-collapse-item.vue')['default'] WdConfigProvider: typeof import('wot-design-uni/components/wd-config-provider/wd-config-provider.vue')['default'] WdDivider: typeof import('wot-design-uni/components/wd-divider/wd-divider.vue')['default'] - WdFab: typeof import('wot-design-uni/components/wd-fab/wd-fab.vue')['default'] - WdFloatingPanel: typeof import('wot-design-uni/components/wd-floating-panel/wd-floating-panel.vue')['default'] WdForm: typeof import('wot-design-uni/components/wd-form/wd-form.vue')['default'] WdGrid: typeof import('wot-design-uni/components/wd-grid/wd-grid.vue')['default'] WdGridItem: typeof import('wot-design-uni/components/wd-grid-item/wd-grid-item.vue')['default'] @@ -44,17 +39,17 @@ declare module 'vue' { WdNoticeBar: typeof import('wot-design-uni/components/wd-notice-bar/wd-notice-bar.vue')['default'] WdNotify: typeof import('wot-design-uni/components/wd-notify/wd-notify.vue')['default'] WdPopup: typeof import('wot-design-uni/components/wd-popup/wd-popup.vue')['default'] + WdProgress: typeof import('wot-design-uni/components/wd-progress/wd-progress.vue')['default'] WdRadio: typeof import('wot-design-uni/components/wd-radio/wd-radio.vue')['default'] WdRadioGroup: typeof import('wot-design-uni/components/wd-radio-group/wd-radio-group.vue')['default'] - WdRow: typeof import('wot-design-uni/components/wd-row/wd-row.vue')['default'] - WdSearch: typeof import('wot-design-uni/components/wd-search/wd-search.vue')['default'] - WdSkeleton: typeof import('wot-design-uni/components/wd-skeleton/wd-skeleton.vue')['default'] WdSwiper: typeof import('wot-design-uni/components/wd-swiper/wd-swiper.vue')['default'] WdSwitch: typeof import('wot-design-uni/components/wd-switch/wd-switch.vue')['default'] WdTabbar: typeof import('wot-design-uni/components/wd-tabbar/wd-tabbar.vue')['default'] WdTabbarItem: typeof import('wot-design-uni/components/wd-tabbar-item/wd-tabbar-item.vue')['default'] WdTag: typeof import('wot-design-uni/components/wd-tag/wd-tag.vue')['default'] WdText: typeof import('wot-design-uni/components/wd-text/wd-text.vue')['default'] + WdTextarea: typeof import('wot-design-uni/components/wd-textarea/wd-textarea.vue')['default'] WdToast: typeof import('wot-design-uni/components/wd-toast/wd-toast.vue')['default'] + WdUpload: typeof import('wot-design-uni/components/wd-upload/wd-upload.vue')['default'] } } diff --git a/frontend/src/types/auto-imports.d.ts b/frontend/src/types/auto-imports.d.ts index d800967e..96afad15 100644 --- a/frontend/src/types/auto-imports.d.ts +++ b/frontend/src/types/auto-imports.d.ts @@ -587,7 +587,6 @@ declare module 'vue' { readonly useThrottleFn: UnwrapRef readonly useThrottledRefHistory: UnwrapRef readonly useTimeAgo: UnwrapRef - readonly useTimeAgoIntl: UnwrapRef readonly useTimeout: UnwrapRef readonly useTimeoutFn: UnwrapRef readonly useTimeoutPoll: UnwrapRef diff --git a/frontend/src/types/components.d.ts b/frontend/src/types/components.d.ts index e639ef47..5293fae7 100644 --- a/frontend/src/types/components.d.ts +++ b/frontend/src/types/components.d.ts @@ -54,7 +54,6 @@ declare module 'vue' { ElInput: typeof import('element-plus/es')['ElInput'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElLink: typeof import('element-plus/es')['ElLink'] - ElLoadingSpinner: typeof import('element-plus/es')['ElLoadingSpinner'] ElMain: typeof import('element-plus/es')['ElMain'] ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem']