| | |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'showInfo', |
| | | label: '进度值', |
| | | initVal: card.showInfo || 'false', |
| | | required: false, |
| | | options: [ |
| | | { value: 'true', text: '显示' }, |
| | | { value: 'false', text: '隐藏' } |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'showType', |
| | | label: '展现形式', |
| | | initVal: card.showType || 'line', |
| | | required: false, |
| | | options: [ |
| | | { value: 'line', text: '进度条' }, |
| | | { value: 'circle', text: '进度圈' }, |
| | | { value: 'dashboard', text: '仪表盘' }, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'textAlign', |
| | | label: '对齐方式', |
| | | initVal: card.textAlign || 'left', |
| | | required: false, |
| | | options: [ |
| | | { value: 'left', text: '左' }, |
| | | { value: 'center', text: '中' }, |
| | | { value: 'right', text: '右' }, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'number', |
| | | key: 'strokeWidth', |
| | | min: 1, |
| | | max: 200, |
| | | precision: 0, |
| | | label: '线条宽度', |
| | | initVal: card.strokeWidth || 8, |
| | | required: true, |
| | | }, |
| | | { |
| | | type: 'number', |
| | | key: 'outlineWidth', |
| | | min: 10, |
| | | max: 2000, |
| | | precision: 0, |
| | | label: '外形宽度', |
| | | initVal: card.outlineWidth || '', |
| | | tooltip: '外形宽度为空时,宽度为元素的宽度。注:超出时按元素宽度计算。', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'number', |
| | | key: 'maxValue', |
| | | min: 1, |