From 21e78cf4ffa1ab06236f658df418f75c0aecbb4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Tue, 4 Mar 2025 10:04:05 +0800
Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/data-magic.vue | 6 +++---
.../diy/modules/custom/data-group-rendering.vue | 9 ++++++---
components/diy/modules/custom/data-rendering.vue | 12 ++++++------
components/diy/search.vue | 3 ++-
4 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/components/diy/data-magic.vue b/components/diy/data-magic.vue
index 46bd15cc..1778d550 100644
--- a/components/diy/data-magic.vue
+++ b/components/diy/data-magic.vue
@@ -29,13 +29,13 @@
-
+
-
+
@@ -91,7 +91,7 @@
-
+
diff --git a/components/diy/modules/custom/data-group-rendering.vue b/components/diy/modules/custom/data-group-rendering.vue
index 7ed8cfab..b28ca0c7 100644
--- a/components/diy/modules/custom/data-group-rendering.vue
+++ b/components/diy/modules/custom/data-group-rendering.vue
@@ -114,6 +114,9 @@ export default {
// 初始化
this.init();
},
+ propCustomList(val) {
+ this.init(val);
+ }
},
computed: {
get_percentage_count() {
@@ -166,12 +169,12 @@ export default {
}
},
mounted() {
- this.init();
+ this.init(this.propCustomList);
},
methods: {
- async init() {
+ async init(val) {
await this.get_custom_width();
- this.set_new_list(this.propCustomList);
+ this.set_new_list(val);
},
get_custom_width() {
// 获取当前容器的宽度
diff --git a/components/diy/modules/custom/data-rendering.vue b/components/diy/modules/custom/data-rendering.vue
index 04e2ff6f..34ec2373 100644
--- a/components/diy/modules/custom/data-rendering.vue
+++ b/components/diy/modules/custom/data-rendering.vue
@@ -2,22 +2,22 @@
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/components/diy/search.vue b/components/diy/search.vue
index 6d6cc9c2..6e7bee8b 100644
--- a/components/diy/search.vue
+++ b/components/diy/search.vue
@@ -147,6 +147,7 @@ export default {
search_button_style: '',
search_button_img_style: '',
search_button_height: '',
+ button_padding: { padding: 0, padding_bottom: 3, padding_left: 12, padding_right: 12, padding_top: 3 }
};
},
watch: {
@@ -210,7 +211,7 @@ export default {
background_img: search_botton_background_img,
background_img_style: search_botton_background_img_style,
}
- return background_computer(data) + padding_computer(new_style?.search_botton_padding || old_padding) + 'box-sizing: border-box;';
+ return background_computer(data) + padding_computer(new_style?.search_botton_padding || button_padding) + 'box-sizing: border-box;';
},
// get_style(new_style) {
// let common_styles = '';