From da34633b25d16359cd91a656acad5e811f9972b7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 14 三月 2023 18:09:54 +0800
Subject: [PATCH] 2023-03-14

---
 src/menu/components/card/cardcellcomponent/formconfig.jsx |  647 ++++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 514 insertions(+), 133 deletions(-)

diff --git a/src/menu/components/card/cardcellcomponent/formconfig.jsx b/src/menu/components/card/cardcellcomponent/formconfig.jsx
index 40fa793..859dc58 100644
--- a/src/menu/components/card/cardcellcomponent/formconfig.jsx
+++ b/src/menu/components/card/cardcellcomponent/formconfig.jsx
@@ -1,16 +1,48 @@
-// import zhCN from '@/locales/zh-CN/model.js'
-// import enUS from '@/locales/en-US/model.js'
-
-// const Formdict = localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
+import MenuUtils from '@/utils/utils-custom.js'
 
 /**
- * @description 鑾峰彇鎸夐挳琛ㄥ崟閰嶇疆淇℃伅
- * @param {*} card           缂栬緫鎸夐挳
- * @param {*} setting        缁勪欢閰嶇疆
- * @param {*} permFuncField  瀛樺偍杩囩▼鍙敤鐨勫紑濮嬪瓧娈�
- * @param {*} type           鎸夐挳绫诲瀷锛岀敤浜庡尯鍒嗗彲閫夌殑鎵撳紑鏂瑰紡
+ * @description 鑾峰彇鍏冪礌閰嶇疆淇℃伅
+ * @param {*} card
+ * @param {*} type
  */
-export function getCardCellForm (card) {
+export function getCardCellForm (card, cards, cardCell) {
+  let _options = [
+    { value: 'text', text: '鏂囨湰'},
+    { value: 'number', text: '鏁板��'},
+    { value: 'picture', text: '鍥剧墖'},
+    { value: 'video', text: '瑙嗛'},
+    { value: 'icon', text: '鍥炬爣'},
+    { value: 'slider', text: '杩涘害鏉�'},
+    { value: 'splitline', text: '鍒嗗壊绾�'},
+    { value: 'barcode', text: '鏉″舰鐮�'},
+    { value: 'qrcode', text: '浜岀淮鐮�'},
+    { value: 'currentDate', text: '褰撳墠鏃堕棿'},
+    { value: 'formula', text: '鍏紡'},
+    { value: 'color', text: '棰滆壊'},
+  ]
+
+  let anchors = []
+  if (window.GLOB.customMenu.Template === 'BaseTable') {
+    anchors = null
+  } else {
+    anchors = MenuUtils.getAnchors(window.GLOB.customMenu.components, cards.uuid) || []
+  }
+
+  if (cards.type === 'table' || (cards.type === 'card' && cards.subtype !== 'propcard')) {
+    _options.push({value: 'sequence', text: '搴忓彿'})
+  } else if (card.eleType === 'sequence') { // 鎷栨嫿娣诲姞绫诲瀷杞崲
+    card.eleType = 'text'
+  }
+  if (card.eleType === 'icon' && card.datatype === 'dynamic' && !card.field) { // 鎷栨嫿娣诲姞绫诲瀷杞崲
+    card.datatype = 'static'
+  }
+  let appType = sessionStorage.getItem('appType')
+
+  let tooltip = ''
+  if (cardCell.$cardType === 'extendCard') {
+    tooltip = '鍦ㄦ墿灞曞崱鐗囦腑锛屽姩鎬佹暟鎹樉绀哄�间负鑾峰彇鍒扮殑绗竴琛屾暟鎹��'
+  }
+
   let forms = [
     {
       type: 'select',
@@ -18,20 +50,14 @@
       label: '鍏冪礌绫诲瀷',
       initVal: card.eleType,
       required: true,
-      options: [
-        { value: 'text', text: '鏂囨湰'},
-        { value: 'number', text: '鏁板��'},
-        { value: 'picture', text: '鍥剧墖'},
-        { value: 'icon', text: '鍥炬爣'},
-        { value: 'slider', text: '杩涘害鏉�'},
-        { value: 'splitline', text: '鍒嗗壊绾�'},
-      ]
+      options: _options
     },
     {
       type: 'radio',
       key: 'datatype',
       label: '鏁版嵁绫诲瀷',
-      initVal: card.datatype || 'dynamic',
+      initVal: card.datatype || 'static',
+      tooltip,
       required: true,
       options: [
         { value: 'dynamic', text: '鍔ㄦ��' },
@@ -47,19 +73,136 @@
       options: []
     },
     {
-      type: 'file',
-      key: 'url',
-      label: '鍥剧墖',
-      initVal: card.url || '',
-      maxfile: 1,
-      required: false
+      type: 'icon',
+      key: 'icon',
+      label: '鍥炬爣',
+      initVal: card.icon,
+      required: true
     },
     {
       type: 'text',
       key: 'value',
+      min: 0,
       label: '鍐呭',
       initVal: card.value || '',
+      tooltip: '鏂囨湰绫诲瀷锛屼細鏇挎崲鍐呭涓殑@username@銆丂fullName@銆丂mk_city@銆丂appname@銆丂bid@銆�',
       required: true
+    },
+    {
+      type: 'file',
+      key: 'url',
+      label: '鍥剧墖/鏂囦欢',
+      tooltip: '浣跨敤闈欐�佸浘鐗囨椂锛孈icon@浠h〃澶村儚銆�',
+      initVal: card.url || '',
+      maxfile: 1,
+      required: true
+    },
+    {
+      type: 'radio',
+      key: 'autoPlay',
+      label: '鑷姩鎾斁',
+      initVal: card.autoPlay || 'false',
+      required: false,
+      options: [
+        { value: 'true', text: '鏄�' },
+        { value: 'false', text: '鍚�' }
+      ]
+    },
+    {
+      type: 'radio',
+      key: 'loop',
+      label: '寰幆鎾斁',
+      initVal: card.loop || 'false',
+      required: false,
+      options: [
+        { value: 'true', text: '鏄�' },
+        { value: 'false', text: '鍚�' }
+      ]
+    },
+    {
+      type: 'number',
+      key: 'startTime',
+      precision: 0,
+      label: '寮�濮嬫椂闂�',
+      initVal: card.startTime || 0,
+      tooltip: '瑙嗛寮�濮嬫挱鏀剧殑鏃堕棿锛岀敤浜庤皟鏁磋棰戝垵濮嬪寲灞曠ず鐨勭晫闈€��',
+      required: false
+    },
+    {
+      type: 'radio',
+      key: 'posterType',
+      label: '棰勮鍥�',
+      initVal: card.posterType || '',
+      required: false,
+      options: [
+        { value: '', text: '鏃�' },
+        { value: 'dynamic', text: '鍔ㄦ��' },
+        { value: 'static', text: '闈欐��' }
+      ]
+    },
+    {
+      type: 'file',
+      key: 'posterUrl',
+      label: '棰勮鍦板潃',
+      initVal: card.posterUrl || '',
+      maxfile: 1,
+      required: true
+    },
+    {
+      type: 'select',
+      key: 'posterField',
+      label: '棰勮鍦板潃',
+      initVal: card.posterField || '',
+      required: true
+    },
+    {
+      type: 'number',
+      key: 'decimal',
+      min: 0,
+      max: 18,
+      decimal: 0,
+      label: '灏忔暟浣�',
+      initVal: card.decimal === undefined ? '' : card.decimal,
+      required: false
+    },
+    {
+      type: 'select',
+      key: 'format',
+      label: '鏍煎紡鍖�',
+      initVal: card.format || '',
+      required: false,
+      options: [],
+      oriOptions: [
+        { value: '', text: '鏃�' },
+        { value: 'percent', text: '鐧惧垎鏁�' },
+        { value: 'thdSeparator', text: '鍗冨垎浣�' },
+        { value: 'abs', text: '缁濆鍊�' },
+        { value: 'encryption', text: '鍔犲瘑'},
+        { value: 'YYYY-MM-DD', text: 'YYYY-MM-DD' },
+        { value: 'YYYY-MM-DD HH:mm', text: 'YYYY-MM-DD HH:mm' },
+        { value: 'YYYY-MM-DD HH:mm:ss', text: 'YYYY-MM-DD HH:mm:ss' },
+        { value: 'MM鏈圖D鏃�', text: 'MM鏈圖D鏃�' },
+        { value: 'YYYY骞碝M鏈圖D鏃�', text: 'YYYY骞碝M鏈圖D鏃�' },
+        { value: 'HH:mm', text: '鏃跺垎锛堜緥锛�16:57锛�' },
+        { value: 'ahh:mm', text: '鑷畾涔�1锛堜緥锛氫笂鍗�10:57锛�' },
+        { value: 'MM鏈圖D鏃� ahh:mm', text: '鑷畾涔�2锛堜緥锛�12鏈�17鏃� 涓婂崍10:57锛�' },
+        { value: 'calendar1', text: '鑷畾涔�3锛堜緥锛氫粖澶� 涓婂崍10:57锛�' },
+        { value: 'calendar2', text: '鑷畾涔�4锛堜緥锛氬垰鍒氥�佹槰澶┿��5澶╁墠锛�' },
+      ]
+    },
+    {
+      type: 'select',
+      key: 'dateFormat',
+      label: '鏍煎紡鍖�',
+      initVal: card.dateFormat || 'YYYY-MM-DD',
+      required: true,
+      options: [
+        { value: 'YYYY-MM-DD', text: 'YYYY-MM-DD' },
+        { value: 'YYYY', text: 'YYYY' },
+        { value: 'YYYY-MM', text: 'YYYY-MM' },
+        { value: 'YYYY-MM-DD HH:mm', text: 'YYYY-MM-DD HH:mm' },
+        { value: 'YYYY-MM-DD HH:mm:ss', text: 'YYYY-MM-DD HH:mm:ss' },
+      ]
     },
     {
       type: 'text',
@@ -76,116 +219,101 @@
       required: false
     },
     {
-      type: 'select',
-      key: 'icon',
-      label: '鍥炬爣',
-      initVal: card.icon,
-      required: true,
-      options: [
-        { value: 'question-circle', text: 'question-circle'},
-        { value: 'alert', text: 'alert'},
-        { value: 'cloud', text: 'cloud'},
-        { value: 'eye', text: 'eye'},
-        { value: 'eye-invisible', text: 'eye-invisible'},
-        { value: 'android', text: 'android'},
-        { value: 'apple', text: 'apple'},
-        { value: 'windows', text: 'windows'},
-        { value: 'ie', text: 'ie'},
-        { value: 'chrome', text: 'chrome'},
-        { value: 'github', text: 'github'},
-        { value: 'aliwangwang', text: 'aliwangwang'},
-        { value: 'dingding', text: 'dingding'},
-        { value: 'wechat', text: 'wechat'},
-        { value: 'alipay', text: 'alipay'},
-        { value: 'weibo-square', text: 'weibo-square'},
-        { value: 'weibo-circle', text: 'weibo-circle'},
-        { value: 'taobao-circle', text: 'taobao-circle'},
-        { value: 'weibo', text: 'weibo'},
-        { value: 'twitter', text: 'twitter'},
-        { value: 'youtube', text: 'youtube'},
-        { value: 'alipay-circle', text: 'alipay-circle'},
-        { value: 'taobao', text: 'taobao'},
-        { value: 'skype', text: 'skype'},
-        { value: 'qq', text: 'qq'},
-        { value: 'gitlab', text: 'gitlab'},
-        { value: 'zhihu', text: 'zhihu'},
-        { value: 'slack', text: 'slack'},
-        { value: 'sketch', text: 'sketch'},
-        { value: 'yahoo', text: 'yahoo'},
-        { value: 'reddit', text: 'reddit'},
-        { value: 'dribbble', text: 'dribbble'},
-      ]
-    },
-    {
       type: 'text',
       key: 'tooltip',
       label: '鎻愮ず淇℃伅',
       initVal: card.tooltip || '',
-      tooltip: '榧犳爣鎮诞鏃舵樉绀恒��',
+      tooltip: '榧犳爣鎮诞鏃舵樉绀恒�傛敞锛氬浣跨敤鍔ㄦ�佷俊鎭紝璇峰湪姝ゅ濉啓鐩稿簲鐨勫瓧娈靛悕銆�',
+      forbid: appType === 'mob',
       required: false
     },
     {
-      type: 'select',
-      key: 'format',
-      label: '鏍煎紡鍖�',
-      initVal: card.format || '',
-      tooltip: '娉細鐧惧垎鏁般�佸崈鍒嗕綅瀵逛簬鏁板�肩被鍨嬫湁鏁堬紝YYYY-MM-DD瀵逛簬鏃堕棿绫诲瀷鐨勬枃鏈湁鏁堛��',
+      type: 'radio',
+      key: 'showType',
+      label: '灞曠幇褰㈠紡',
+      initVal: card.showType || 'line',
       required: false,
       options: [
-        { value: '', text: '鏃�' },
-        { value: 'percent', text: '鐧惧垎鏁�' },
-        { value: 'thdSeparator', text: '鍗冨垎浣�' },
-        { value: 'YYYY-MM-DD', text: 'YYYY-MM-DD' }
-      ]
-    },
-    {
-      type: 'radio',
-      key: 'align',
-      label: '瀵归綈鏂瑰紡',
-      initVal: card.align || 'left',
-      required: true,
-      options: [
-        { value: 'left', text: '宸﹀榻�' },
-        { value: 'center', text: '灞呬腑' },
-        { value: 'right', text: '鍙冲榻�' },
-      ]
-    },
-    {
-      type: 'number',
-      key: 'fontSize',
-      min: 12,
-      max: 50,
-      label: '瀛椾綋澶у皬',
-      initVal: card.fontSize || 14,
-      required: true,
-    },
-    {
-      type: 'select',
-      key: 'fontWeight',
-      label: '瀛椾綋绮楃粏',
-      initVal: card.fontWeight || 'normal',
-      required: true,
-      options: [
-        { value: 'normal', text: '姝e父' },
-        { value: 'bold', text: 'bold' },
-        { value: 'bolder', text: 'bolder' },
-        { value: 'lighter', text: 'lighter' },
-        { value: '100', text: '100' },
-        { value: '200', text: '200' },
-        { value: '300', text: '300' },
-        { value: '400', text: '400' },
-        { value: '500', text: '500' },
-        { value: '600', text: '600' },
-        { value: '700', text: '700' },
-        { value: '800', text: '800' },
-        { value: '900', text: '900' }
+        { value: 'line', text: '杩涘害鏉�' },
+        { value: 'circle', text: '杩涘害鍦�' },
+        { value: 'dashboard', text: '浠〃鐩�' },
       ]
     },
     {
       type: 'color',
       key: 'color',
       label: '棰滆壊',
-      initVal: card.color,
+      tooltip: '杩涘害鏉″畬鎴愬尯鍩熴�佸垎鍓茬嚎鎴栦簩缁寸爜鐨勯鑹层��',
+      initVal: card.color || '#1890ff',
+      required: true
+    },
+    {
+      type: 'color',
+      key: 'trailColor',
+      label: '鏈畬鎴愰鑹�',
+      initVal: card.trailColor || '#f5f5f5',
+      required: false
+    },
+    {
+      type: 'radio',
+      key: 'showInfo',
+      label: '杩涘害鍊�',
+      initVal: card.showInfo || 'false',
+      required: false,
+      options: [
+        { value: 'true', text: '鏄剧ず' },
+        { value: 'false', text: '闅愯棌' }
+      ]
+    },
+    {
+      type: 'color',
+      key: 'infoColor',
+      label: '杩涘害鍊奸鑹�',
+      initVal: card.infoColor || 'rgba(0, 0, 0, 0.65)',
+      required: false
+    },
+    {
+      type: 'radio',
+      key: 'strokeLinecap',
+      label: '绾垮瀷',
+      initVal: card.strokeLinecap || 'round',
+      required: false,
+      options: [
+        { value: 'round', text: '鍦嗚' },
+        { value: 'square', text: '鐩磋' },
+      ]
+    },
+    {
+      type: 'radio',
+      key: 'textAlign',
+      label: '瀵归綈鏂瑰紡',
+      initVal: card.textAlign || 'left',
+      required: false,
+      options: [
+        { value: 'left', text: '宸�' },
+        { value: 'center', text: '涓�' },
+        { value: 'right', text: '鍙�' },
+      ]
+    },
+    {
+      type: 'number',
+      key: 'strokeWidth',
+      min: 1,
+      max: 200,
+      precision: 0,
+      label: '绾挎潯瀹藉害',
+      initVal: card.strokeWidth || 8,
+      required: true,
+    },
+    {
+      type: 'number',
+      key: 'outlineWidth',
+      min: 10,
+      max: 2000,
+      precision: 0,
+      label: '澶栧舰瀹藉害',
+      initVal: card.outlineWidth || '',
+      tooltip: '澶栧舰瀹藉害涓虹┖鏃讹紝瀹藉害涓哄厓绱犵殑瀹藉害銆傛敞锛氳秴鍑烘椂鎸夊厓绱犲搴﹁绠椼��',
       required: false
     },
     {
@@ -203,9 +331,9 @@
       min: 1,
       max: 24,
       precision: 0,
-      label: '瀹藉害',
+      label: '鍏冪礌瀹藉害',
       initVal: card.width || 12,
-      tooltip: '姣忚绛夊垎涓�24浠姐��',
+      tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��',
       required: true
     },
     {
@@ -214,8 +342,78 @@
       min: 1,
       max: 10,
       label: '楂樺害(琛�)',
-      initVal: card.height || 1,
+      initVal: card.height !== undefined ? card.height : 1,
+      tooltip: '鍐呭鏄剧ず琛屾暟锛屽�间负绌烘椂楂樺害鑷�傚簲銆�',
+      required: false
+    },
+    {
+      type: 'select',
+      key: 'bgImage',
+      label: '鍔ㄦ�佽儗鏅�',
+      initVal: card.bgImage || '',
+      tooltip: '缁戝畾鏁版嵁婧愬瓧娈碉紝鍙牴鎹繑鍥炲�兼敼鍙樿儗鏅浘銆�',
+      required: false,
+      allowClear: true,
+      options: []
+    },
+    {
+      type: 'cascader',
+      key: 'anchors',
+      label: '璺宠浆閿氱偣',
+      initVal: card.anchors || [],
+      tooltip: sessionStorage.getItem('appType') === 'mob' ? '娉細灏忕▼搴忎腑鏃犳晥' : '',
+      required: false,
+      options: anchors,
+      forbid: !anchors
+    },
+    {
+      type: 'number',
+      key: 'barHeight',
+      min: 5,
+      max: 500,
+      label: '楂樺害',
+      initVal: card.barHeight || 25,
       required: true,
+    },
+    {
+      type: 'number',
+      key: 'qrWidth',
+      min: 5,
+      max: 1000,
+      label: '浜岀淮鐮佸昂瀵�',
+      initVal: card.qrWidth || 50,
+      required: true,
+    },
+    {
+      type: 'number',
+      key: 'interval',
+      min: 0.1,
+      max: 10,
+      precision: 1,
+      label: '绾挎潯闂撮殧',
+      initVal: card.interval || 1,
+      required: true,
+    },
+    {
+      type: 'radio',
+      key: 'displayValue',
+      label: '鏄剧ず鍊�',
+      initVal: card.displayValue || 'false',
+      required: false,
+      options: [
+        { value: 'true', text: '鏄�' },
+        { value: 'false', text: '鍚�' }
+      ]
+    },
+    {
+      type: 'number',
+      key: 'borderWidth',
+      min: 0,
+      max: 50,
+      label: '绾垮',
+      initVal: card.borderWidth === undefined ? 1 : card.borderWidth,
+      tooltip: '绾垮涓�0鏃讹紝涓烘柟渚垮湪寮�鍙戞椂閫変腑榛樿楂樺害涓�10px锛岃娉ㄦ剰璋冩暣鍐呭杈硅窛銆�',
+      required: true
     },
     {
       type: 'select',
@@ -225,28 +423,211 @@
       required: true,
       options: [
         { value: '1:1', text: '1:1' },
+        { value: '4:3', text: '4:3' },
         { value: '3:2', text: '3:2' },
+        { value: '16:9', text: '16:9' },
+        { value: '2:1', text: '2:1' },
+        { value: '3:1', text: '3:1' },
+        { value: '4:1', text: '4:1' },
+        { value: '5:1', text: '5:1' },
+        { value: '6:1', text: '6:1' },
+        { value: '7:1', text: '7:1' },
+        { value: '8:1', text: '8:1' },
+        { value: '9:1', text: '9:1' },
+        { value: '10:1', text: '10:1' },
+        { value: '3:4', text: '3:4' },
+        { value: '2:3', text: '2:3' },
+        { value: '9:16', text: '9:16' },
+      ]
+    },
+    // {
+    //   type: 'radio',
+    //   key: 'backgroundSize',
+    //   label: '鍥惧儚澶у皬',
+    //   initVal: card.backgroundSize || 'cover',
+    //   required: false,
+    //   options: [
+    //     { value: 'cover', text: '瑕嗙洊' },
+    //     { value: 'contain', text: '鍖呭惈' },
+    //     { value: 'auto', text: '鑷�傚簲' },
+    //   ]
+    // },
+    {
+      type: 'number',
+      key: 'maxWidth',
+      min: 10,
+      max: 2000,
+      label: '鏈�澶у搴�',
+      initVal: card.maxWidth || '',
+      tooltip: '鍥剧墖瀹藉害鐨勬渶澶у�笺��',
+      help: '娉細姝ゅ�煎瓨鍦ㄦ椂锛屽乏鍙冲杈硅窛涓�0灞呬腑鏄剧ず銆�',
+      required: false,
+    },
+    {
+      type: 'select',
+      key: 'aspectRatio',
+      label: '闀垮姣�',
+      initVal: card.aspectRatio || '16:9',
+      required: true,
+      options: [
         { value: '4:3', text: '4:3' },
         { value: '16:9', text: '16:9' }
       ]
     },
     {
       type: 'radio',
-      key: 'radius',
-      label: '鍦嗚',
-      initVal: card.radius || 'false',
+      key: 'link',
+      label: '閾炬帴',
+      initVal: card.link || '',
+      tooltip: '鍔ㄦ�佸湴鍧�涓虹粦瀹氬瓧娈靛�笺��',
       required: false,
       options: [
-        { value: 'true', text: '鏈�' },
-        { value: 'false', text: '鏃�' }
+        { value: '', text: '鏃�' },
+        { value: 'dynamic', text: '鍔ㄦ��' },
+        { value: 'static', text: '闈欐��' }
       ]
     },
     {
-      type: 'text',
-      key: 'padding',
-      label: '鍐呰竟璺�',
-      initVal: card.padding,
-      tooltip: '鍐呰竟璺濋渶瑕佹寜鐓у浐瀹氭牸寮忓~鍐欙紝渚嬶細5px锛堜笂涓嬪乏鍙冲潎涓�5鍍忕礌锛夛紝5px 10px锛堜笂涓�5鍍忕礌锛屽乏鍙�10鍍忕礌锛夛紝5px 10px 15px锛堜笂5鍍忕礌锛屽乏鍙�10鍍忕礌锛屼笅15鍍忕礌锛夛紝5px 10px 5px 10px锛堜笂5鍍忕礌锛屽彸10鍍忕礌锛屼笅5鍍忕礌锛屽乏10鍍忕礌锛�',
+      type: 'radio',
+      key: 'linkType',
+      label: '閾炬帴绫诲瀷',
+      initVal: card.linkType || 'other',
+      required: false,
+      options: [
+        { value: 'tel', text: '鐢佃瘽' },
+        { value: 'email', text: '閭' },
+        { value: 'other', text: '鍏朵粬' }
+      ]
+    },
+    {
+      type: 'radio',
+      key: 'scale',
+      label: '鍥剧墖鏀惧ぇ',
+      initVal: card.scale || 'false',
+      required: false,
+      options: [
+        { value: 'false', text: '涓嶅彲浠�' },
+        { value: 'true', text: '鍙互' }
+      ]
+    },
+    {
+      type: 'select',
+      key: 'linkurl',
+      label: '閾炬帴鍦板潃',
+      initVal: card.linkurl || '',
+      required: true,
+      options: []
+    },
+    {
+      type: 'radio',
+      key: 'joint',
+      label: '鎷兼帴鍙傛暟',
+      initVal: card.joint || 'true',
+      required: false,
+      options: [{
+        value: 'true',
+        text: '鏄�'
+      }, {
+        value: 'false',
+        text: '鍚�'
+      }]
+    },
+    {
+      type: 'radio',
+      key: 'eval',
+      label: '瑙f瀽',
+      initVal: card.eval || 'true',
+      tooltip: '褰撳叕寮忓唴瀹规秹鍙婅绠楁椂璇烽�夋嫨鈥滄槸鈥濓紝褰撳叕寮忓唴瀹逛负瀛楁鎷兼帴鏃惰閫夋嫨鈥滃惁鈥濄��',
+      required: false,
+      options: [{
+        value: 'true',
+        text: '鏄�'
+      }, {
+        value: 'false',
+        text: '鍚�'
+      }]
+    },
+    {
+      type: 'textarea',
+      key: 'formula',
+      label: '鍏紡',
+      initVal: card.formula || '',
+      tooltip: '鎵ц鏃朵細浣跨敤鏌ヨ鍒扮殑鏁版嵁鏇挎崲鐩稿簲鐨勫瓧娈碉紝灞曠ず鑾峰緱鐨勭粨鏋滐紝鍦ㄤ笉浣跨敤瑙f瀽鏃舵崲琛岀鎴栫┖鏍间細鏇挎崲涓洪〉闈㈠厓绱犮�傚彲浣跨敤JS鐨勪竴浜涜娉曪紝濡傦細涓夊厓琛ㄨ揪寮� @field1@ > @field2@ ? 0 : 1锛汳ath瀵硅薄锛屽彇缁濆鍊� Math.abs(@field@)銆佸洓鑸嶄簲鍏� Math.round(@field@)绛�',
+      placeholder: '渚嬪锛欯price@ * @number@',
+      required: true
+    },
+    {
+      type: 'radio',
+      key: 'noValue',
+      label: '绌哄��',
+      initVal: card.noValue || 'show',
+      tooltip: '褰撳厓绱犲唴瀹逛负绌烘椂锛屾槸鍚︽樉绀哄綋鍓嶅厓绱犮�傛敞锛氭暟鍊肩被鍨嬪厓绱犲寘鎷暟瀛�0锛堥潪鏂囨湰锛夈��',
+      required: false,
+      options: [
+        { value: 'show', text: '鏄剧ず' },
+        { value: 'hide', text: '闅愯棌' }
+      ]
+    },
+    {
+      type: 'radio',
+      key: 'fixStyle',
+      label: '鍓嶅悗缂�',
+      initVal: card.fixStyle || '',
+      tooltip: '鍓嶇紑涓庡悗缂�锛屼娇鐢ㄤ笌鍐呭缁熶竴鐨勬牱寮忚繕鏄嫭绔嬫牱寮忋��',
+      required: false,
+      options: [
+        { value: '', text: '缁熶竴鏍峰紡' },
+        { value: 'alone', text: '鐙珛鏍峰紡' }
+      ]
+    },
+    {
+      type: 'radio',
+      key: 'copyable',
+      label: '鍙鍒�',
+      initVal: card.copyable || 'false',
+      tooltip: '鍏冪礌鏄惁鍙鍒讹紝澶嶅埗鍐呭涓嶅寘鎷墠缂�涓庡悗缂�銆�',
+      required: false,
+      options: [
+        { value: 'true', text: '鏄�' },
+        { value: 'false', text: '鍚�' }
+      ]
+    },
+    {
+      type: 'number',
+      key: 'fixSize',
+      min: 10,
+      max: 300,
+      label: '瀛椾綋澶у皬',
+      initVal: card.fixSize || 14,
+      tooltip: '鍓嶇紑銆佸悗缂�鐨勫瓧浣撳ぇ灏忋��',
+      required: true
+    },
+    {
+      type: 'color',
+      key: 'fixColor',
+      label: '瀛椾綋棰滆壊',
+      initVal: card.fixColor || 'rgba(0, 0, 0, 0.65)',
+      tooltip: '鍓嶇紑銆佸悗缂�鐨勫瓧浣撻鑹层��',
+      required: true
+    },
+    {
+      type: 'number',
+      key: 'fixLeft',
+      min: 0,
+      max: 1000,
+      label: '宸﹁竟璺�',
+      initVal: card.fixLeft || 0,
+      tooltip: '鍓嶇紑銆佸悗缂�鐨勫乏杈硅窛銆�',
+      required: false
+    },
+    {
+      type: 'number',
+      key: 'fixRight',
+      min: 0,
+      max: 1000,
+      label: '鍙宠竟璺�',
+      initVal: card.fixRight || 0,
+      tooltip: '鍓嶇紑銆佸悗缂�鐨勫彸杈硅窛銆�',
       required: false
     },
   ]

--
Gitblit v1.8.0