@ucloud-fe/react-components 1.18.2 → 1.18.3
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.
- package/CHANGELOG.md +6 -0
- package/dist/main.min.js +1 -1
- package/lib/components/Table/Table.js +14 -1
- package/package.json +1 -1
|
@@ -1916,6 +1916,18 @@ var Table = (_dec = (0, _localeConsumerDecorator.default)({
|
|
|
1916
1916
|
};
|
|
1917
1917
|
}.bind(this)();
|
|
1918
1918
|
var dragSorting = this.getDragSorting();
|
|
1919
|
+
|
|
1920
|
+
var paginationStyle = _objectSpread(_objectSpread({}, (pagination === null || pagination === void 0 ? void 0 : pagination.style) || {}), pagination !== null && pagination !== void 0 && pagination.hide ? {
|
|
1921
|
+
visibility: 'hidden',
|
|
1922
|
+
opacity: 0,
|
|
1923
|
+
height: 0,
|
|
1924
|
+
width: 0,
|
|
1925
|
+
margin: 0,
|
|
1926
|
+
padding: 0,
|
|
1927
|
+
border: 0,
|
|
1928
|
+
overflow: 'hidden'
|
|
1929
|
+
} : {});
|
|
1930
|
+
|
|
1919
1931
|
return /*#__PURE__*/_react.default.createElement(_DragWrap.default, {
|
|
1920
1932
|
draggable: !!dragSorting,
|
|
1921
1933
|
onDragStart: this.onDragStart,
|
|
@@ -1992,6 +2004,7 @@ var Table = (_dec = (0, _localeConsumerDecorator.default)({
|
|
|
1992
2004
|
showQuickJumper: true,
|
|
1993
2005
|
showSizeChanger: true
|
|
1994
2006
|
}, pagination, {
|
|
2007
|
+
style: paginationStyle,
|
|
1995
2008
|
className: "".concat(_style.prefixCls, "-pagination"),
|
|
1996
2009
|
onChange: function (current, pageSize) {
|
|
1997
2010
|
(0, _newArrowCheck2.default)(this, _this44);
|
|
@@ -2028,7 +2041,7 @@ var Table = (_dec = (0, _localeConsumerDecorator.default)({
|
|
|
2028
2041
|
}]);
|
|
2029
2042
|
return Table;
|
|
2030
2043
|
}(_react.Component), _class2.propTypes = {
|
|
2031
|
-
/** 分页组件的配置,传入null为隐藏分页 */
|
|
2044
|
+
/** 分页组件的配置,传入null或者 pagination.hide = true为隐藏分页 */
|
|
2032
2045
|
pagination: _propTypes.default.object,
|
|
2033
2046
|
|
|
2034
2047
|
/** 数据源 */
|