From 69020cd01503547859f038358afa1c5c541c4115 Mon Sep 17 00:00:00 2001 From: lq <13849061902@qq.com> Date: Tue, 2 Jul 2024 09:46:10 +0800 Subject: [PATCH] add code --- package-lock.json | 19 +++++- package.json | 3 +- src/App.vue | 153 ++++++++++++++++++++++++++----------------- src/assets/style.css | 2 +- 4 files changed, 113 insertions(+), 64 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c34553..020c8db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,8 @@ "element-plus": "^2.7.5", "vue": "^3.4.21", "vue-axios": "^3.5.2", - "vue-router": "^4.3.3" + "vue-router": "^4.3.3", + "vuedraggable": "^4.1.0" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.4", @@ -1208,6 +1209,11 @@ "fsevents": "~2.3.2" } }, + "node_modules/sortablejs": { + "version": "1.14.0", + "resolved": "https://registry.npmmirror.com/sortablejs/-/sortablejs-1.14.0.tgz", + "integrity": "sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==" + }, "node_modules/source-map-js": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", @@ -1313,6 +1319,17 @@ "peerDependencies": { "vue": "^3.2.0" } + }, + "node_modules/vuedraggable": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/vuedraggable/-/vuedraggable-4.1.0.tgz", + "integrity": "sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==", + "dependencies": { + "sortablejs": "1.14.0" + }, + "peerDependencies": { + "vue": "^3.0.1" + } } } } diff --git a/package.json b/package.json index 394965f..50542e5 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "element-plus": "^2.7.5", "vue": "^3.4.21", "vue-axios": "^3.5.2", - "vue-router": "^4.3.3" + "vue-router": "^4.3.3", + "vuedraggable": "^4.1.0" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.4", diff --git a/src/App.vue b/src/App.vue index 3927d67..b75a9ea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,7 +8,7 @@ import TheWelcome from './components/TheWelcome.vue'