From e9c48bd7356462ba9257540b130a47a65ad1861d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 26 八月 2021 17:17:11 +0800 Subject: [PATCH] 2021-08-26 --- src/templates/zshare/formconfig.jsx | 67 ++++++++++++++++++++++++++++++--- 1 files changed, 61 insertions(+), 6 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index 2b1c010..b9d30a0 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -1323,7 +1323,53 @@ tooltip: '褰撻�夋嫨鎺у埗瀛楁锛屼笖瀛楁鍊间笌鎺у埗鍊肩浉绛夋椂锛屾寜閽細绂佺敤锛屽涓�肩敤閫楀彿鍒嗛殧銆�', initVal: card.controlVal || '', required: false - } + }, + { + type: 'radio', + key: 'display', + label: '鏄剧ず鏂瑰紡', + initVal: card.display || 'modal', + required: true, + options: [{ + value: 'modal', + text: '妯℃�佹' + }, { + value: 'drawer', + text: '鎶藉眽' + }] + }, + { + type: 'number', + key: 'ratio', + min: 1, + max: 24, + precision: 0, + label: '姣斾緥', + initVal: card.ratio || 85, + tooltip: '灏忎簬100涓哄搴︼紙鎴栭珮搴︼級鐧惧垎姣旓紝澶т簬100涓哄儚绱犲�笺��', + required: true + }, + { + type: 'radio', + key: 'placement', + label: '鎶藉眽鏂瑰悜', + initVal: card.placement || 'right', + tooltip: '浣跨敤鎶藉眽鏃舵湁鏁堛��', + required: false, + options: [{ + value: 'right', + text: '鍙充晶' + }, { + value: 'left', + text: '宸︿晶' + }, { + value: 'top', + text: '涓婁晶' + }, { + value: 'bottom', + text: '涓嬩晶' + }] + }, ] } @@ -2182,6 +2228,9 @@ }, { value: 'split', text: '鍒嗛殧绾�' + }, { + value: 'linkMain', + text: Formdict['header.form.linkMain'] }] let _fieldlength = 50 @@ -2236,11 +2285,6 @@ value: 'split', text: '鍒嗛殧绾�' }] - } else if (subtable) { - _openType.push({ - value: 'linkMain', - text: Formdict['header.form.linkMain'] - }) } if (['fileupload', 'multiselect', 'checkbox'].includes(card.type)) { @@ -2555,6 +2599,9 @@ }, { value: 'letter&number', text: Formdict['header.form.letter&number'] + }, { + value: 'phone', + text: '鎵嬫満鍙�' }] }, { @@ -2938,6 +2985,14 @@ }, { type: 'text', + key: 'placeholder', + label: '鎻愮ず淇℃伅', + tooltip: '瀛楁棰勬湡鍊肩殑鎻愮ず淇℃伅銆�', + initVal: card.placeholder || '', + required: false + }, + { + type: 'text', key: 'emptyText', label: '绌哄�兼枃鏈�', tooltip: '绌哄�肩殑鎻愮ず鏂囨湰锛岄�夋嫨璁剧疆绌哄�兼椂鏈夋晥锛岄粯璁ゅ�间负銆婄┖銆嬨��', -- Gitblit v1.8.0