From d704f7b386a404d5d918f81ffce38f0bcc907930 Mon Sep 17 00:00:00 2001
From: pipipi-pikachu <1171051090@qq.com>
Date: Mon, 21 Dec 2020 17:25:43 +0800
Subject: [PATCH] update
---
.eslintrc.js | 2 +-
package.json | 4 +-
public/index.html | 2 +-
.../Editor/Canvas/hooks/useCombineElement.ts | 6 +-
.../Editor/Canvas/hooks/useCreateElement.ts | 131 +++++++
.../Editor/Canvas/hooks/useDragElement.ts | 315 ++++++++++++++++
.../Editor/Canvas/hooks/useMoveElement.ts | 353 ++----------------
src/views/Editor/Canvas/index.vue | 6 +-
.../Editor/Canvas/utils/createElement.ts | 120 ------
9 files changed, 495 insertions(+), 444 deletions(-)
create mode 100644 src/views/Editor/Canvas/hooks/useCreateElement.ts
create mode 100644 src/views/Editor/Canvas/hooks/useDragElement.ts
delete mode 100644 src/views/Editor/Canvas/utils/createElement.ts
diff --git a/.eslintrc.js b/.eslintrc.js
index 459c300..e705203 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -40,7 +40,7 @@ module.exports = {
'no-with': 'error',
'max-depth': ['error', 5],
'consistent-this': ['error', 'self'],
- 'max-lines': ['error', 1500],
+ 'max-lines': ['error', 1000],
'no-multi-str': 'error',
'space-infix-ops': 'error',
'space-before-blocks': ['error', 'always'],
diff --git a/package.json b/package.json
index 5480f28..fbec147 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
- "name": "ppt_online_editor",
- "version": "0.1.0",
+ "name": "hamster_ppt",
+ "version": "0.0.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
diff --git a/public/index.html b/public/index.html
index e3f9d2d..d72081e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -6,7 +6,7 @@
-
演示文稿在线编辑
+ Hamster 幻灯片 v0.0.1-dev