From 648a9fa41cde7892a466f81c74400dc9bcfc0fa8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Thu, 5 Sep 2024 10:20:04 +0800
Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/model-search/index.vue | 19 ++++++++++-----
.../model-search/model-search-content.vue | 4 ++--
.../model-search/model-search-styles.vue | 10 ++++----
.../components/main/default/header-nav.ts | 24 +++++++++----------
.../layout/components/main/default/search.ts | 24 +++++++++----------
5 files changed, 44 insertions(+), 37 deletions(-)
diff --git a/src/components/model-search/index.vue b/src/components/model-search/index.vue
index 26325e31..9e01d525 100644
--- a/src/components/model-search/index.vue
+++ b/src/components/model-search/index.vue
@@ -4,9 +4,9 @@
-
+
-
+
@@ -19,12 +19,12 @@
{{ form.search_tips }}
-
-
+
+
-
+
@@ -79,8 +79,15 @@ const box_style = computed(() => {
});
const search_button = computed(() => {
let style = search_button_radius.value;
+ const { search_botton_color_list, search_botton_direction, search_botton_background_img_style, search_botton_background_img } = new_style.value;
if (form.value.search_type != 'img') {
- style += gradient_computer(new_style.value) + background_computer(new_style.value) + `color: ${ new_style.value.button_inner_color };`;
+ const data = {
+ color_list: search_botton_color_list,
+ direction: search_botton_direction,
+ background_img: search_botton_background_img,
+ background_img_style: search_botton_background_img_style,
+ }
+ style += gradient_computer(data) + background_computer(data) + `color: ${ new_style.value.button_inner_color };`;
}
return style;
})
diff --git a/src/components/model-search/model-search-content.vue b/src/components/model-search/model-search-content.vue
index 6151a91b..58ff5fea 100644
--- a/src/components/model-search/model-search-content.vue
+++ b/src/components/model-search/model-search-content.vue
@@ -9,7 +9,7 @@
-
+
@@ -37,7 +37,7 @@
文字
-
+
diff --git a/src/components/model-search/model-search-styles.vue b/src/components/model-search/model-search-styles.vue
index f5bd3ba1..d7d58872 100644
--- a/src/components/model-search/model-search-styles.vue
+++ b/src/components/model-search/model-search-styles.vue
@@ -19,10 +19,10 @@
背景色
-
+
背景图
-
+
@@ -34,7 +34,7 @@
-
+
@@ -118,8 +118,8 @@ const border_radius_change = (radius: any) => {
}
const mult_color_picker_event = (arry: color_list[], type: number) => {
- form.value.color_list = arry;
- form.value.direction = type.toString();
+ form.value.search_botton_color_list = arry;
+ form.value.search_botton_direction = type.toString();
};