From 81a3930b1eb3972b55328b3fdc268ea79f2ca390 Mon Sep 17 00:00:00 2001 From: DaxPay Dev Date: Sat, 25 Jul 2026 09:36:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20timezone=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=B6=88=E9=99=A4=E9=80=8F=E4=BC=A0=E5=A3=B3=E8=B5=B0=20index?= =?UTF-8?q?=20=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 两端 components/timezone 新建 index.ts(named 转发 @daxpay/ui-biz/components/timezone),layouts/basic.vue 的 import 从 default 引 .vue 改为 named 引 index,删除本地 TimezonePicker.vue 透传壳。至此 user-avatar/qrcode/delete-confirm/timezone 四组件两端全部彻底:实体在 ui-biz,两端目录零本地 .vue。两端 typecheck 零新增错误。 --- .../src/components/timezone/TimezonePicker.vue | 12 ------------ apps/daxpay-admin/src/components/timezone/index.ts | 1 + apps/daxpay-admin/src/layouts/basic.vue | 2 +- .../src/components/timezone/TimezonePicker.vue | 12 ------------ .../daxpay-merchant/src/components/timezone/index.ts | 1 + apps/daxpay-merchant/src/layouts/basic.vue | 2 +- 6 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 apps/daxpay-admin/src/components/timezone/TimezonePicker.vue create mode 100644 apps/daxpay-admin/src/components/timezone/index.ts delete mode 100644 apps/daxpay-merchant/src/components/timezone/TimezonePicker.vue create mode 100644 apps/daxpay-merchant/src/components/timezone/index.ts diff --git a/apps/daxpay-admin/src/components/timezone/TimezonePicker.vue b/apps/daxpay-admin/src/components/timezone/TimezonePicker.vue deleted file mode 100644 index 1b22fcedf..000000000 --- a/apps/daxpay-admin/src/components/timezone/TimezonePicker.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/apps/daxpay-admin/src/components/timezone/index.ts b/apps/daxpay-admin/src/components/timezone/index.ts new file mode 100644 index 000000000..3c6158297 --- /dev/null +++ b/apps/daxpay-admin/src/components/timezone/index.ts @@ -0,0 +1 @@ +export { TimezonePicker } from '@daxpay/ui-biz/components/timezone'; diff --git a/apps/daxpay-admin/src/layouts/basic.vue b/apps/daxpay-admin/src/layouts/basic.vue index 8d1d464e3..024fc64cd 100644 --- a/apps/daxpay-admin/src/layouts/basic.vue +++ b/apps/daxpay-admin/src/layouts/basic.vue @@ -14,7 +14,7 @@ import { MdPreview } from 'md-editor-v3'; import { LoginExpiredModal } from '#/components/login-expired-modal'; - import TimezonePicker from '#/components/timezone/TimezonePicker.vue'; + import { TimezonePicker } from '#/components/timezone'; import { useMessage } from '#/hooks/useMessage'; import { HOME_PATH } from '#/router/routes'; import { useAuthStore } from '#/store'; diff --git a/apps/daxpay-merchant/src/components/timezone/TimezonePicker.vue b/apps/daxpay-merchant/src/components/timezone/TimezonePicker.vue deleted file mode 100644 index 1b22fcedf..000000000 --- a/apps/daxpay-merchant/src/components/timezone/TimezonePicker.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/apps/daxpay-merchant/src/components/timezone/index.ts b/apps/daxpay-merchant/src/components/timezone/index.ts new file mode 100644 index 000000000..3c6158297 --- /dev/null +++ b/apps/daxpay-merchant/src/components/timezone/index.ts @@ -0,0 +1 @@ +export { TimezonePicker } from '@daxpay/ui-biz/components/timezone'; diff --git a/apps/daxpay-merchant/src/layouts/basic.vue b/apps/daxpay-merchant/src/layouts/basic.vue index 8d1d464e3..024fc64cd 100644 --- a/apps/daxpay-merchant/src/layouts/basic.vue +++ b/apps/daxpay-merchant/src/layouts/basic.vue @@ -14,7 +14,7 @@ import { MdPreview } from 'md-editor-v3'; import { LoginExpiredModal } from '#/components/login-expired-modal'; - import TimezonePicker from '#/components/timezone/TimezonePicker.vue'; + import { TimezonePicker } from '#/components/timezone'; import { useMessage } from '#/hooks/useMessage'; import { HOME_PATH } from '#/router/routes'; import { useAuthStore } from '#/store';