| | |
| | | tooltip = '在扩展卡片中,动态数据显示值为获取到的第一行数据。' |
| | | } |
| | | |
| | | let isHeader = false |
| | | if (cardCell.$cardType === 'extendCard' && cardCell.setting.cardRole === 'header') { |
| | | isHeader = true |
| | | anchors = null |
| | | card.link = '' |
| | | _options = [{ value: 'text', text: '文本'}] |
| | | } |
| | | |
| | | let width = card.width || 12 |
| | | if (/x/.test(card.width)) { |
| | | width = +width.replace(/x/, '.5') |
| | |
| | | { value: 'MM月DD日 ahh:mm', text: '自定义2(例:12月17日 上午10:57)' }, |
| | | { value: 'calendar1', text: '自定义3(例:今天 上午10:57)' }, |
| | | { value: 'calendar2', text: '自定义4(例:刚刚、昨天、5天前)' }, |
| | | ] |
| | | ], |
| | | forbid: isHeader |
| | | }, |
| | | { |
| | | type: 'select', |
| | |
| | | tooltip: '绑定数据源字段,可根据返回值改变背景图。', |
| | | required: false, |
| | | allowClear: true, |
| | | options: [] |
| | | options: [], |
| | | forbid: isHeader |
| | | }, |
| | | { |
| | | type: 'cascader', |
| | |
| | | { value: '', text: '无' }, |
| | | { value: 'dynamic', text: '动态' }, |
| | | { value: 'static', text: '静态' } |
| | | ] |
| | | ], |
| | | forbid: isHeader |
| | | }, |
| | | { |
| | | type: 'radio', |
| | |
| | | { value: '', text: '居上' }, |
| | | { value: 'center', text: '居中' }, |
| | | { value: 'end', text: '居下' } |
| | | ] |
| | | ], |
| | | forbid: isHeader |
| | | }, |
| | | { |
| | | type: 'radio', |
| | |
| | | options: [ |
| | | { value: '', text: '统一样式' }, |
| | | { value: 'alone', text: '独立样式' } |
| | | ] |
| | | ], |
| | | forbid: isHeader |
| | | }, |
| | | { |
| | | type: 'radio', |
| | |
| | | options: [ |
| | | { value: 'true', text: '是' }, |
| | | { value: 'false', text: '否' } |
| | | ] |
| | | ], |
| | | forbid: isHeader |
| | | }, |
| | | { |
| | | type: 'number', |
| | |
| | | tooltip: '前缀、后缀的右边距。', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'sortField', |
| | | label: '排序字段', |
| | | initVal: card.sortField || '', |
| | | required: false, |
| | | allowClear: true, |
| | | options: [], |
| | | forbid: !isHeader |
| | | }, |
| | | ] |
| | | |
| | | return forms |