| | |
| | | .ant-col.ant-col-0 { |
| | | display: inline-block; |
| | | } |
| | | .mk-cell-btn.ant-col-0 { |
| | | width: auto; |
| | | float: left; |
| | | } |
| | | |
| | | .ant-dropdown { |
| | | .ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover { |
| | |
| | | _style_ = {float: 'right'} |
| | | } |
| | | |
| | | let className = card.width || '' |
| | | let className = card.width || 0 |
| | | if (card.hidden === 'true') { |
| | | className += ' mk-hidden' |
| | | } |
| | |
| | | res.style = {} |
| | | } |
| | | } else if (res.class !== cell.class || res.show !== cell.show || !res.style) { |
| | | if (res.class) { |
| | | let cl = res.class.replace('border-', '') |
| | | let style = {} |
| | | if (res.class === 'default') { |
| | |
| | | style.backgroundColor = color[cl] |
| | | } |
| | | res.style = {...res.style, ...style} |
| | | } else { |
| | | res.style = res.style || {} |
| | | } |
| | | } |
| | | |
| | | if (res.width === 0 && cell.width !== 0) { |
| | | res.style = res.style || {} |
| | | |
| | | res.style.paddingLeft = '15px' |
| | | res.style.paddingRight = '15px' |
| | | res.style.marginRight = '15px' |
| | | res.style.width = 'auto' |
| | | |
| | | delete res.style.marginLeft |
| | | } |
| | | |
| | | res.updateTime = moment().format('YYYY-MM-DD HH:mm') |
| | |
| | | { |
| | | type: 'number', |
| | | key: 'width', |
| | | min: 1, |
| | | min: 0, |
| | | max: 24, |
| | | precision: 0, |
| | | label: '宽度', |
| | | initVal: card.width || 12, |
| | | tooltip: '栅格布局,每行等分为24列。', |
| | | initVal: card.width || (card.width === 0 ? 0 : 12), |
| | | tooltip: '栅格布局,每行等分为24列。为 0 时宽度自适应。', |
| | | forbid: type !== 'card', |
| | | required: true |
| | | }, |
| | |
| | | loading: false, |
| | | card: null, |
| | | data: [], |
| | | total: null, |
| | | total: 0, |
| | | precards: [], |
| | | nextcards: [], |
| | | selected: 'false', |
| | |
| | | loading: false, // 数据加载状态 |
| | | card: null, // 卡片设置 |
| | | data: [], // 数据 |
| | | total: null, |
| | | total: 0, |
| | | precards: [], |
| | | nextcards: [], |
| | | selected: 'false', |