From 7b01bec1609710729a868093ad69484ebea82d80 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 20 十月 2020 10:16:26 +0800
Subject: [PATCH] 2020-10-20

---
 src/templates/zshare/formconfig.jsx |  146 ++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 116 insertions(+), 30 deletions(-)

diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index 2632de6..911b47b 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -226,7 +226,7 @@
       min: 2,
       max: 12,
       label: '瀹藉害',
-      tooltip: '姣忚鍒嗕负24浠斤紝鏍戝舰姣斾緥鍙缃负2-12锛堟渶澶�50%锛�',
+      tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒楋紝鏍戝舰姣斾緥鍙缃负2-12锛堟渶澶�50%锛�',
       initVal: setting.width || 5,
       required: true
     },
@@ -529,7 +529,7 @@
       min: 1,
       max: 24,
       label: Formdict['header.form.ratio'],
-      tooltip: '姣忚鍒嗕负24浠斤紝姣斾緥鍙缃负1-24',
+      tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��',
       initVal: card.ratio,
       required: false
     },
@@ -1356,7 +1356,7 @@
       max: 24,
       decimal: 0,
       label: '鍥捐〃瀹藉害',
-      tooltip: '姣忚绛夊垎涓�24鍒楋紝24鍗充负100%銆�',
+      tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��',
       initVal: card.width || 24,
       required: true
     },
@@ -1398,7 +1398,7 @@
       max: card.widthType === 'absolute' ? 1000 : 24,
       decimal: 0,
       label: '鍗$墖瀹藉害',
-      tooltip: '绫诲瀷涓烘瘮渚嬫椂锛岃寖鍥�1-24锛�24鍗充负100%锛涚被鍨嬩负缁濆鍊硷紝鑼冨洿50-1000銆�',
+      tooltip: '绫诲瀷涓烘瘮渚嬫椂锛屾爡鏍煎竷灞�锛屾瘡琛岀瓑鍒嗕负24鍒楋紱绫诲瀷涓虹粷瀵瑰�硷紝鑼冨洿50-1000銆�',
       initVal: card.cardWidth || 6,
       hidden: true,
       required: true
@@ -1771,7 +1771,7 @@
     })
   }
 
-  if (card.type === 'textarea' || card.type === 'fileupload' || card.type === 'multiselect') {
+  if (card.type === 'textarea' || card.type === 'fileupload' || card.type === 'multiselect' || card.type === 'checkbox') {
     _fieldlength = 512
   }
 
@@ -1841,6 +1841,9 @@
         value: 'textarea',
         text: Formdict['model.form.textarea']
       }, {
+        value: 'hint',
+        text: '鎻愮ず'
+      }, {
         value: 'color',
         text: Formdict['model.form.color']
       }, {
@@ -1856,6 +1859,14 @@
       tooltip: '涓嬫媺澶氶�変笌澶氶�夋锛屾坊鍔犲涓垵濮嬪�艰浣跨敤鈥�,鈥濆彿鍒嗛殧銆�',
       initVal: card.initval || '',
       required: false
+    },
+    {
+      type: 'textarea',
+      key: 'message',
+      label: '鎻愮ず淇℃伅',
+      initVal: card.message || '',
+      required: true,
+      readonly: false
     },
     {
       type: 'text',
@@ -1900,6 +1911,50 @@
       }]
     },
     {
+      type: 'number',
+      key: 'width',
+      label: '鍗$墖瀹藉害',
+      initVal: card.width || 4,
+      tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��',
+      required: true
+    },
+    {
+      type: 'text',
+      key: 'cardValField',
+      label: Formdict['header.form.valueField'],
+      initVal: card.cardValField || 'Value',
+      required: true,
+      readonly: false
+    },
+    {
+      type: 'text',
+      key: 'urlField',
+      label: '鍦板潃瀛楁',
+      initVal: card.urlField || '',
+      required: true,
+      readonly: false
+    },
+    {
+      type: 'radio',
+      key: 'ratio',
+      label: '鍥剧墖姣斾緥',
+      initVal: card.ratio || '1:1',
+      required: true,
+      options: [{
+        value: '1:1',
+        text: '1:1'
+      }, {
+        value: '3:2',
+        text: '3:2'
+      }, {
+        value: '4:3',
+        text: '4:3'
+      }, {
+        value: '16:9',
+        text: '16:9'
+      }]
+    },
+    {
       type: 'radio',
       key: 'setAll',
       label: Formdict['header.form.setAll'],
@@ -1913,18 +1968,26 @@
       }]
     },
     {
-      type: 'textarea',
-      key: 'dataSource',
-      label: Formdict['header.form.datasource'],
-      initVal: card.dataSource || '',
+      type: 'fields',
+      key: 'fields',
+      label: '瀛楁闆�',
+      initVal: card.fields || [],
       required: true,
       readonly: false
     },
     {
       type: 'options',
       key: 'options',
-      label: '',
+      label: '閫夐」',
       initVal: card.options || [],
+      required: true,
+      readonly: false
+    },
+    {
+      type: 'codemirror',
+      key: 'dataSource',
+      label: Formdict['header.form.datasource'],
+      initVal: card.dataSource || '',
       required: true,
       readonly: false
     },
@@ -1972,6 +2035,20 @@
       }, {
         value: 'desc',
         text: Formdict['header.form.desc']
+      }]
+    },
+    {
+      type: 'radio',
+      key: 'multiple',
+      label: '鍙閫�',
+      initVal: card.multiple || 'false',
+      required: true,
+      options: [{
+        value: 'true',
+        text: '鏄�'
+      }, {
+        value: 'false',
+        text: '鍚�'
       }]
     },
     {
@@ -2028,25 +2105,6 @@
         value: 'letter&number',
         text: Formdict['header.form.letter&number']
       }]
-    },
-    {
-      type: 'select',
-      key: 'supField',
-      label: '涓婄骇琛ㄥ崟',
-      tooltip: '涓婄骇琛ㄥ崟涓轰笅鎷夐�夋嫨鎴栬仈鍔ㄨ彍鍗曪紝璁剧疆涓婄骇琛ㄥ崟鍚庯紝璇ヨ〃鍗曞彈鎺т簬涓婄骇鑿滃崟锛屾敞锛氬彈鎺у叧绯诲湪璇ヨ〃鍗曢殣钘忔椂澶辨晥銆�',
-      initVal: card.supField || '',
-      required: false,
-      readonly: false,
-      options: linksupFields
-    },
-    {
-      type: 'text',
-      key: 'supvalue',
-      label: '鏄剧ず鍊�',
-      tooltip: '閫夋嫨涓婄骇琛ㄥ崟鍚庯紝濉啓鏄剧ず鍊硷紝鍙湁涓婄骇琛ㄥ崟鍊间笌鏄剧ず鍊肩浉鍚屾椂锛岃琛ㄥ崟鎵嶄細鏄剧ず锛屾敞锛氬涓�肩敤閫楀彿鍒嗛殧銆�',
-      initVal: card.supvalue || '',
-      required: true,
-      readonly: false
     },
     {
       type: 'select',
@@ -2140,7 +2198,7 @@
     {
       type: 'radio',
       key: 'writein',
-      label: '鍐欏叆',
+      label: '鎵ц杩愮畻',
       tooltip: '琛ㄥ崟鎻愪氦鏃讹紝鏄惁灏嗚瀛楁鍊煎啓鍏ラ粯璁ql璇彞涓��',
       initVal: card.writein || 'true',
       options: [{
@@ -2193,13 +2251,41 @@
       }]
     },
     {
+      type: 'select',
+      key: 'supField',
+      label: '涓婄骇琛ㄥ崟',
+      tooltip: '涓婄骇琛ㄥ崟涓轰笅鎷夐�夋嫨銆佽仈鍔ㄨ彍鍗曘�佸崟閫夋鍙婂閫夋锛屾坊鍔犲悗璇ヨ〃鍗曟樉绀哄強闅愯棌灏嗗彈涓婄骇琛ㄥ崟鎺у埗锛屾敞锛氬彈鎺у叧绯诲湪璇ヨ〃鍗曢殣钘忔椂澶辨晥銆�',
+      initVal: card.supField || '',
+      required: false,
+      readonly: false,
+      options: linksupFields
+    },
+    {
+      type: 'text',
+      key: 'supvalue',
+      label: '鏄剧ず鍊�',
+      tooltip: '璇峰~鍐欐樉绀哄�硷紝鍙湁涓婄骇琛ㄥ崟鍊间笌鏄剧ず鍊肩浉鍚屾椂锛岃琛ㄥ崟鎵嶄細鏄剧ず锛屾敞锛氬涓�肩敤閫楀彿鍒嗛殧銆�',
+      initVal: card.supvalue || '',
+      required: true,
+      readonly: false
+    },
+    {
       type: 'multiselect',
       key: 'linkSubField',
       label: Formdict['model.form.linkform'],
+      tooltip: '鍦ㄥ垏鎹㈤�夐」鏃朵細鎶婁俊鎭嚜鍔ㄥ~鍏ュ叧鑱旂殑琛ㄥ崟锛堟枃鏈垨鏁板瓧琛ㄥ崟锛変腑銆�',
       initVal: card.linkSubField || [],
       options: inputfields
     },
     {
+      type: 'text',
+      key: 'tooltip',
+      label: '琛ㄥ崟娉ㄩ噴',
+      tooltip: '榧犳爣鎮诞浜庢彁绀烘枃瀛椾笂鏂规椂锛屾樉绀烘敞閲娿��',
+      initVal: card.tooltip || '',
+      required: false
+    },
+    {
       type: 'multiselect',
       key: 'blacklist',
       label: Formdict['header.form.blacklist'],

--
Gitblit v1.8.0