From 763a67d39dcb0e5ae49816abcdb9cb7cbc2bd9e0 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 18 五月 2020 10:12:31 +0800
Subject: [PATCH] 2020-05-18

---
 src/templates/zshare/formconfig.jsx |   86 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 86 insertions(+), 0 deletions(-)

diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index f07c50a..af90474 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -2078,4 +2078,90 @@
       }]
     }
   ]
+}
+
+/**
+ * @description 鑾峰彇鍗$墖璇︽儏琛ㄥ崟閰嶇疆淇℃伅
+ * @param {object} card  // 鏍囩閰嶇疆淇℃伅
+ */
+export function getCardDetailForm (card, _columns) {
+  return [
+    {
+      type: 'radio',
+      key: 'datatype',
+      label: '鏁版嵁绫诲瀷',
+      initVal: card.datatype || 'dynamic',
+      required: true,
+      options: [{
+        value: 'dynamic',
+        text: '鍔ㄦ��'
+      }, {
+        value: 'static',
+        text: '闈欐��'
+      }]
+    },
+    {
+      type: 'text',
+      key: 'content',
+      label: '鍐呭',
+      initVal: card.content || '',
+      required: true
+    },
+    {
+      type: 'select',
+      key: 'field',
+      label: '瀛楁',
+      initVal: card.field || '',
+      required: true,
+      options: _columns
+    },
+    {
+      type: 'radio',
+      key: 'bold',
+      label: '鍔犵矖',
+      initVal: card.bold || 'false',
+      required: true,
+      options: [{
+        value: 'true',
+        text: '鏄�'
+      }, {
+        value: 'false',
+        text: '鍚�'
+      }]
+    },
+    {
+      type: 'radio',
+      key: 'width',
+      label: '瀹藉害',
+      initVal: card.width || '',
+      required: false,
+      options: [{
+        value: '',
+        text: '100%'
+      }, {
+        value: 'helf',
+        text: '50%'
+      }, {
+        value: 'third',
+        text: '33.3%'
+      }]
+    },
+    {
+      type: 'radio',
+      key: 'align',
+      label: '瀵归綈',
+      initVal: card.align || '',
+      required: false,
+      options: [{
+        value: '',
+        text: '宸�'
+      }, {
+        value: 'align-center',
+        text: '灞呬腑'
+      }, {
+        value: 'align-right',
+        text: '鍙�'
+      }]
+    }
+  ]
 }
\ No newline at end of file

--
Gitblit v1.8.0