From 928db59edc1679525a2384265304a9cb9c07881b Mon Sep 17 00:00:00 2001 From: zhangyh Date: Thu, 25 Sep 2025 17:03:52 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=8E=86=E5=8F=B2=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E8=8F=9C=E5=8D=95=E6=8E=92=E7=89=88,?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E7=89=88=E4=B8=8A=E4=BC=A0/=E4=BB=8E?= =?UTF-8?q?=E6=94=B6=E8=97=8F=E9=80=89=E6=8B=A9=E5=9B=BE=E7=89=87=E6=8E=92?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 6 ----- components.d.ts | 2 ++ .../Detail/detailLeft/colorBox/index.vue | 27 ++++++++++++------- .../Detail/detailLeft/colorBox/upload.vue | 6 ++--- src/views/HomeView/history.vue | 15 +++++------ 5 files changed, 29 insertions(+), 27 deletions(-) diff --git a/.env.test b/.env.test index ebe37860..cc8ff50b 100644 --- a/.env.test +++ b/.env.test @@ -1,12 +1,6 @@ -<<<<<<< HEAD VITE_USER_NODE_ENV = 'development' VITE_APP_BASE_URL = 'https://test.api.aida.com.hk' # VITE_APP_BASE_URL = 'https://api.aida.com.hk' -======= -NODE_ENV = 'development' -# VUE_APP_BASE_URL = 'https://api.aida.com.hk' -VUE_APP_BASE_URL = 'https://test.api.aida.com.hk' ->>>>>>> 5d8304ce3ece21dd3200ffffb0c76e3ef55dd213 # VITE_APP_BASE_URL = 'http://18.167.251.121:10086' # VITE_APP_BASE_URL = 'http://192.168.1.9:5567' diff --git a/components.d.ts b/components.d.ts index 1796a907..27d9abac 100644 --- a/components.d.ts +++ b/components.d.ts @@ -18,6 +18,7 @@ declare module 'vue' { AMenu: typeof import('ant-design-vue/es')['Menu'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AModal: typeof import('ant-design-vue/es')['Modal'] + APagination: typeof import('ant-design-vue/es')['Pagination'] APopover: typeof import('ant-design-vue/es')['Popover'] ARangePicker: typeof import('ant-design-vue/es')['RangePicker'] ASelect: typeof import('ant-design-vue/es')['Select'] @@ -27,6 +28,7 @@ declare module 'vue' { ASwitch: typeof import('ant-design-vue/es')['Switch'] ATable: typeof import('ant-design-vue/es')['Table'] AUpload: typeof import('ant-design-vue/es')['Upload'] + ElCascader: typeof import('element-plus/es')['ElCascader'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/src/component/Detail/detailLeft/colorBox/index.vue b/src/component/Detail/detailLeft/colorBox/index.vue index 4e2c9eeb..d466e6a0 100644 --- a/src/component/Detail/detailLeft/colorBox/index.vue +++ b/src/component/Detail/detailLeft/colorBox/index.vue @@ -16,14 +16,14 @@
{{$t('DesignPrintOperation.Colorfromimage')}}
-
-
+
+
{{ $t('LibraryPage.Upload') }}
-
+
- +
{{ $t('LibraryPage.library') }}
@@ -268,9 +268,7 @@ export default defineComponent({ selectImages.value.init() } const handleImageSelect = (item:any)=>{ - console.log('item',item) UrlToFile(item.url,item.name).then((file:any)=>{ - console.log('file',file) // 构造符合 fileUploadChange 期望的数据结构 const fileData = { file: { @@ -280,7 +278,6 @@ export default defineComponent({ } uploadRef.value.fileUploadChange(fileData) }) - // uploadRef.value.selectColor(item) } const handleShowListChange=(val:boolean)=>{ console.log('val',val) @@ -451,12 +448,17 @@ export default defineComponent({ height: 10rem; width: 100%; border-radius: .5rem; + column-gap: 2rem; .upload-container{ + display: flex; + flex-direction: column; + justify-content: space-evenly; + align-items: center; background-color: #EDEDED; - padding: 1rem 2rem; border-radius: 1rem; - width: 8rem; - height: 8rem; + width: 7rem; + height: 7rem; + // row-gap: 1rem; &.hide{ width: initial; height: initial; @@ -466,6 +468,11 @@ export default defineComponent({ background-color: transparent; padding-left: 1rem; } + .svg-btn{ + cursor: pointer; + width: initial; + height: initial; + } :deep(.ant-upload){ background: transparent; } diff --git a/src/component/Detail/detailLeft/colorBox/upload.vue b/src/component/Detail/detailLeft/colorBox/upload.vue index f319b5e5..75c867c5 100644 --- a/src/component/Detail/detailLeft/colorBox/upload.vue +++ b/src/component/Detail/detailLeft/colorBox/upload.vue @@ -181,8 +181,8 @@ export default defineComponent({