wargerm 0.3.6 → 0.3.7
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/dist/index.esm.js +27 -21
- package/dist/index.js +27 -21
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -8210,18 +8210,23 @@ function Table(_ref) {
|
|
8210
8210
|
dataSource = _useState10[0],
|
8211
8211
|
setDataSource = _useState10[1];
|
8212
8212
|
|
8213
|
-
var _useState11 = useState(
|
8213
|
+
var _useState11 = useState(0),
|
8214
8214
|
_useState12 = _slicedToArray(_useState11, 2),
|
8215
|
-
|
8216
|
-
|
8215
|
+
total = _useState12[0],
|
8216
|
+
setTotal = _useState12[1];
|
8217
8217
|
|
8218
|
-
var _useState13 = useState(
|
8218
|
+
var _useState13 = useState({}),
|
8219
8219
|
_useState14 = _slicedToArray(_useState13, 2),
|
8220
|
-
|
8221
|
-
|
8220
|
+
pageParams = _useState14[0],
|
8221
|
+
setPageParams = _useState14[1];
|
8222
8222
|
|
8223
|
-
var _useState15 = useState(
|
8224
|
-
|
8223
|
+
var _useState15 = useState(false),
|
8224
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
8225
|
+
loading = _useState16[0],
|
8226
|
+
setLoading = _useState16[1];
|
8227
|
+
|
8228
|
+
var _useState17 = useState({
|
8229
|
+
total: total,
|
8225
8230
|
pageSize: 20,
|
8226
8231
|
size: 'small',
|
8227
8232
|
current: 1,
|
@@ -8236,9 +8241,9 @@ function Table(_ref) {
|
|
8236
8241
|
});
|
8237
8242
|
}
|
8238
8243
|
}),
|
8239
|
-
|
8240
|
-
paginationParams =
|
8241
|
-
setpaginationParams =
|
8244
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
8245
|
+
paginationParams = _useState18[0],
|
8246
|
+
setpaginationParams = _useState18[1];
|
8242
8247
|
|
8243
8248
|
useEffect(function () {
|
8244
8249
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
@@ -8248,7 +8253,7 @@ function Table(_ref) {
|
|
8248
8253
|
switch (_context.prev = _context.next) {
|
8249
8254
|
case 0:
|
8250
8255
|
if (!request) {
|
8251
|
-
_context.next =
|
8256
|
+
_context.next = 15;
|
8252
8257
|
break;
|
8253
8258
|
}
|
8254
8259
|
|
@@ -8269,15 +8274,16 @@ function Table(_ref) {
|
|
8269
8274
|
setLoading(false);
|
8270
8275
|
onLoad && onLoad(res.data);
|
8271
8276
|
setDataSource(res.data);
|
8277
|
+
setTotal(res.total || 0);
|
8272
8278
|
setpaginationParams(function (c) {
|
8273
8279
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
|
8274
8280
|
total: res.total || res.data.length
|
8275
8281
|
}, pagination), requestParams);
|
8276
8282
|
});
|
8277
|
-
_context.next =
|
8283
|
+
_context.next = 16;
|
8278
8284
|
break;
|
8279
8285
|
|
8280
|
-
case
|
8286
|
+
case 15:
|
8281
8287
|
setpaginationParams(function (c) {
|
8282
8288
|
var obj = _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
|
8283
8289
|
total: tableList && tableList.length || 0
|
@@ -8289,7 +8295,7 @@ function Table(_ref) {
|
|
8289
8295
|
return obj;
|
8290
8296
|
});
|
8291
8297
|
|
8292
|
-
case
|
8298
|
+
case 16:
|
8293
8299
|
case "end":
|
8294
8300
|
return _context.stop();
|
8295
8301
|
}
|
@@ -9842,19 +9848,19 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
9842
9848
|
display: 'flex'
|
9843
9849
|
}
|
9844
9850
|
}, /*#__PURE__*/React.createElement(WButton, {
|
9845
|
-
className: "
|
9851
|
+
className: "concellbtn",
|
9846
9852
|
onClick: function onClick(e) {
|
9847
|
-
|
9853
|
+
onCancel && onCancel(e);
|
9848
9854
|
}
|
9849
|
-
},
|
9850
|
-
className: "
|
9855
|
+
}, cancelText || '取消'), /*#__PURE__*/React.createElement(WButton, {
|
9856
|
+
className: "okbtn",
|
9851
9857
|
style: {
|
9852
9858
|
marginLeft: '10px'
|
9853
9859
|
},
|
9854
9860
|
onClick: function onClick(e) {
|
9855
|
-
|
9861
|
+
onOk && onOk(e);
|
9856
9862
|
}
|
9857
|
-
},
|
9863
|
+
}, okText || '确定')));
|
9858
9864
|
};
|
9859
9865
|
|
9860
9866
|
_this.renderTop = function () {
|
package/dist/index.js
CHANGED
@@ -8244,18 +8244,23 @@ function Table(_ref) {
|
|
8244
8244
|
dataSource = _useState10[0],
|
8245
8245
|
setDataSource = _useState10[1];
|
8246
8246
|
|
8247
|
-
var _useState11 = React.useState(
|
8247
|
+
var _useState11 = React.useState(0),
|
8248
8248
|
_useState12 = _slicedToArray(_useState11, 2),
|
8249
|
-
|
8250
|
-
|
8249
|
+
total = _useState12[0],
|
8250
|
+
setTotal = _useState12[1];
|
8251
8251
|
|
8252
|
-
var _useState13 = React.useState(
|
8252
|
+
var _useState13 = React.useState({}),
|
8253
8253
|
_useState14 = _slicedToArray(_useState13, 2),
|
8254
|
-
|
8255
|
-
|
8254
|
+
pageParams = _useState14[0],
|
8255
|
+
setPageParams = _useState14[1];
|
8256
8256
|
|
8257
|
-
var _useState15 = React.useState(
|
8258
|
-
|
8257
|
+
var _useState15 = React.useState(false),
|
8258
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
8259
|
+
loading = _useState16[0],
|
8260
|
+
setLoading = _useState16[1];
|
8261
|
+
|
8262
|
+
var _useState17 = React.useState({
|
8263
|
+
total: total,
|
8259
8264
|
pageSize: 20,
|
8260
8265
|
size: 'small',
|
8261
8266
|
current: 1,
|
@@ -8270,9 +8275,9 @@ function Table(_ref) {
|
|
8270
8275
|
});
|
8271
8276
|
}
|
8272
8277
|
}),
|
8273
|
-
|
8274
|
-
paginationParams =
|
8275
|
-
setpaginationParams =
|
8278
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
8279
|
+
paginationParams = _useState18[0],
|
8280
|
+
setpaginationParams = _useState18[1];
|
8276
8281
|
|
8277
8282
|
React.useEffect(function () {
|
8278
8283
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
@@ -8282,7 +8287,7 @@ function Table(_ref) {
|
|
8282
8287
|
switch (_context.prev = _context.next) {
|
8283
8288
|
case 0:
|
8284
8289
|
if (!request) {
|
8285
|
-
_context.next =
|
8290
|
+
_context.next = 15;
|
8286
8291
|
break;
|
8287
8292
|
}
|
8288
8293
|
|
@@ -8303,15 +8308,16 @@ function Table(_ref) {
|
|
8303
8308
|
setLoading(false);
|
8304
8309
|
onLoad && onLoad(res.data);
|
8305
8310
|
setDataSource(res.data);
|
8311
|
+
setTotal(res.total || 0);
|
8306
8312
|
setpaginationParams(function (c) {
|
8307
8313
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
|
8308
8314
|
total: res.total || res.data.length
|
8309
8315
|
}, pagination), requestParams);
|
8310
8316
|
});
|
8311
|
-
_context.next =
|
8317
|
+
_context.next = 16;
|
8312
8318
|
break;
|
8313
8319
|
|
8314
|
-
case
|
8320
|
+
case 15:
|
8315
8321
|
setpaginationParams(function (c) {
|
8316
8322
|
var obj = _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
|
8317
8323
|
total: tableList && tableList.length || 0
|
@@ -8323,7 +8329,7 @@ function Table(_ref) {
|
|
8323
8329
|
return obj;
|
8324
8330
|
});
|
8325
8331
|
|
8326
|
-
case
|
8332
|
+
case 16:
|
8327
8333
|
case "end":
|
8328
8334
|
return _context.stop();
|
8329
8335
|
}
|
@@ -9876,19 +9882,19 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
9876
9882
|
display: 'flex'
|
9877
9883
|
}
|
9878
9884
|
}, /*#__PURE__*/React__default['default'].createElement(WButton, {
|
9879
|
-
className: "
|
9885
|
+
className: "concellbtn",
|
9880
9886
|
onClick: function onClick(e) {
|
9881
|
-
|
9887
|
+
onCancel && onCancel(e);
|
9882
9888
|
}
|
9883
|
-
},
|
9884
|
-
className: "
|
9889
|
+
}, cancelText || '取消'), /*#__PURE__*/React__default['default'].createElement(WButton, {
|
9890
|
+
className: "okbtn",
|
9885
9891
|
style: {
|
9886
9892
|
marginLeft: '10px'
|
9887
9893
|
},
|
9888
9894
|
onClick: function onClick(e) {
|
9889
|
-
|
9895
|
+
onOk && onOk(e);
|
9890
9896
|
}
|
9891
|
-
},
|
9897
|
+
}, okText || '确定')));
|
9892
9898
|
};
|
9893
9899
|
|
9894
9900
|
_this.renderTop = function () {
|