| | |
| | | * @param {*} permFuncField 存储过程可用的开始字段 |
| | | * @param {*} type 按钮类型,用于区分可选的打开方式 |
| | | */ |
| | | export function getCardCellForm (card) { |
| | | let forms = [ |
| | | { |
| | | type: 'select', |
| | | key: 'eleType', |
| | | label: '元素类型', |
| | | initVal: card.eleType, |
| | | required: true, |
| | | options: [ |
| | | export function getCardCellForm (card, type) { |
| | | let _options = [ |
| | | { value: 'text', text: '文本'}, |
| | | { value: 'number', text: '数值'}, |
| | | { value: 'picture', text: '图片'}, |
| | |
| | | { value: 'slider', text: '进度条'}, |
| | | { value: 'splitline', text: '分割线'}, |
| | | ] |
| | | |
| | | if (type === 'table') { |
| | | _options.push({value: 'sequence', text: '序号'}) |
| | | } |
| | | |
| | | let forms = [ |
| | | { |
| | | type: 'select', |
| | | key: 'eleType', |
| | | label: '元素类型', |
| | | initVal: card.eleType, |
| | | required: true, |
| | | options: _options |
| | | }, |
| | | { |
| | | type: 'select', |