From 89949fc82a0194f985cb542abb7118724804bd5b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 19 五月 2020 11:41:06 +0800 Subject: [PATCH] 2020-05-19 --- src/templates/zshare/formconfig.jsx | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index af90474..4b47bd8 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -2084,7 +2084,7 @@ * @description 鑾峰彇鍗$墖璇︽儏琛ㄥ崟閰嶇疆淇℃伅 * @param {object} card // 鏍囩閰嶇疆淇℃伅 */ -export function getCardDetailForm (card, _columns) { +export function getCardDetailForm (card, _columns, _type, _actions = []) { return [ { type: 'radio', @@ -2121,6 +2121,7 @@ label: '鍔犵矖', initVal: card.bold || 'false', required: true, + forbid: _type !== 'detail', options: [{ value: 'true', text: '鏄�' @@ -2135,6 +2136,7 @@ label: '瀹藉害', initVal: card.width || '', required: false, + forbid: _type !== 'detail', options: [{ value: '', text: '100%' @@ -2152,6 +2154,7 @@ label: '瀵归綈', initVal: card.align || '', required: false, + forbid: _type !== 'detail', options: [{ value: '', text: '宸�' @@ -2162,6 +2165,16 @@ value: 'align-right', text: '鍙�' }] - } + }, + { + type: 'multiselect', + key: 'actions', + label: '鎸夐挳缁�', + tooltip: '', + initVal: card.actions || [], + required: false, + forbid: _type !== 'header', + options: _actions + }, ] } \ No newline at end of file -- Gitblit v1.8.0