| | |
| | | * @description 获取卡片详情表单配置信息 |
| | | * @param {object} card // 标签配置信息 |
| | | */ |
| | | export function getCardDetailForm (card, _columns) { |
| | | export function getCardDetailForm (card, _columns, _type, _actions = []) { |
| | | return [ |
| | | { |
| | | type: 'radio', |
| | |
| | | label: '加粗', |
| | | initVal: card.bold || 'false', |
| | | required: true, |
| | | forbid: _type !== 'detail', |
| | | options: [{ |
| | | value: 'true', |
| | | text: '是' |
| | |
| | | label: '宽度', |
| | | initVal: card.width || '', |
| | | required: false, |
| | | forbid: _type !== 'detail', |
| | | options: [{ |
| | | value: '', |
| | | text: '100%' |
| | |
| | | label: '对齐', |
| | | initVal: card.align || '', |
| | | required: false, |
| | | forbid: _type !== 'detail', |
| | | options: [{ |
| | | value: '', |
| | | text: '左' |
| | |
| | | value: 'align-right', |
| | | text: '右' |
| | | }] |
| | | } |
| | | }, |
| | | { |
| | | type: 'multiselect', |
| | | key: 'actions', |
| | | label: '按钮组', |
| | | tooltip: '', |
| | | initVal: card.actions || [], |
| | | required: false, |
| | | forbid: _type !== 'header', |
| | | options: _actions |
| | | }, |
| | | ] |
| | | } |