From 25e3b47c04739bbb7826ff399d0b6d9cbe67d454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=B0=91=E5=8D=AB?= Date: Thu, 30 May 2024 15:15:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=94=A8=E6=88=B7=E7=B4=A0=E6=9D=90):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6=E5=A4=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.ts | 2 +- src/assets/icon/fileType.png | Bin 0 -> 2108 bytes src/components/attributeColor.vue | 6 +- src/components/importJSON.vue | 3 +- src/components/myMaterial/components/file.vue | 165 ++++++++ .../myMaterial/components/fileType.vue | 135 +++++++ src/components/myMaterial/index.vue | 7 +- src/components/myMaterial/myTempl.vue | 365 +++++++++--------- src/components/myMaterial/uploadMaterial.vue | 7 +- src/components/myTemplName.vue | 8 +- src/hooks/useFileType.js | 40 ++ src/hooks/useMaterial.js | 43 ++- src/hooks/usePageList.js | 130 +++++++ src/language/zh.json | 6 +- src/views/home/index.vue | 5 +- 15 files changed, 704 insertions(+), 218 deletions(-) create mode 100644 src/assets/icon/fileType.png create mode 100644 src/components/myMaterial/components/file.vue create mode 100644 src/components/myMaterial/components/fileType.vue create mode 100644 src/hooks/useFileType.js create mode 100644 src/hooks/usePageList.js diff --git a/src/api/user.ts b/src/api/user.ts index af203830..cb2ff4be 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -2,7 +2,7 @@ * @Author: 秦少卫 * @Date: 2024-04-24 14:07:06 * @LastEditors: 秦少卫 - * @LastEditTime: 2024-05-29 10:07:24 + * @LastEditTime: 2024-05-30 15:12:53 * @Description: 用户接口登录 */ diff --git a/src/assets/icon/fileType.png b/src/assets/icon/fileType.png new file mode 100644 index 0000000000000000000000000000000000000000..a5693ec0463a52b57d25a726245d6c986294ebe6 GIT binary patch literal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@@ const getObjectAttr = (e) => { const activeObject = canvasEditor.canvas.getActiveObject(); // 不是当前obj,跳过 if (e && e.target && e.target !== activeObject) return; - if (activeObject) { - console.log(activeObject.type); + if (activeObject && mixinState.mSelectMode === 'one') { const fill = activeObject.get('fill'); if (typeof fill === 'string') { baseAttr.fill = fill; } else { - console.log(fill); baseAttr.fill = fabricGradientToCss(fill, activeObject); } } diff --git a/src/components/importJSON.vue b/src/components/importJSON.vue index 5e8681d2..24578d3e 100644 --- a/src/components/importJSON.vue +++ b/src/components/importJSON.vue @@ -2,7 +2,7 @@ * @Author: 秦少卫 * @Date: 2022-09-03 19:16:55 * @LastEditors: 秦少卫 - * @LastEditTime: 2024-05-27 18:56:58 + * @LastEditTime: 2024-05-30 14:14:02 * @Description: 导入JSON文件 --> @@ -25,7 +25,6 @@ - + + + + + diff --git a/src/components/myMaterial/components/fileType.vue b/src/components/myMaterial/components/fileType.vue new file mode 100644 index 00000000..8f5c056e --- /dev/null +++ b/src/components/myMaterial/components/fileType.vue @@ -0,0 +1,135 @@ + + + + + + + diff --git a/src/components/myMaterial/index.vue b/src/components/myMaterial/index.vue index 45a332ee..20a16be5 100644 --- a/src/components/myMaterial/index.vue +++ b/src/components/myMaterial/index.vue @@ -2,13 +2,13 @@ * @Author: 秦少卫 * @Date: 2024-04-25 15:30:54 * @LastEditors: 秦少卫 - * @LastEditTime: 2024-05-11 17:12:21 + * @LastEditTime: 2024-05-30 11:53:28 * @Description: 我的素材 -->