| | |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | | key: 'width', |
| | | min: 1, |
| | | max: 24, |
| | | decimal: 0, |
| | | label: '宽度', |
| | | tooltip: '每行等分为24列,24即为100%。', |
| | | initVal: card.width || 24, |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'Hide', |
| | | label: Formdict['header.form.Hide'], |
| | |
| | | }] |
| | | }, |
| | | { |
| | | type: 'number', |
| | | key: 'width', |
| | | min: 1, |
| | | max: 24, |
| | | decimal: 0, |
| | | label: '图表宽度', |
| | | tooltip: '每行等分为24列,24即为100%。', |
| | | initVal: card.width || 24, |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'widthType', |
| | | label: '宽度类型', |
| | | initVal: card.widthType || 'ratio', |
| | | key: 'over', |
| | | label: '超出时', |
| | | initVal: card.over || 'whole', |
| | | required: true, |
| | | hidden: true, |
| | | options: [{ |
| | | value: 'whole', |
| | | text: '展示全部' |
| | | }, { |
| | | value: 'roll', |
| | | text: '滚动' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'widthType', |
| | | label: '宽度设置', |
| | | initVal: card.over === 'roll' ? 'absolute' : card.widthType || 'ratio', |
| | | required: true, |
| | | hidden: true, |
| | | readonly: card.over === 'roll', |
| | | options: [{ |
| | | value: 'ratio', |
| | | text: '比例' |
| | |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'over', |
| | | label: '超出时', |
| | | initVal: card.over || 'roll', |
| | | required: true, |
| | | hidden: true, |
| | | options: [{ |
| | | value: 'whole', |
| | | text: '展示全部' |
| | | }, { |
| | | value: 'roll', |
| | | text: '滚动' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'bgfield', |
| | | label: '背景控制', |
| | |
| | | readonly: false, |
| | | hidden: true, |
| | | options: _columns |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'border', |
| | | label: '边框', |
| | | initVal: card.border || 'show', |
| | | required: false, |
| | | hidden: true, |
| | | options: [{ |
| | | value: 'show', |
| | | text: '显示' |
| | | }, { |
| | | value: 'hidden', |
| | | text: '隐藏' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'switch', |
| | | label: '数据切换', |
| | | initVal: card.switch || 'true', |
| | | required: false, |
| | | hidden: true, |
| | | options: [{ |
| | | value: 'true', |
| | | text: '是' |
| | | }, { |
| | | value: 'false', |
| | | text: '否' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'multiselect', |
| | |
| | | type: 'radio', |
| | | key: 'show', |
| | | label: '显示', |
| | | initVal: card.show || '', |
| | | initVal: card.show || 'icon', |
| | | required: false, |
| | | forbid: !['bottom'].includes(_type), |
| | | forbid: !['bottom', 'header'].includes(_type), |
| | | options: [{ |
| | | value: 'icon', |
| | | text: '图标' |