From 4038bd70d2b48e68c5b897a98198d18f9e6da79e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 19 二月 2025 20:14:52 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/menu/components/editor/braft-editor/options.jsx | 31 ++++++++++++++++++++++++------- 1 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/menu/components/editor/braft-editor/options.jsx b/src/menu/components/editor/braft-editor/options.jsx index bd9e84c..91f403e 100644 --- a/src/menu/components/editor/braft-editor/options.jsx +++ b/src/menu/components/editor/braft-editor/options.jsx @@ -37,6 +37,13 @@ tbStyle = tbStyle.filter(n => n !== 'deep-split') splitLine = 'true' } + let loads = [] + if (wrap.loaded === 'true') { + loads.push('loaded') + } + if (wrap.preload === 'true') { + loads.push('preload') + } const cardWrapForm = [ { @@ -166,23 +173,33 @@ ], }, { - type: 'radio', - field: 'loaded', + type: 'checkbox', + field: 'loads', label: '甯冨眬璋冩暣', - initval: wrap.loaded || 'false', + initval: loads, required: false, + tooltip: '棰勫鐞嗗叆鍙俬tml銆乨ata锛岃繑鍥炰慨鏀瑰悗鐨刪tml锛涘悗澶勭悊鍏ュ弬涓篽tml锛屽彲閫氳繃椤甸潰鍏冪礌鐨勬牱寮忚皟鏁村苟杩斿洖澶勭悊鍚庣殑html銆�', options: [ - {value: 'false', label: '鍏抽棴'}, - {value: 'true', label: '寮�鍚�'}, + {value: 'preload', label: '棰勫鐞�'}, + {value: 'loaded', label: '鍚庡鐞�'}, ], controlFields: [ - {field: 'loadedfunc', values: ['true']}, + {field: 'prefunc', values: ['preload']}, + {field: 'loadedfunc', values: ['loaded']}, ] }, { type: 'codemirror', + field: 'prefunc', + label: '棰勫鐞嗚剼鏈�', + initval: wrap.prefunc || '', + required: true, + span: 24 + }, + { + type: 'codemirror', field: 'loadedfunc', - label: '澶勭悊鑴氭湰', + label: '鍚庡鐞嗚剼鏈�', initval: wrap.loadedfunc || '', required: true, span: 24 -- Gitblit v1.8.0