From 00de865d827da6687928b10f031482628a5144c8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 06 十一月 2020 18:39:16 +0800 Subject: [PATCH] 2020-11-06 --- src/menu/components/card/cardcellcomponent/formconfig.jsx | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/menu/components/card/cardcellcomponent/formconfig.jsx b/src/menu/components/card/cardcellcomponent/formconfig.jsx index 195c5f4..5e01655 100644 --- a/src/menu/components/card/cardcellcomponent/formconfig.jsx +++ b/src/menu/components/card/cardcellcomponent/formconfig.jsx @@ -10,7 +10,21 @@ * @param {*} permFuncField 瀛樺偍杩囩▼鍙敤鐨勫紑濮嬪瓧娈� * @param {*} type 鎸夐挳绫诲瀷锛岀敤浜庡尯鍒嗗彲閫夌殑鎵撳紑鏂瑰紡 */ -export function getCardCellForm (card) { +export function getCardCellForm (card, type) { + let _options = [ + { value: 'text', text: '鏂囨湰'}, + { value: 'number', text: '鏁板��'}, + { value: 'picture', text: '鍥剧墖'}, + { value: 'icon', text: '鍥炬爣'}, + { value: 'link', text: '閾炬帴'}, + { value: 'slider', text: '杩涘害鏉�'}, + { value: 'splitline', text: '鍒嗗壊绾�'}, + ] + + if (type === 'table') { + _options.push({value: 'sequence', text: '搴忓彿'}) + } + let forms = [ { type: 'select', @@ -18,15 +32,7 @@ label: '鍏冪礌绫诲瀷', initVal: card.eleType, required: true, - options: [ - { value: 'text', text: '鏂囨湰'}, - { value: 'number', text: '鏁板��'}, - { value: 'picture', text: '鍥剧墖'}, - { value: 'icon', text: '鍥炬爣'}, - { value: 'link', text: '閾炬帴'}, - { value: 'slider', text: '杩涘害鏉�'}, - { value: 'splitline', text: '鍒嗗壊绾�'}, - ] + options: _options }, { type: 'select', -- Gitblit v1.8.0