| | |
| | | { |
| | | type: 'radio', |
| | | key: 'label', |
| | | label: '文本标签', |
| | | label: '标注-值', |
| | | initVal: card.label || (card.chartType === 'pie' ? 'true' : 'false'), |
| | | required: false, |
| | | forbid: !['pie', 'line'].includes(card.chartType), |
| | | forbid: !['pie', 'bar', 'line'].includes(card.chartType), |
| | | options: [{ |
| | | value: 'true', |
| | | text: '显示' |
| | |
| | | forbid: !['line', 'bar'].includes(card.chartType), |
| | | hidden: card.datatype !== 'statistics', |
| | | required: true |
| | | }, |
| | | }, { |
| | | type: 'number', |
| | | key: 'correction', |
| | | label: '数据修正', |
| | | tooltip: '当数据项少于设置值时,系统会自动修正(避免柱形图过宽),在自定义中,设置为折线图时失效。', |
| | | min: 5, |
| | | max: 30, |
| | | decimal: 0, |
| | | initVal: card.correction, |
| | | forbid: !['bar'].includes(card.chartType), |
| | | required: false |
| | | } |
| | | ] |
| | | } |
| | | |