From a8e94242166881639cecf3809e45ca527233ebd7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 23 三月 2021 16:42:20 +0800 Subject: [PATCH] 2021-03-23 --- src/templates/zshare/formconfig.jsx | 64 ++++++++++++++++++++++++------- 1 files changed, 49 insertions(+), 15 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index 13cfc79..adb4574 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -1985,9 +1985,6 @@ value: 'textarea', text: Formdict['model.form.textarea'] }, { - value: 'hint', - text: '鎻愮ず' - }, { value: 'color', text: Formdict['model.form.color'] }, { @@ -1996,6 +1993,12 @@ }, { value: 'funcvar', text: Formdict['header.form.funcvar'] + }, { + value: 'hint', + text: '鎻愮ず' + }, { + value: 'split', + text: '鍒嗛殧绾�' }, ..._openType] }, @@ -2074,6 +2077,9 @@ { type: 'number', key: 'width', + min: 1, + max: 24, + precision: 0, label: '鍗$墖瀹藉害', initVal: card.width || 4, tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��', @@ -2215,6 +2221,9 @@ { type: 'number', key: 'decimal', + min: 0, + max: 18, + precision: 0, label: Formdict['header.form.decimal'], initVal: card.decimal || 0, required: true @@ -2236,6 +2245,9 @@ { type: 'number', key: 'fieldlength', + min: 1, + max: 1000000, + precision: 0, label: Formdict['model.form.field'] + Formdict['model.length'], tooltip: '鏂囨湰銆佷笅鎷夋銆佹棩鏈熺瓑瀛楁榛樿闀垮害涓�50锛屽琛屾枃鏈笌鏂囦欢涓婁紶瀛楁榛樿闀垮害涓�512', initVal: card.fieldlength || _fieldlength, @@ -2244,6 +2256,9 @@ { type: 'number', key: 'maxRows', + min: 2, + max: 100, + precision: 0, label: Formdict['header.form.maxRows'], initVal: card.maxRows || 6, required: false @@ -2286,6 +2301,9 @@ { type: 'number', key: 'maxfile', + min: 1, + max: 1000000, + precision: 0, label: '鏈�澶ф枃浠舵暟', initVal: card.maxfile || '', required: false @@ -2384,18 +2402,26 @@ }] }, { - type: 'radio', - key: 'entireLine', - label: '鍗犳嵁鏁磋', - initVal: card.entireLine || 'false', - required: false, - options: [{ - value: 'true', - text: '鏄�' - }, { - value: 'false', - text: '鍚�' - }] + type: 'number', + key: 'span', + min: 1, + max: 24, + precision: 0, + label: '琛ㄥ崟瀹藉害', + initVal: card.span || ('textarea,hint,checkcard,brafteditor'.indexOf(card.type) > -1 ? 24 : 12), + tooltip: '鏍呮牸甯冨眬鏁磋24绛夊垎銆�', + required: true + }, + { + type: 'number', + key: 'labelwidth', + min: 1, + max: 100, + precision: 1, + label: '鍚嶇О瀹藉害', + initVal: card.labelwidth || 33.3, + tooltip: '鍚嶇О鍗犳嵁琛ㄥ崟瀹藉害鐨勭櫨鍒嗘瘮銆傛敞锛氬瓨鍦ㄥ鍒楄〃鍗曟椂锛屽綋鍓嶈〃鍗曞鏋滄兂瑕佸崰鎹暣琛屽彲鍙傜収浠ヤ笅姣斾緥锛屼袱鍒楋紙16.3锛夈�佷笁鍒楋紙10.5锛夈�佸洓鍒楋紙8.3锛�', + required: true }, { type: 'text', @@ -2462,6 +2488,14 @@ }, { type: 'text', + key: 'extra', + label: '搴曢儴鎻愮ず', + tooltip: '鏄剧ず浜庤〃鍗曞簳閮ㄣ��', + initVal: card.extra || '', + required: false + }, + { + type: 'text', key: 'emptyText', label: '绌哄�兼枃鏈�', tooltip: '绌哄�肩殑鎻愮ず鏂囨湰锛岄�夋嫨璁剧疆绌哄�兼椂鏈夋晥锛岄粯璁ゅ�间负銆婄┖銆嬨��', -- Gitblit v1.8.0