@sooloer/pages 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,6 +22,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
22
22
|
import { StyleProvider } from '@ant-design/cssinjs';
|
|
23
23
|
import { sum } from '@tmaito/utils';
|
|
24
24
|
import { Checkbox, Col, ConfigProvider, Row, Table } from 'antd';
|
|
25
|
+
import classnames from 'classnames';
|
|
25
26
|
import React, { useContext, useLayoutEffect, useMemo, useState } from 'react';
|
|
26
27
|
import { render } from 'react-dom';
|
|
27
28
|
import Setting from "../setting";
|
|
@@ -159,7 +160,9 @@ var ElTable = function ElTable(_ref) {
|
|
|
159
160
|
}), /*#__PURE__*/React.createElement(Table, _extends({}, args, {
|
|
160
161
|
size: size,
|
|
161
162
|
rowKey: rowKey,
|
|
162
|
-
className:
|
|
163
|
+
className: classnames('sooloer-table', {
|
|
164
|
+
'pagination-hidden': pagination === false
|
|
165
|
+
}),
|
|
163
166
|
columns: showColumns,
|
|
164
167
|
dataSource: dataSource,
|
|
165
168
|
style: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createGlobalStyle } from 'styled-components';
|
|
2
|
-
var Style = createGlobalStyle([".sooloer-table{height:100%;> .", "-spin-nested-loading{height:100%;> .", "-spin-container{height:100%;}.", "-table{height:calc(100% - 48px);}
|
|
2
|
+
var Style = createGlobalStyle([".sooloer-table{height:100%;> .", "-spin-nested-loading{height:100%;> .", "-spin-container{height:100%;}}&.pagination-hidden{.", "-table{height:100%;}}.", "-table{height:calc(100% - 48px);}.", "-table-container{height:100%;}.", "-table-body{height:100%;}.", "-table-placeholder{> td{border-bottom:none !important;}}.", "-pagination-total-text{flex:1;}&-global-checkbox{margin-left:12px;}.sooloer-table-pagination{margin:12px 0 !important;}}"], function (props) {
|
|
3
|
+
return props.prefix;
|
|
4
|
+
}, function (props) {
|
|
3
5
|
return props.prefix;
|
|
4
6
|
}, function (props) {
|
|
5
7
|
return props.prefix;
|