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 |   42 +++++++++++++++++++++++++++++++++++++++---
 1 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/search/main-search/options.jsx b/src/menu/components/search/main-search/options.jsx
index 8f39286..8228b2b 100644
--- a/src/menu/components/search/main-search/options.jsx
+++ b/src/menu/components/search/main-search/options.jsx
@@ -54,7 +54,7 @@
     {
       type: 'radio',
       field: 'drawerPlacement',
-      label: '鎶藉眽鏂瑰悜',
+      label: '寮瑰嚭鏂瑰悜',
       initval: wrap.drawerPlacement || 'right',
       required: false,
       options: [
@@ -94,7 +94,7 @@
       tooltip: '鎼滅储鎸夐挳璺濆乏渚х殑鐧惧垎姣旓紝鍙傜収鎼滅储鏉′欢鐨勫悕绉板搴︺��',
       min: 0,
       max: 100,
-      precision: 10,
+      precision: 1,
       required: true
     },
     {
@@ -117,7 +117,30 @@
       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',
@@ -129,7 +152,20 @@
         {value: 'true', label: '鍚敤'},
         {value: 'false', label: '绂佺敤'},
       ],
-      forbid: !appType
+      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',

--
Gitblit v1.8.0