From b69b5f6329ca5f87932436b7a6c1ddfc3377e10f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 五月 2024 10:56:41 +0800
Subject: [PATCH] 2024-05-16

---
 src/menu/components/card/doublecardcomponent/options.jsx |   86 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 70 insertions(+), 16 deletions(-)

diff --git a/src/menu/components/card/doublecardcomponent/options.jsx b/src/menu/components/card/doublecardcomponent/options.jsx
index be415f4..e47a287 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, subtype, buttons = [], cardType, columns) {
+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,15 +102,15 @@
         {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']},
         {field: 'linkurl', values: ['link']},
         {field: 'open', values: ['menu', 'link']},
-        {field: 'joint', values: ['menu', 'link']},
         {field: 'linkbtn', values: ['button']},
-        {field: 'clickType', values: ['button']},
+        {field: 'clickType', values: ['button', 'unfold']},
       ]
     },
     {
@@ -67,6 +118,7 @@
       field: 'menu',
       label: '鍏宠仈鑿滃崟',
       initval: setting.menu || (appType ? '' : []),
+      tooltip: `琛屼俊鎭�${appType ? '锛堝瓧娈甸泦涓墠40涓暱搴︿笉瓒呰繃256鐨勫瓧娈碉級' : ''}灏嗕紶閫掕嚦姝よ彍鍗曪紝鍙湪url鍙橀噺銆佽〃鍗曪紙鍏宠仈涓昏〃锛夈�侀潤鎬佸睘鎬у崱銆佹诞鍔ㄥ崱涓娇鐢ㄣ�俙,
       required: true,
       extendName: 'MenuNo',
       options: menulist,
@@ -76,6 +128,8 @@
       field: 'linkurl',
       label: '閾炬帴',
       initval: setting.linkurl || '',
+      tooltip: '鍦ㄩ摼鎺ヤ腑浠***@褰㈠紡鎷兼帴鐨勫瓧娈碉紙瀛楁鏉ユ簮浜庡瓧娈甸泦涓紝姝ゅ id銆乤ppkey銆乽serid銆丩oginUID 涓虹郴缁熷瓧娈碉級锛岃烦杞椂灏嗘浛鎹负瀵瑰簲鍊硷紝渚嬪锛歨ttp://sso.mk9h.cn/doc/index.html?appkey=@appkey@&LoginUID=@LoginUID@锛屽叾涓璦ppkey涓嶭oginUID灏嗚鏇挎崲銆�',
+      toolWidth: 350,
       required: true,
       options: [],
       span: 24
@@ -93,23 +147,23 @@
       forbid: appType !== 'pc' && appType !== 'mob'
     },
     {
-      type: 'radio',
-      field: 'joint',
-      label: '鍙傛暟鎷兼帴',
-      initval: setting.joint || 'true',
-      required: false,
-      options: [
-        {value: 'true', label: '鏄�'},
-        {value: 'false', label: '鍚�'},
-      ],
-    },
-    {
       type: 'select',
       field: 'linkbtn',
       label: '鍏宠仈鎸夐挳',
       initval: setting.linkbtn || '',
       required: true,
       options: buttons
+    },
+    {
+      type: 'radio',
+      field: 'layout',
+      label: '鍏冪礌甯冨眬',
+      initval: setting.layout || 'grid',
+      required: false,
+      options: [
+        {value: 'grid', label: '鏍呮牸甯冨眬'},
+        {value: 'flex', label: '寮规�у竷灞�'},
+      ]
     },
     {
       type: 'radio',
@@ -128,7 +182,7 @@
       field: 'btnControl',
       label: '鎸夐挳鎺у埗',
       initval: setting.btnControl || 'show',
-      tooltip: '鍙缃寜閽樉绀鸿鍒欙紝涓�鐩存樉绀烘垨榧犳爣鎮诞鏃舵樉绀恒��',
+      tooltip: '鍙缃寜閽樉绀鸿鍒欙紝濮嬬粓鏄剧ず鎴栭紶鏍囨偓娴椂鏄剧ず銆�',
       required: false,
       options: [
         {value: 'show', label: '姝e父鏄剧ず'},

--
Gitblit v1.8.0