From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 十二月 2022 15:53:32 +0800 Subject: [PATCH] 2022-12-09 --- src/menu/components/form/dragtitle/options.jsx | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/menu/components/form/dragtitle/options.jsx b/src/menu/components/form/dragtitle/options.jsx index 39849e5..81c4435 100644 --- a/src/menu/components/form/dragtitle/options.jsx +++ b/src/menu/components/form/dragtitle/options.jsx @@ -7,13 +7,13 @@ if (appType === 'mob') { group.fields.forEach(f => { - if (f.field && ['select', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { + if (f.field && ['select', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { fields.push(f) } }) } else { group.fields.forEach(f => { - if (f.field && ['select', 'link', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { + if (f.field && ['select', 'link', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { fields.push(f) } }) @@ -46,6 +46,18 @@ }, { type: 'radio', + field: 'cache', + label: '閫夐」鏌ヨ', + initval: group.setting.cache || 'true', + tooltip: '闇�瑕侀�氳繃鏁版嵁婧愭煡璇㈢殑閫夐」锛屾槸鍚︿娇鐢ㄧ紦瀛樸��', + required: false, + options: [ + {value: 'true', label: '缂撳瓨'}, + {value: 'false', label: '瀹炴椂'}, + ] + }, + { + type: 'radio', field: 'align', label: '琛ㄥ崟鎺掑垪', initval: group.setting.align || 'left_right', @@ -58,10 +70,24 @@ }, { type: 'radio', + field: 'verticalSpace', + label: '绔栧悜闂撮殭', + initval: group.setting.verticalSpace || 'normal', + tooltip: '姝e父闂撮殭浼氶鐣欏嚭鎶ラ敊淇℃伅鐨勪綅缃紝闃叉琛ㄥ崟浣嶇疆鍙戠敓鍙樺寲銆�', + required: false, + options: [ + {value: 'normal', label: '姝e父'}, + {value: 'middle', label: '涓�'}, + {value: 'small', label: '灏�'}, + ], + forbid: appType === 'mob' + }, + { + type: 'radio', field: 'prevEnable', label: '涓婁竴姝�', initval: group.prevButton ? group.prevButton.enable || 'false' : 'false', - tooltip: '绗竴缁勪笉鏄剧ず銆�', + tooltip: '绗竴缁勪笉鏄剧ず銆傛敞锛氶櫎鍏抽棴鍔熻兘澶栥��', required: false, options: [ {value: 'true', label: '鏄剧ず'}, @@ -85,7 +111,7 @@ field: 'nextEnable', label: '璺宠繃', initval: group.nextButton ? group.nextButton.enable || 'false' : 'false', - tooltip: '鏈�鍚庝竴缁勪笉鏄剧ず銆�', + tooltip: '鏈�鍚庝竴缁勪笉鏄剧ず銆傛敞锛氶櫎鍏抽棴鍔熻兘澶栥��', required: false, options: [ {value: 'true', label: '鏄剧ず'}, -- Gitblit v1.8.0