| | |
| | | background: #fafafa; |
| | | } |
| | | .ant-table-body { |
| | | min-height: 50px; |
| | | border-bottom: 1px solid rgba(0, 0, 0, .05); |
| | | .ant-table-fixed { |
| | | border-bottom: 0; |
| | |
| | | field: 'zHeight', |
| | | label: '最大高度', |
| | | initval: wrap.zHeight || '', |
| | | tooltip: '卡片内容区的最大高度(不包含标题、翻页等元素),添加高度后组件中第一个属性卡将固定于头部。注:小于等于100时为高度的百分比。', |
| | | min: 10, |
| | | tooltip: '卡片内容区的最大高度(不包含标题、翻页等元素),添加高度后组件中第一个属性卡将固定于头部。注:小于等于100大于0时为高度的百分比,小于0时为窗口高度减去此值。', |
| | | min: -1000, |
| | | max: 3000, |
| | | precision: 0, |
| | | required: false, |
| | |
| | | field: 'zHeight', |
| | | label: '最大高度', |
| | | initval: wrap.zHeight || '', |
| | | tooltip: '卡片内容区的最大高度(不包含标题、翻页等元素),添加高度后组件中第一个属性卡将固定于头部。注:小于等于100时为高度的百分比。', |
| | | min: 10, |
| | | tooltip: '卡片内容区的最大高度(不包含标题、翻页等元素),添加高度后组件中第一个属性卡将固定于头部。注:小于等于100大于0时为高度的百分比,小于0时为窗口高度减去此值。', |
| | | min: -1000, |
| | | max: 3000, |
| | | precision: 0, |
| | | required: false, |
| | |
| | | { |
| | | type: 'number', |
| | | field: 'height', |
| | | label: '表格高度', |
| | | label: '最大高度', |
| | | initval: wrap.height || '', |
| | | tooltip: '表格内容区的高度(不包含表头),空值时高度自适应。注:小于等于100时为高度的百分比。', |
| | | min: 10, |
| | | tooltip: '表格内容区的最大高度(不包含表头),空值时高度自适应。注:小于等于100大于0时为高度的百分比,小于0时为窗口高度减去此值。', |
| | | min: -1000, |
| | | max: 3000, |
| | | precision: 0, |
| | | required: false, |
| | |
| | | { |
| | | type: 'number', |
| | | field: 'height', |
| | | label: '表格高度', |
| | | label: '最大高度', |
| | | initval: wrap.height || '', |
| | | tooltip: '表格内容区的高度(不包含表头),空值时高度自适应。注:小于等于100时为高度的百分比。', |
| | | min: 10, |
| | | tooltip: '表格内容区的最大高度(不包含表头),空值时高度自适应。注:小于等于100大于0时为高度的百分比,小于0时为窗口高度减去此值。', |
| | | min: -1000, |
| | | max: 3000, |
| | | precision: 0, |
| | | required: false |
| | |
| | | { |
| | | type: 'number', |
| | | field: 'height', |
| | | label: '表格高度', |
| | | label: '最大高度', |
| | | initval: wrap.height || '', |
| | | tooltip: '表格内容区的高度(不包含表头),空值时高度自适应。注:小于等于100时为高度的百分比。', |
| | | min: 10, |
| | | tooltip: '表格内容区的最大高度(不包含表头),空值时高度自适应。注:小于等于100大于0时为高度的百分比,小于0时为窗口高度减去此值。', |
| | | min: -1000, |
| | | max: 3000, |
| | | precision: 0, |
| | | required: false, |
| | |
| | | } |
| | | |
| | | if (_config.wrap.zHeight) { |
| | | _config.wrap.zHeight = _config.wrap.zHeight <= 100 ? _config.wrap.zHeight + 'vh' : _config.wrap.zHeight |
| | | if (_config.wrap.zHeight <= 100) { |
| | | if (_config.wrap.zHeight < 0) { |
| | | _config.wrap.zHeight = `calc(100vh - ${-_config.wrap.zHeight}px)` |
| | | } else { |
| | | _config.wrap.zHeight = _config.wrap.zHeight + 'vh' |
| | | } |
| | | } |
| | | |
| | | if (_config.style) { |
| | | delete _config.style.height |
| | | } |
| | |
| | | |
| | | if (_config.wrap.zHeight || _config.wrap.minWidth) { |
| | | if (_config.wrap.zHeight) { |
| | | _config.wrap.zHeight = _config.wrap.zHeight <= 100 ? _config.wrap.zHeight + 'vh' : _config.wrap.zHeight |
| | | if (_config.wrap.zHeight <= 100) { |
| | | if (_config.wrap.zHeight < 0) { |
| | | _config.wrap.zHeight = `calc(100vh - ${-_config.wrap.zHeight}px)` |
| | | } else { |
| | | _config.wrap.zHeight = _config.wrap.zHeight + 'vh' |
| | | } |
| | | } |
| | | _config.wrap.wrapClass += ' fix-height' |
| | | } |
| | | _config.wrap.minWidth = _config.wrap.minWidth ? _config.wrap.minWidth + 'px' : '100%' |
| | |
| | | } |
| | | |
| | | let height = setting.height || false |
| | | if (height && height <= 100) { |
| | | height = height + 'vh' |
| | | if (height) { |
| | | if (height <= 100) { |
| | | if (height < 0) { |
| | | height = `calc(100vh - ${-height}px)` |
| | | } else { |
| | | height = height + 'vh' |
| | | } |
| | | } |
| | | } |
| | | let loading = this.props.loading |
| | | if (setting.mask === 'hidden') { |
| | |
| | | } |
| | | |
| | | let height = setting.height || false |
| | | if (height && height <= 100) { |
| | | height = height + 'vh' |
| | | if (height) { |
| | | if (height <= 100) { |
| | | if (height < 0) { |
| | | height = `calc(100vh - ${-height}px)` |
| | | } else { |
| | | height = height + 'vh' |
| | | } |
| | | } |
| | | } |
| | | |
| | | let style = { |