From afb39f8ab004b2607bb718edab02e99c7a010114 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 22 三月 2023 14:36:44 +0800 Subject: [PATCH] 2023-03-22 --- src/menu/components/form/dragtitle/options.jsx | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/menu/components/form/dragtitle/options.jsx b/src/menu/components/form/dragtitle/options.jsx index 55cd85d..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', @@ -75,7 +87,7 @@ field: 'prevEnable', label: '涓婁竴姝�', initval: group.prevButton ? group.prevButton.enable || 'false' : 'false', - tooltip: '绗竴缁勪笉鏄剧ず銆�', + tooltip: '绗竴缁勪笉鏄剧ず銆傛敞锛氶櫎鍏抽棴鍔熻兘澶栥��', required: false, options: [ {value: 'true', label: '鏄剧ず'}, @@ -99,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