From 206cabfd3b02e7e0aa2d7fdba11148982059df14 Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Mon, 9 Sep 2024 15:16:38 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E9=94=80=E5=AD=98:=201.diy=E8=A3=85?=
=?UTF-8?q?=E4=BF=AE=E6=B8=B2=E6=9F=93=E5=B8=83=E5=B1=80=20sws-2024-09-09?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/auxiliary-line.vue | 18 ++++++++-----
components/diy/diy.vue | 2 +-
components/diy/footer.vue | 43 ++++++++++++++++++++++++++++---
3 files changed, 51 insertions(+), 12 deletions(-)
diff --git a/components/diy/auxiliary-line.vue b/components/diy/auxiliary-line.vue
index bbaa4481..aaf33163 100644
--- a/components/diy/auxiliary-line.vue
+++ b/components/diy/auxiliary-line.vue
@@ -22,14 +22,18 @@
};
},
mounted() {
- const new_content = this.value.content || {};
- const new_style = this.value.style || {};
- let border_content = `border-bottom-style: ${new_content?.styles || 'solid'};`;
- let border_style = `border-bottom-width: ${new_style.line_width || 1}px; border-bottom-color: ${new_style.line_color || 'rgba(204, 204, 204, 1)'};`;
- this.style = border_content + border_style;
- this.style_container = common_styles_computer(new_style.common_style);
+ init();
+ },
+ methods: {
+ init() {
+ const new_content = this.value.content || {};
+ const new_style = this.value.style || {};
+ let border_content = `border-bottom-style: ${new_content?.styles || 'solid'};`;
+ let border_style = `border-bottom-width: ${new_style.line_width || 1}px; border-bottom-color: ${new_style.line_color || 'rgba(204, 204, 204, 1)'};`;
+ this.style = border_content + border_style;
+ this.style_container = common_styles_computer(new_style.common_style);
+ },
},
- methods: {},
};
diff --git a/components/diy/diy.vue b/components/diy/diy.vue
index dceeaaec..cd117e4e 100644
--- a/components/diy/diy.vue
+++ b/components/diy/diy.vue
@@ -7,7 +7,7 @@
-
+
diff --git a/components/diy/footer.vue b/components/diy/footer.vue
index 549d6fef..63c04744 100644
--- a/components/diy/footer.vue
+++ b/components/diy/footer.vue
@@ -1,5 +1,5 @@
-