antd-management-fast-framework 1.11.3 → 1.11.4
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.
|
@@ -157,6 +157,10 @@ var Base = /*#__PURE__*/function (_Component) {
|
|
|
157
157
|
|
|
158
158
|
if (_defaultSettingsSpecial.defaultSettingsLayoutCustom.getUseNprogress()) {
|
|
159
159
|
_nprogress.default.inc();
|
|
160
|
+
|
|
161
|
+
setTimeout(function () {
|
|
162
|
+
_nprogress.default.done();
|
|
163
|
+
}, 400);
|
|
160
164
|
}
|
|
161
165
|
|
|
162
166
|
_umi.history.push(location);
|
|
@@ -169,6 +173,10 @@ var Base = /*#__PURE__*/function (_Component) {
|
|
|
169
173
|
|
|
170
174
|
if (_defaultSettingsSpecial.defaultSettingsLayoutCustom.getUseNprogress()) {
|
|
171
175
|
_nprogress.default.inc();
|
|
176
|
+
|
|
177
|
+
setTimeout(function () {
|
|
178
|
+
_nprogress.default.done();
|
|
179
|
+
}, 400);
|
|
172
180
|
}
|
|
173
181
|
|
|
174
182
|
_umi.history.replace(location);
|
|
@@ -192,12 +200,6 @@ var Base = /*#__PURE__*/function (_Component) {
|
|
|
192
200
|
_createClass(Base, [{
|
|
193
201
|
key: "componentDidMount",
|
|
194
202
|
value: function componentDidMount() {
|
|
195
|
-
if (_defaultSettingsSpecial.defaultSettingsLayoutCustom.getUseNprogress()) {
|
|
196
|
-
setTimeout(function () {
|
|
197
|
-
_nprogress.default.done();
|
|
198
|
-
}, 400);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
203
|
this.beforeDidMount();
|
|
202
204
|
this.mounted = true;
|
|
203
205
|
this.doDidMountTask();
|
|
@@ -31,6 +31,10 @@ require("antd/es/tooltip/style");
|
|
|
31
31
|
|
|
32
32
|
var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
|
|
33
33
|
|
|
34
|
+
require("antd/es/affix/style");
|
|
35
|
+
|
|
36
|
+
var _affix = _interopRequireDefault(require("antd/es/affix"));
|
|
37
|
+
|
|
34
38
|
require("antd/es/pagination/style");
|
|
35
39
|
|
|
36
40
|
var _pagination = _interopRequireDefault(require("antd/es/pagination"));
|
|
@@ -166,6 +170,8 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
166
170
|
_this = _super.call(this, props);
|
|
167
171
|
_this.useRemotePagination = true;
|
|
168
172
|
_this.useFrontendPagination = false;
|
|
173
|
+
_this.useFrontendPagination = false;
|
|
174
|
+
_this.affixPaginationBar = true;
|
|
169
175
|
_this.formRef = /*#__PURE__*/_react.default.createRef();
|
|
170
176
|
_this.pageSizeAdditional = 0;
|
|
171
177
|
|
|
@@ -1074,7 +1080,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1074
1080
|
|
|
1075
1081
|
var style = _this.establishPaginationViewStyle();
|
|
1076
1082
|
|
|
1077
|
-
|
|
1083
|
+
var bar = /*#__PURE__*/_react.default.createElement(_FlexBox.default, {
|
|
1078
1084
|
style: style,
|
|
1079
1085
|
right: /*#__PURE__*/_react.default.createElement(_pagination.default, _extends({}, paginationConfig, {
|
|
1080
1086
|
onChange: function onChange(page, size) {
|
|
@@ -1085,6 +1091,18 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1085
1091
|
}
|
|
1086
1092
|
}))
|
|
1087
1093
|
});
|
|
1094
|
+
|
|
1095
|
+
if (_this.affixPaginationBar) {
|
|
1096
|
+
return /*#__PURE__*/_react.default.createElement(_affix.default, {
|
|
1097
|
+
offsetBottom: 0
|
|
1098
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
1099
|
+
style: {
|
|
1100
|
+
background: '#fff'
|
|
1101
|
+
}
|
|
1102
|
+
}, bar));
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
return bar;
|
|
1088
1106
|
};
|
|
1089
1107
|
|
|
1090
1108
|
_this.renderCardExtraAction = function () {
|
|
@@ -1216,9 +1234,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1216
1234
|
metaListData = _this$state7.metaListData,
|
|
1217
1235
|
tableScroll = _this$state7.tableScroll,
|
|
1218
1236
|
showSelect = _this$state7.showSelect,
|
|
1219
|
-
selectedDataTableDataRows = _this$state7.selectedDataTableDataRows
|
|
1220
|
-
dataLoading = _this$state7.dataLoading,
|
|
1221
|
-
processing = _this$state7.processing;
|
|
1237
|
+
selectedDataTableDataRows = _this$state7.selectedDataTableDataRows;
|
|
1222
1238
|
|
|
1223
1239
|
var _this$buildTableConfi = _this.buildTableConfig(),
|
|
1224
1240
|
styleSet = _this$buildTableConfi.styleSet,
|
|
@@ -18,6 +18,9 @@ var _defaultSettingsSpecial = require("./defaultSettingsSpecial");
|
|
|
18
18
|
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* layout默认配置
|
|
23
|
+
*/
|
|
21
24
|
var proLayoutDefaultProps = {
|
|
22
25
|
onMenuHeaderClick: function onMenuHeaderClick() {
|
|
23
26
|
return _umi.history.push('/');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.4",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@ant-design/icons": "^4.7.0",
|
|
33
33
|
"@ant-design/pro-layout": "^6.31.2",
|
|
34
34
|
"@antv/data-set": "^0.11.8",
|
|
35
|
-
"antd": "^4.17.
|
|
35
|
+
"antd": "^4.17.2",
|
|
36
36
|
"array-move": "^4.0.0",
|
|
37
37
|
"bizcharts": "^4.1.14",
|
|
38
38
|
"browserslist": "^4.18.1",
|
|
39
|
-
"caniuse-lite": "^1.0.
|
|
39
|
+
"caniuse-lite": "^1.0.30001283",
|
|
40
40
|
"classnames": "^2.3.1",
|
|
41
41
|
"copy-to-clipboard": "^3.3.1",
|
|
42
42
|
"enquire-js": "^0.2.1",
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
"lint-staged": "^12.1.2",
|
|
125
125
|
"npm-run-all": "^4.1.5",
|
|
126
126
|
"pify": "^5.0.0",
|
|
127
|
-
"postcss": "^8.3
|
|
127
|
+
"postcss": "^8.4.3",
|
|
128
128
|
"postcss-less": "^5.0.0",
|
|
129
|
-
"prettier": "^2.
|
|
129
|
+
"prettier": "^2.5.0",
|
|
130
130
|
"puppeteer": "^11.0.0",
|
|
131
131
|
"query-string": "^7.0.1",
|
|
132
132
|
"react": "^17.0.2",
|
|
@@ -167,5 +167,5 @@
|
|
|
167
167
|
"bugs": {
|
|
168
168
|
"url": "https://github.com/kityandhero/antd-management-fast-framework/issues"
|
|
169
169
|
},
|
|
170
|
-
"gitHead": "
|
|
170
|
+
"gitHead": "23ac2b1ce1267df2c5c613529b0d354784b7d88e"
|
|
171
171
|
}
|