From 8137ac074ce6370e4b46295e7acf9c7870ef82d2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 17 二月 2023 22:19:23 +0800
Subject: [PATCH] 2023-02-17

---
 src/menu/components/card/doublecardcomponent/options.jsx |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 55 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/card/doublecardcomponent/options.jsx b/src/menu/components/card/doublecardcomponent/options.jsx
index 1a8a39c..16bd37f 100644
--- a/src/menu/components/card/doublecardcomponent/options.jsx
+++ b/src/menu/components/card/doublecardcomponent/options.jsx
@@ -1,7 +1,7 @@
 /**
  * @description Setting琛ㄥ崟閰嶇疆淇℃伅
  */
-export default function (setting, buttons = []) {
+export default function (setting, buttons = [], columns, type) {
   let appType = sessionStorage.getItem('appType')
   let menulist = []
 
@@ -43,6 +43,57 @@
     },
     {
       type: 'radio',
+      field: 'display',
+      label: '瀛愯〃鏄剧ず',
+      initval: setting.display || 'default',
+      tooltip: '灞曞紑涓庡悎骞朵负鐢ㄦ埛鍙嚜琛屽垏鎹€��',
+      required: false,
+      options: [
+        {value: 'default', label: '榛樿'},
+        {value: 'unfold', label: '灞曞紑'},
+        {value: 'collapse', label: '鍚堝苟'},
+      ],
+      controlFields: [
+        {field: 'position', values: ['default']},
+        {field: 'controlIcon', values: ['unfold', 'collapse']},
+      ],
+      forbid: type !== 'main'
+    },
+    {
+      type: 'radio',
+      field: 'controlIcon',
+      label: '鎺у埗鍥炬爣',
+      initval: setting.controlIcon || 'left',
+      required: false,
+      options: [
+        {value: 'left', label: '宸︿晶'},
+        {value: 'right', label: '鍙充晶'},
+      ],
+      forbid: type !== 'main'
+    },
+    {
+      type: 'radio',
+      field: 'position',
+      label: '瀛愯〃浣嶇疆',
+      initval: setting.position || 'bottom',
+      required: false,
+      options: [
+        {value: 'bottom', label: '涓昏〃涓嬫柟'},
+        {value: 'inner', label: '涓昏〃鍐�'},
+      ],
+      forbid: type !== 'main'
+    },
+    {
+      type: 'select',
+      field: 'bgField',
+      label: '鑳屾櫙鍥�',
+      initval: setting.bgField || '',
+      tooltip: '鍔ㄦ�佽儗鏅紝鑳屾櫙鍥剧墖鐢卞瓧娈靛�兼帶鍒躲�傝娉ㄦ剰璋冩暣鑳屾櫙鏍峰紡銆�',
+      required: false,
+      options: columns
+    },
+    {
+      type: 'select',
       field: 'click',
       label: '鐐瑰嚮浜嬩欢',
       initval: setting.click || '',
@@ -51,7 +102,8 @@
         {value: '', label: '鏃�'},
         {value: 'menu', label: '鑿滃崟'},
         {value: 'link', label: '閾炬帴'},
-        {value: 'button', label: '鎸夐挳'}
+        {value: 'button', label: '鎸夐挳'},
+        {value: 'unfold', label: '瀛愯〃缂╂斁', disabled: type !== 'main'},
       ],
       controlFields: [
         {field: 'menu', values: ['menu']},
@@ -59,7 +111,7 @@
         {field: 'open', values: ['menu', 'link']},
         {field: 'joint', values: ['menu', 'link']},
         {field: 'linkbtn', values: ['button']},
-        {field: 'clickType', values: ['button']},
+        {field: 'clickType', values: ['button', 'unfold']},
       ]
     },
     {

--
Gitblit v1.8.0