| | |
| | | loading = false |
| | | } |
| | | |
| | | let fixed = '' |
| | | if (setting.colfixed && setting.colfixed.length) { |
| | | if (setting.colfixed.includes('first')) { |
| | | fixed = 'mk-fixed-first-col' |
| | | } |
| | | if (setting.colfixed.includes('last')) { |
| | | fixed += ' mk-fixed-last-col' |
| | | } |
| | | } |
| | | |
| | | return ( |
| | | <div className={`normal-custom-table ${setting.tableHeader || ''} ${height ? 'fixed-height' : ''} ${setting.mode || ''} table-vertical-${setting.vertical || 'middle'} table-col-${columns.length}`} id={tableId}> |
| | | <div className={`normal-custom-table ${setting.tableHeader || ''} ${height ? 'fixed-height' : ''} ${setting.mode || ''} table-vertical-${setting.vertical || 'middle'} table-col-${columns.length} ${fixed}`} id={tableId}> |
| | | {(setting.tableType === 'radio' || setting.tableType === 'checkbox') && data && data.length > 0 ? |
| | | <Switch title="收起" className="main-pickup" checkedChildren="开" unCheckedChildren="关" checked={pickup} onChange={this.pickupChange} /> : null |
| | | } |