From bcef9a2845e6800704fecb3eb60c204f80854a07 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 24 九月 2020 09:17:24 +0800
Subject: [PATCH] 2020-09-24

---
 src/menu/actioncomponent/formconfig.jsx |   40 ++++++++++++++++++++++------------------
 1 files changed, 22 insertions(+), 18 deletions(-)

diff --git a/src/menu/actioncomponent/formconfig.jsx b/src/menu/actioncomponent/formconfig.jsx
index 3f590d9..0a83d2c 100644
--- a/src/menu/actioncomponent/formconfig.jsx
+++ b/src/menu/actioncomponent/formconfig.jsx
@@ -231,20 +231,6 @@
     },
     {
       type: 'select',
-      key: 'position',
-      label: Formdict['header.form.position'],
-      initVal: card.position || 'toolbar',
-      required: true,
-      options: [{
-        value: 'toolbar',
-        text: Formdict['header.form.toolbar']
-      }, {
-        value: 'grid',
-        text: Formdict['header.form.grid']
-      }]
-    },
-    {
-      type: 'select',
       key: 'Ot',
       label: Formdict['header.form.isRequired'],
       initVal: card.Ot || 'requiredSgl',
@@ -331,10 +317,27 @@
     },
     {
       type: 'select',
+      key: 'show',
+      label: "鏄剧ず涓�",
+      initVal: card.show || 'icon',
+      required: true,
+      options: [{
+        value: 'icon',
+        text: '鍥炬爣'
+      }, {
+        value: 'button',
+        text: '鎸夐挳'
+      }, {
+        value: 'link',
+        text: '閾炬帴'
+      }]
+    },
+    {
+      type: 'select',
       key: 'icon',
       label: Formdict['model.icon'],
       initVal: card.icon,
-      required: type === 'chart', // 鍥捐〃蹇呴』浣跨敤鍥炬爣
+      required: false,
       options: []
     },
     {
@@ -404,7 +407,8 @@
     // }
   ]
 
-  if (type === 'chart') {
-    return forms
-  }
+  // if (type === 'chart') {
+  //   return forms
+  // }
+  return forms
 }

--
Gitblit v1.8.0