From 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 12 十二月 2023 21:05:37 +0800
Subject: [PATCH] 2023-12-12

---
 src/menu/components/search/main-search/options.jsx |  104 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 101 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/search/main-search/options.jsx b/src/menu/components/search/main-search/options.jsx
index 996e994..8228b2b 100644
--- a/src/menu/components/search/main-search/options.jsx
+++ b/src/menu/components/search/main-search/options.jsx
@@ -36,22 +36,72 @@
       required: true
     },
     {
+      type: 'radio',
+      field: 'advanceType',
+      label: '楂樼骇鎼滅储',
+      initval: wrap.advanceType || 'modal',
+      required: false,
+      options: [
+        {value: 'modal', label: '寮圭獥'},
+        {value: 'drawer', label: '鎶藉眽'},
+        {value: 'pulldown', label: '涓嬫媺'}
+      ],
+      controlFields: [
+        {field: 'advanceWidth', values: ['modal', 'drawer']},
+        {field: 'drawerPlacement', values: ['drawer']}
+      ]
+    },
+    {
+      type: 'radio',
+      field: 'drawerPlacement',
+      label: '寮瑰嚭鏂瑰悜',
+      initval: wrap.drawerPlacement || 'right',
+      required: false,
+      options: [
+        {value: 'right', label: '鍙充晶'},
+        {value: 'left', label: '宸︿晶'},
+        {value: 'top', label: '涓婁晶'},
+        {value: 'bottom', label: '涓嬩晶'}
+      ]
+    },
+    {
       type: 'number',
       field: 'advanceWidth',
-      label: '楂樼骇鎼滅储',
+      label: '寮圭獥瀹藉害',
       initval: wrap.advanceWidth || 1000,
-      tooltip: '楂樼骇鎼滅储寮圭獥鐨勫搴︼紝娉細褰撳搴﹀�煎皬浜�100鏃惰〃绀哄崰绐楀彛鐨勭櫨鍒嗘瘮锛屽ぇ浜�100鏃惰〃绀哄搴︾殑缁濆鍊笺��',
+      tooltip: '楂樼骇鎼滅储寮圭獥鐨勫搴︼紝娉細褰撳搴﹀�煎皬浜�100鏃惰〃绀哄崰绐楀彛鐨勭櫨鍒嗘瘮锛屽ぇ浜�100鏃惰〃绀哄搴︾殑缁濆鍊笺�傚綋浣跨敤涓婁笅鏄剧ず鐨勬娊灞夋椂浠h〃鎶藉眽楂樺害銆�',
       min: 10,
       max: 3000,
       precision: 0,
       required: false
     },
     {
+      type: 'number',
+      field: 'searchRatio',
+      label: '鎸夐挳姣斾緥',
+      initval: wrap.searchRatio || 6,
+      tooltip: '鎼滅储鍙婇噸缃寜閽墍鍗犳瘮渚嬨�傛爡鏍煎竷灞�锛屾瘡琛岀瓑鍒嗕负24鍒椼��',
+      min: 1,
+      max: 24,
+      precision: 0,
+      required: true
+    },
+    {
+      type: 'number',
+      field: 'searchLwidth',
+      label: '鎸夐挳鍋忕Щ',
+      initval: wrap.searchLwidth !== undefined ? wrap.searchLwidth : 33.3,
+      tooltip: '鎼滅储鎸夐挳璺濆乏渚х殑鐧惧垎姣旓紝鍙傜収鎼滅储鏉′欢鐨勫悕绉板搴︺��',
+      min: 0,
+      max: 100,
+      precision: 1,
+      required: true
+    },
+    {
       type: 'radio',
       field: 'float',
       label: '瀵归綈',
       initval: wrap.float || 'left',
-      tooltip: '鍙冲榻愭椂锛岄殣钘忔悳绱㈡寜閽��',
       required: false,
       options: [
         {value: 'left', label: '宸﹀榻�'},
@@ -67,9 +117,57 @@
       options: [
         {value: 'true', label: '鏄剧ず'},
         {value: 'false', label: '闅愯棌'},
+      ],
+      controlFields: [
+        {field: 'borderRadius', values: ['true']},
+        {field: 'resetContrl', values: ['true']}
       ]
     },
     {
+      type: 'number',
+      field: 'borderRadius',
+      label: '鎸夐挳鍦嗚',
+      initval: wrap.borderRadius || '',
+      tooltip: '鎼滅储鍜岄噸缃寜閽殑鍦嗚銆�',
+      required: false
+    },
+    {
+      type: 'radio',
+      field: 'resetContrl',
+      label: '閲嶇疆鏃�',
+      initval: wrap.resetContrl || 'init',
+      required: false,
+      options: [
+        {value: 'init', label: '鎭㈠鍒濆鍊�'},
+        {value: 'clear', label: '娓呯┖'},
+      ],
+    },
+    {
+      type: 'radio',
+      field: 'permission',
+      label: '鏉冮檺楠岃瘉',
+      initval: wrap.permission || 'false',
+      required: false,
+      options: [
+        {value: 'true', label: '鍚敤'},
+        {value: 'false', label: '绂佺敤'},
+      ],
+      forbid: !appType || sessionStorage.getItem('editMenuType') === 'popview'
+    },
+    {
+      type: 'radio',
+      field: 'cacheSearch',
+      label: '鎼滅储缂撳瓨',
+      initval: wrap.cacheSearch || 'false',
+      tooltip: '鍚敤鎼滅储鏉′欢缂撳瓨鍚庯紝鍦ㄨ彍鍗曞埛鏂版椂鎼滅储鏉′欢涓嶅彉銆�',
+      required: false,
+      options: [
+        {value: 'true', label: '鍚敤'},
+        {value: 'false', label: '绂佺敤'},
+      ],
+      forbid: !!appType
+    },
+    {
       type: 'multiselect',
       field: 'blacklist',
       label: '榛戝悕鍗�',

--
Gitblit v1.8.0