From db5683c533b5d15056b51ce2908f1ac9f849bc95 Mon Sep 17 00:00:00 2001 From: Seven Date: Sun, 4 Jan 2026 12:02:18 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E5=92=8C=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E7=9A=84=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=9C=B0=E5=9D=80=EF=BC=9B=E5=8D=87=E7=BA=A7=20@riwa/?= =?UTF-8?q?api-types=20=E4=BE=9D=E8=B5=96=E8=87=B3=200.0.70=EF=BC=9B?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=A4=E6=98=93=E5=AF=B9=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.prod | 2 +- .env.test | 2 +- package.json | 2 +- pnpm-lock.yaml | 12 +- src/components/custom/icon-picker.vue | 9 +- src/components/table/table-filter.vue | 2 +- src/views/tradingPairs/components/add.vue | 51 +++--- src/views/tradingPairs/components/edit.vue | 186 +++++++++++++++++++++ src/views/tradingPairs/index.vue | 81 +++++++-- 9 files changed, 296 insertions(+), 51 deletions(-) create mode 100644 src/views/tradingPairs/components/edit.vue diff --git a/.env.prod b/.env.prod index 3fb847b..ab84ca7 100644 --- a/.env.prod +++ b/.env.prod @@ -1,5 +1,5 @@ # backend service base url, prod environment -VITE_SERVICE_BASE_URL=http://192.168.1.27:9527 +VITE_SERVICE_BASE_URL=http://192.168.1.8:9527 # other backend service base url, prod environment VITE_OTHER_SERVICE_BASE_URL= `{}` diff --git a/.env.test b/.env.test index ad07516..9fff8d6 100644 --- a/.env.test +++ b/.env.test @@ -1,5 +1,5 @@ # backend service base url, test environment -VITE_SERVICE_BASE_URL=http://192.168.1.27:9528 +VITE_SERVICE_BASE_URL=http://192.168.1.8:9528 # other backend service base url, test environment VITE_OTHER_SERVICE_BASE_URL= `{}` diff --git a/package.json b/package.json index 49dd075..899490d 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@better-scroll/core": "2.5.1", "@elysiajs/eden": "^1.4.5", "@iconify/vue": "5.0.0", - "@riwa/api-types": "http://192.168.1.3:9527/api/riwa-api-types-0.0.67.tgz", + "@riwa/api-types": "http://192.168.1.8:9527/api/riwa-api-types-0.0.70.tgz", "@sa/axios": "workspace:*", "@sa/color": "workspace:*", "@sa/hooks": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb7dcd1..2b8ecc8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: 5.0.0 version: 5.0.0(vue@3.5.25(typescript@5.9.3)) '@riwa/api-types': - specifier: http://192.168.1.3:9527/api/riwa-api-types-0.0.67.tgz - version: http://192.168.1.3:9527/api/riwa-api-types-0.0.67.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3))) + specifier: http://192.168.1.8:9527/api/riwa-api-types-0.0.70.tgz + version: http://192.168.1.8:9527/api/riwa-api-types-0.0.70.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3))) '@sa/axios': specifier: workspace:* version: link:packages/axios @@ -1083,9 +1083,9 @@ packages: '@quansync/fs@0.1.6': resolution: {integrity: sha512-zoA8SqQO11qH9H8FCBR7NIbowYARIPmBz3nKjgAaOUDi/xPAAu1uAgebtV7KXHTc6CDZJVRZ1u4wIGvY5CWYaw==} - '@riwa/api-types@http://192.168.1.3:9527/api/riwa-api-types-0.0.67.tgz': - resolution: {tarball: http://192.168.1.3:9527/api/riwa-api-types-0.0.67.tgz} - version: 0.0.67 + '@riwa/api-types@http://192.168.1.8:9527/api/riwa-api-types-0.0.70.tgz': + resolution: {tarball: http://192.168.1.8:9527/api/riwa-api-types-0.0.70.tgz} + version: 0.0.70 peerDependencies: '@elysiajs/eden': ^1.4.5 @@ -5080,7 +5080,7 @@ snapshots: dependencies: quansync: 0.3.0 - '@riwa/api-types@http://192.168.1.3:9527/api/riwa-api-types-0.0.67.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': + '@riwa/api-types@http://192.168.1.8:9527/api/riwa-api-types-0.0.70.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': dependencies: '@elysiajs/eden': 1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)) diff --git a/src/components/custom/icon-picker.vue b/src/components/custom/icon-picker.vue index 7ed43e7..d12f6d0 100644 --- a/src/components/custom/icon-picker.vue +++ b/src/components/custom/icon-picker.vue @@ -10,7 +10,7 @@ defineOptions({ interface Props { /** 当前选中的图标 */ - modelValue?: string; + modelValue?: string | null | undefined; /** 图标集前缀 */ prefix?: IconCollection; /** 每页显示数量 */ @@ -43,7 +43,10 @@ const searchValue = ref(''); const loading = ref(false); const allIcons = ref([]); const currentPage = ref(1); -const activeCollection = ref(props.prefix); +// 确保 activeCollection 在 collections 列表中,如果不在则使用第一个 +const activeCollection = ref( + props.collections.includes(props.prefix) ? props.prefix : props.collections[0] +); // 图标集显示名称映射 const collectionLabels: Record = { @@ -143,7 +146,7 @@ onMounted(() => { >