From d9e19625d5c3f0fd24116e97c2011398e9271127 Mon Sep 17 00:00:00 2001
From: yanghi <1919894349@qq.com>
Date: Sun, 21 Aug 2022 16:44:29 +0000
Subject: [PATCH 1/4] add lighthouse.report.html.
Signed-off-by: yanghi <1919894349@qq.com>
---
lighthouse.report.html | 266 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 266 insertions(+)
create mode 100644 lighthouse.report.html
diff --git a/lighthouse.report.html b/lighthouse.report.html
new file mode 100644
index 0000000..6391d49
--- /dev/null
+++ b/lighthouse.report.html
@@ -0,0 +1,266 @@
+
+
+
+
+
+
+
+ Lighthouse Report
+
+
+
+
+
+
+
+
+
+
+
+
--
Gitee
From e9e1c6d0e62f7198f7f519f862d2fe1cac985c65 Mon Sep 17 00:00:00 2001
From: zhuzhutx <867963316@qq.com>
Date: Mon, 22 Aug 2022 09:14:13 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A7=BB=E9=99=A4?=
=?UTF-8?q?=E5=8D=95=E4=B8=AA=E7=BB=84=E4=BB=B6=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/style/ButtonStyle.vue | 12 +++++++++-
src/components/style/ImageStyle.vue | 14 ++++++++++--
src/components/style/LinkStyle.vue | 12 +++++++++-
src/components/style/PageStyle.vue | 34 +++++++++++++++-------------
src/components/style/TextStyle.vue | 12 +++++++++-
src/components/style/VideoStyle.vue | 12 +++++++++-
src/store/index.ts | 15 ++++++++++--
7 files changed, 87 insertions(+), 24 deletions(-)
diff --git a/src/components/style/ButtonStyle.vue b/src/components/style/ButtonStyle.vue
index 2b4b923..9948917 100644
--- a/src/components/style/ButtonStyle.vue
+++ b/src/components/style/ButtonStyle.vue
@@ -81,6 +81,7 @@
更新
+ 移除
@@ -99,7 +100,7 @@ const mainStore = userMainStore();
const form = reactive(utils.deepCopy(props.data))
-function updateConf(conf: Object, index: number) {
+function updateConf(conf: Object, index: number): void {
/**
* 触发更新tList中对应组件配置的action
*
@@ -108,6 +109,15 @@ function updateConf(conf: Object, index: number) {
*/
mainStore.updateConfig(utils.deepCopy(conf), index);
}
+
+function removeComponent(index: number): void {
+ /**
+ * 触发删除tList中对应组件的action
+ *
+ * @param {number} index 组件在tList中的位置
+ */
+ mainStore.deleteComponent(index);
+}
+
\ No newline at end of file
diff --git a/src/components/style/TextStyle.vue b/src/components/style/TextStyle.vue
index 46f3018..52f48d1 100644
--- a/src/components/style/TextStyle.vue
+++ b/src/components/style/TextStyle.vue
@@ -44,6 +44,7 @@
更新
+ 移除
@@ -70,7 +71,7 @@ for (let i: number = 12; i <= 30; i++) {
fontSizeArr.push(`${i}px`);
}
-function updateConf(conf: Object, index: number) {
+function updateConf(conf: Object, index: number): void {
/**
* 触发更新tList中对应组件配置的action
*
@@ -79,6 +80,15 @@ function updateConf(conf: Object, index: number) {
*/
mainStore.updateConfig(utils.deepCopy(conf), index);
}
+
+function removeComponent(index: number): void {
+ /**
+ * 触发删除tList中对应组件的action
+ *
+ * @param {number} index 组件在tList中的位置
+ */
+ mainStore.deleteComponent(index);
+}