From bff8dda1d476fc4ad4326d0633a8fe132d49bd70 Mon Sep 17 00:00:00 2001 From: Huangzhe Date: Wed, 21 May 2025 11:05:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=92=8C=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 YlSwiper 轮播组件,基于 swiper 库实现,支持自定义渲染和多种配置项 - 优化 YlTable 组件,提升表格渲染性能和使用体验 - 优化 LogicInfo 组件,修复数据为空时的显示问题,使用 currentTabs 替代重复的计算属性 - 优化 AnalysisInfo 组件,移除冗余类型转换 - 新增问卷列表组件 QuestionList,用于展示任务相关问卷 - 更新 vite 配置,支持 swiper 自定义元素 - 添加 swiper 依赖包 --- package.json | 1 + src/components/YlSwiper/Index.vue | 286 ++++++++++++++++++ src/components/YlTable/Index.vue | 7 +- src/main.ts | 5 + src/utils/request.js | 3 +- src/views/Home/Index.vue | 2 +- .../Home/components/CreateSurvey/Index.vue | 3 +- src/views/Home/components/MineTask/Index.vue | 60 ++-- .../MineTask/components/QuestionList.vue | 95 ++++++ .../components/AnalysisInfo/Index.vue | 27 +- .../AnalysisInfo/hooks/pieSeries.ts | 2 +- .../Analysis/components/LogicInfo/Index.vue | 23 +- vite.config.ts | 9 +- 13 files changed, 477 insertions(+), 46 deletions(-) create mode 100644 src/components/YlSwiper/Index.vue create mode 100644 src/views/Home/components/MineTask/components/QuestionList.vue diff --git a/package.json b/package.json index 012896b..e8d5188 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "regenerator-runtime": "^0.14.1", "shrinkpng": "^1.2.0-beta.1", "sortablejs": "^1.15.6", + "swiper": "^11.2.7", "tailwindcss": "^4.1.6", "uuid": "^11.1.0", "vant": "^4.9.17", diff --git a/src/components/YlSwiper/Index.vue b/src/components/YlSwiper/Index.vue new file mode 100644 index 0000000..52b3668 --- /dev/null +++ b/src/components/YlSwiper/Index.vue @@ -0,0 +1,286 @@ + + + + + diff --git a/src/components/YlTable/Index.vue b/src/components/YlTable/Index.vue index 2d0f025..84549f2 100644 --- a/src/components/YlTable/Index.vue +++ b/src/components/YlTable/Index.vue @@ -1,6 +1,5 @@ diff --git a/src/views/Home/components/MineTask/components/QuestionList.vue b/src/views/Home/components/MineTask/components/QuestionList.vue new file mode 100644 index 0000000..4198b5d --- /dev/null +++ b/src/views/Home/components/MineTask/components/QuestionList.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue b/src/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue index 6bb8c8f..0ac4bbb 100644 --- a/src/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue +++ b/src/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue @@ -1,6 +1,7 @@