| | |
| | | * @param {*} type |
| | | */ |
| | | export function getCardCellForm (card, cards, cardCell) { |
| | | let appType = sessionStorage.getItem('appType') |
| | | |
| | | let _options = [ |
| | | { value: 'text', text: '文本'}, |
| | | { value: 'number', text: '数值'}, |
| | | { value: 'picture', text: '图片'}, |
| | | { value: 'video', text: '视频'}, |
| | | { value: 'icon', text: '图标'}, |
| | | { value: 'icon', text: '提示(图标)'}, |
| | | { value: 'slider', text: '进度条'}, |
| | | { value: 'splitline', text: '分割线'}, |
| | | { value: 'barcode', text: '条形码'}, |
| | |
| | | if (card.eleType === 'icon' && card.datatype === 'dynamic' && !card.field) { // 拖拽添加类型转换 |
| | | card.datatype = 'static' |
| | | } |
| | | let appType = sessionStorage.getItem('appType') |
| | | |
| | | let tooltip = '' |
| | | if (cardCell.$cardType === 'extendCard') { |
| | |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'tipType', |
| | | label: '提示内容', |
| | | initVal: card.tipType || 'icon', |
| | | required: false, |
| | | options: [ |
| | | { value: 'icon', text: '图标' }, |
| | | { value: 'text', text: '文本' } |
| | | ] |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'field', |
| | | label: '字段', |