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 = '';