From 6350c955366c5b7bbb7326cdb0e3a953c9829e2d Mon Sep 17 00:00:00 2001 From: nil Date: Thu, 16 May 2024 21:12:59 +0800 Subject: [PATCH] Feature/dnd (#132) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 增加拖拽添加题目效果 * feat: 手动实现题型的预览效果 * feat: 优化预览体验 --- web/src/management/config/dnd.ts | 1 + .../pages/edit/components/MaterialGroup.vue | 17 +- .../questionModule/components/TypeList.vue | 148 ++++++++++++++---- web/src/management/store/edit/mutations.js | 3 + 4 files changed, 139 insertions(+), 30 deletions(-) create mode 100644 web/src/management/config/dnd.ts diff --git a/web/src/management/config/dnd.ts b/web/src/management/config/dnd.ts new file mode 100644 index 00000000..11039a41 --- /dev/null +++ b/web/src/management/config/dnd.ts @@ -0,0 +1 @@ +export const DND_GROUP = 'question' \ No newline at end of file diff --git a/web/src/management/pages/edit/components/MaterialGroup.vue b/web/src/management/pages/edit/components/MaterialGroup.vue index e581ca5c..c3edfd9e 100644 --- a/web/src/management/pages/edit/components/MaterialGroup.vue +++ b/web/src/management/pages/edit/components/MaterialGroup.vue @@ -1,8 +1,9 @@