wargerm 0.3.5 → 0.3.9

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.
@@ -10,6 +10,7 @@ declare type Props = {
10
10
  okText?: string;
11
11
  cancelText?: string;
12
12
  visible?: boolean;
13
+ isLoading?: boolean;
13
14
  width?: number;
14
15
  className?: string;
15
16
  style?: React.CSSProperties;
package/dist/index.css CHANGED
@@ -269,6 +269,7 @@
269
269
  display: flex;
270
270
  align-items: center;
271
271
  justify-content: center;
272
+ text-align: center;
272
273
  position: relative;
273
274
  z-index: 2;
274
275
  }
@@ -318,9 +319,10 @@
318
319
  display: flex;
319
320
  align-items: center;
320
321
  justify-content: center;
322
+ text-align: center;
321
323
  position: relative;
322
324
  z-index: 2;
323
- height: 32px;
325
+ min-height: 32px;
324
326
  }
325
327
  [data-prefers-color='dark'] .container .tbody {
326
328
  overflow: auto;
@@ -330,7 +332,7 @@
330
332
  [data-prefers-color='dark'] .container .tbody .tr {
331
333
  padding-left: 6px;
332
334
  width: 100%;
333
- height: 32px;
335
+ min-height: 32px;
334
336
  display: flex;
335
337
  margin-bottom: 17px;
336
338
  position: relative;
@@ -369,6 +371,7 @@
369
371
  display: flex;
370
372
  align-items: center;
371
373
  justify-content: center;
374
+ text-align: center;
372
375
  position: relative;
373
376
  z-index: 2;
374
377
  }
@@ -377,6 +380,7 @@
377
380
  display: flex;
378
381
  align-items: center;
379
382
  justify-content: center;
383
+ text-align: center;
380
384
  position: relative;
381
385
  z-index: 2;
382
386
  }
@@ -426,6 +430,7 @@
426
430
  display: flex;
427
431
  align-items: center;
428
432
  justify-content: center;
433
+ text-align: center;
429
434
  position: relative;
430
435
  z-index: 2;
431
436
  min-height: 32px;
@@ -477,6 +482,7 @@
477
482
  display: flex;
478
483
  align-items: center;
479
484
  justify-content: center;
485
+ text-align: center;
480
486
  position: relative;
481
487
  z-index: 2;
482
488
  }
@@ -485,6 +491,7 @@
485
491
  display: flex;
486
492
  align-items: center;
487
493
  justify-content: center;
494
+ text-align: center;
488
495
  position: relative;
489
496
  z-index: 2;
490
497
  }
@@ -1839,6 +1846,9 @@ button.swiper-pagination-bullet {
1839
1846
  .model_container-tips .model_wrap-tips .model_bottom-tips .okbtn:hover {
1840
1847
  border: 1px solid #276588;
1841
1848
  }
1849
+ .model_container-tips .model_wrap-tips .model_bottom-tips .okbtn .ant-btn-loading-icon {
1850
+ width: auto !important;
1851
+ }
1842
1852
  .model_container-tips .model_wrap-tips .model_bottom-tips .concellbtn {
1843
1853
  background: #1487c2;
1844
1854
  font-size: 14px;
@@ -269,6 +269,7 @@
269
269
  display: flex;
270
270
  align-items: center;
271
271
  justify-content: center;
272
+ text-align: center;
272
273
  position: relative;
273
274
  z-index: 2;
274
275
  }
@@ -318,9 +319,10 @@
318
319
  display: flex;
319
320
  align-items: center;
320
321
  justify-content: center;
322
+ text-align: center;
321
323
  position: relative;
322
324
  z-index: 2;
323
- height: 32px;
325
+ min-height: 32px;
324
326
  }
325
327
  [data-prefers-color='dark'] .container .tbody {
326
328
  overflow: auto;
@@ -330,7 +332,7 @@
330
332
  [data-prefers-color='dark'] .container .tbody .tr {
331
333
  padding-left: 6px;
332
334
  width: 100%;
333
- height: 32px;
335
+ min-height: 32px;
334
336
  display: flex;
335
337
  margin-bottom: 17px;
336
338
  position: relative;
@@ -369,6 +371,7 @@
369
371
  display: flex;
370
372
  align-items: center;
371
373
  justify-content: center;
374
+ text-align: center;
372
375
  position: relative;
373
376
  z-index: 2;
374
377
  }
@@ -377,6 +380,7 @@
377
380
  display: flex;
378
381
  align-items: center;
379
382
  justify-content: center;
383
+ text-align: center;
380
384
  position: relative;
381
385
  z-index: 2;
382
386
  }
@@ -426,6 +430,7 @@
426
430
  display: flex;
427
431
  align-items: center;
428
432
  justify-content: center;
433
+ text-align: center;
429
434
  position: relative;
430
435
  z-index: 2;
431
436
  min-height: 32px;
@@ -477,6 +482,7 @@
477
482
  display: flex;
478
483
  align-items: center;
479
484
  justify-content: center;
485
+ text-align: center;
480
486
  position: relative;
481
487
  z-index: 2;
482
488
  }
@@ -485,6 +491,7 @@
485
491
  display: flex;
486
492
  align-items: center;
487
493
  justify-content: center;
494
+ text-align: center;
488
495
  position: relative;
489
496
  z-index: 2;
490
497
  }
@@ -1839,6 +1846,9 @@ button.swiper-pagination-bullet {
1839
1846
  .model_container-tips .model_wrap-tips .model_bottom-tips .okbtn:hover {
1840
1847
  border: 1px solid #276588;
1841
1848
  }
1849
+ .model_container-tips .model_wrap-tips .model_bottom-tips .okbtn .ant-btn-loading-icon {
1850
+ width: auto !important;
1851
+ }
1842
1852
  .model_container-tips .model_wrap-tips .model_bottom-tips .concellbtn {
1843
1853
  background: #1487c2;
1844
1854
  font-size: 14px;
package/dist/index.esm.js CHANGED
@@ -6437,7 +6437,9 @@ var WDatePicker$1 = function WDatePicker(props) {
6437
6437
  defaultValue: momentValue(defaultValue),
6438
6438
  value: momentValue(value),
6439
6439
  onChange: function onChange(v) {
6440
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(v, momentValue(v).format(format || 'YYYY-MM-DD'));
6440
+ var _momentValue;
6441
+
6442
+ (_onChange === null || _onChange === void 0 ? void 0 : _onChange(v, (_momentValue = momentValue(v)) === null || _momentValue === void 0 ? void 0 : _momentValue.format(format || 'YYYY-MM-DD'))) || '';
6441
6443
  }
6442
6444
  }, extraProps)) // </ConfigProvider>
6443
6445
 
@@ -6460,7 +6462,9 @@ var RangePicker$1 = function RangePicker(props) {
6460
6462
  defaultValue: momentValue(defaultValue),
6461
6463
  value: momentValue(value),
6462
6464
  onChange: function onChange(v) {
6463
- _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, momentValue(v).format(format || 'YYYY-MM-DD'));
6465
+ var _momentValue2;
6466
+
6467
+ (_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, (_momentValue2 = momentValue(v)) === null || _momentValue2 === void 0 ? void 0 : _momentValue2.format(format || 'YYYY-MM-DD'))) || '';
6464
6468
  }
6465
6469
  }, extraProps)) // </ConfigProvider>
6466
6470
 
@@ -7891,7 +7895,7 @@ var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
7891
7895
 
7892
7896
  var _excluded$7 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
7893
7897
  function Table(_ref) {
7894
- var _formSearchRef$curren3, _classnames2;
7898
+ var _formSearchRef$curren4, _classnames2;
7895
7899
 
7896
7900
  var columns = _ref.columns,
7897
7901
  tableList = _ref.dataSource,
@@ -7973,13 +7977,15 @@ function Table(_ref) {
7973
7977
  if (formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren = formSearchRef.current) === null || _formSearchRef$curren === void 0 ? void 0 : _formSearchRef$curren.columnsFields) {
7974
7978
  var _formSearchRef$curren2;
7975
7979
 
7976
- if (formRef === null || formRef === void 0 ? void 0 : formRef.current) {
7977
- formRef.current = formSearchRef === null || formSearchRef === void 0 ? void 0 : formSearchRef.current;
7978
- }
7979
-
7980
7980
  setColumnsFields(formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren2 = formSearchRef.current) === null || _formSearchRef$curren2 === void 0 ? void 0 : _formSearchRef$curren2.columnsFields);
7981
7981
  }
7982
- }, [JSON.stringify(formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren3 = formSearchRef.current) === null || _formSearchRef$curren3 === void 0 ? void 0 : _formSearchRef$curren3.columnsFields)]);
7982
+
7983
+ if ((formSearchRef === null || formSearchRef === void 0 ? void 0 : formSearchRef.current) && formRef) {
7984
+ var _formSearchRef$curren3;
7985
+
7986
+ formRef.current = formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren3 = formSearchRef.current) === null || _formSearchRef$curren3 === void 0 ? void 0 : _formSearchRef$curren3.form;
7987
+ }
7988
+ }, [JSON.stringify(formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren4 = formSearchRef.current) === null || _formSearchRef$curren4 === void 0 ? void 0 : _formSearchRef$curren4.columnsFields), formRef, formSearchRef]);
7983
7989
 
7984
7990
  var flattenColumns = function flattenColumns(columns) {
7985
7991
  var arr = columns.reduce(function (pre, cur) {
@@ -8208,18 +8214,23 @@ function Table(_ref) {
8208
8214
  dataSource = _useState10[0],
8209
8215
  setDataSource = _useState10[1];
8210
8216
 
8211
- var _useState11 = useState({}),
8217
+ var _useState11 = useState(0),
8212
8218
  _useState12 = _slicedToArray(_useState11, 2),
8213
- pageParams = _useState12[0],
8214
- setPageParams = _useState12[1];
8219
+ total = _useState12[0],
8220
+ setTotal = _useState12[1];
8215
8221
 
8216
- var _useState13 = useState(false),
8222
+ var _useState13 = useState({}),
8217
8223
  _useState14 = _slicedToArray(_useState13, 2),
8218
- loading = _useState14[0],
8219
- setLoading = _useState14[1];
8224
+ pageParams = _useState14[0],
8225
+ setPageParams = _useState14[1];
8226
+
8227
+ var _useState15 = useState(false),
8228
+ _useState16 = _slicedToArray(_useState15, 2),
8229
+ loading = _useState16[0],
8230
+ setLoading = _useState16[1];
8220
8231
 
8221
- var _useState15 = useState({
8222
- total: dataSource.length,
8232
+ var _useState17 = useState({
8233
+ total: total,
8223
8234
  pageSize: 20,
8224
8235
  size: 'small',
8225
8236
  current: 1,
@@ -8234,9 +8245,9 @@ function Table(_ref) {
8234
8245
  });
8235
8246
  }
8236
8247
  }),
8237
- _useState16 = _slicedToArray(_useState15, 2),
8238
- paginationParams = _useState16[0],
8239
- setpaginationParams = _useState16[1];
8248
+ _useState18 = _slicedToArray(_useState17, 2),
8249
+ paginationParams = _useState18[0],
8250
+ setpaginationParams = _useState18[1];
8240
8251
 
8241
8252
  useEffect(function () {
8242
8253
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -8246,7 +8257,7 @@ function Table(_ref) {
8246
8257
  switch (_context.prev = _context.next) {
8247
8258
  case 0:
8248
8259
  if (!request) {
8249
- _context.next = 14;
8260
+ _context.next = 15;
8250
8261
  break;
8251
8262
  }
8252
8263
 
@@ -8267,15 +8278,16 @@ function Table(_ref) {
8267
8278
  setLoading(false);
8268
8279
  onLoad && onLoad(res.data);
8269
8280
  setDataSource(res.data);
8281
+ setTotal(res.total || 0);
8270
8282
  setpaginationParams(function (c) {
8271
8283
  return _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
8272
8284
  total: res.total || res.data.length
8273
8285
  }, pagination), requestParams);
8274
8286
  });
8275
- _context.next = 15;
8287
+ _context.next = 16;
8276
8288
  break;
8277
8289
 
8278
- case 14:
8290
+ case 15:
8279
8291
  setpaginationParams(function (c) {
8280
8292
  var obj = _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
8281
8293
  total: tableList && tableList.length || 0
@@ -8287,7 +8299,7 @@ function Table(_ref) {
8287
8299
  return obj;
8288
8300
  });
8289
8301
 
8290
- case 15:
8302
+ case 16:
8291
8303
  case "end":
8292
8304
  return _context.stop();
8293
8305
  }
@@ -9829,7 +9841,8 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
9829
9841
  onCancel = _this$props.onCancel,
9830
9842
  cancelText = _this$props.cancelText,
9831
9843
  okText = _this$props.okText,
9832
- footer = _this$props.footer;
9844
+ footer = _this$props.footer,
9845
+ isLoading = _this$props.isLoading;
9833
9846
  if (footer && /*#__PURE__*/React.isValidElement(footer)) return footer;
9834
9847
  if (footer === false) return null;
9835
9848
  return /*#__PURE__*/React.createElement("div", {
@@ -9840,19 +9853,20 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
9840
9853
  display: 'flex'
9841
9854
  }
9842
9855
  }, /*#__PURE__*/React.createElement(WButton, {
9843
- className: "okbtn",
9844
- onClick: function onClick(e) {
9845
- onOk && onOk(e);
9846
- }
9847
- }, okText || '确定'), /*#__PURE__*/React.createElement(WButton, {
9848
9856
  className: "concellbtn",
9849
9857
  style: {
9850
- marginLeft: '10px'
9858
+ marginRight: '10px'
9851
9859
  },
9852
9860
  onClick: function onClick(e) {
9853
9861
  onCancel && onCancel(e);
9854
9862
  }
9855
- }, cancelText || '取消')));
9863
+ }, cancelText || '取消'), /*#__PURE__*/React.createElement(WButton, {
9864
+ className: "okbtn",
9865
+ loading: isLoading || false,
9866
+ onClick: function onClick(e) {
9867
+ onOk && onOk(e);
9868
+ }
9869
+ }, okText || '确定')));
9856
9870
  };
9857
9871
 
9858
9872
  _this.renderTop = function () {
package/dist/index.js CHANGED
@@ -6471,7 +6471,9 @@ var WDatePicker$1 = function WDatePicker(props) {
6471
6471
  defaultValue: momentValue(defaultValue),
6472
6472
  value: momentValue(value),
6473
6473
  onChange: function onChange(v) {
6474
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(v, momentValue(v).format(format || 'YYYY-MM-DD'));
6474
+ var _momentValue;
6475
+
6476
+ (_onChange === null || _onChange === void 0 ? void 0 : _onChange(v, (_momentValue = momentValue(v)) === null || _momentValue === void 0 ? void 0 : _momentValue.format(format || 'YYYY-MM-DD'))) || '';
6475
6477
  }
6476
6478
  }, extraProps)) // </ConfigProvider>
6477
6479
 
@@ -6494,7 +6496,9 @@ var RangePicker$1 = function RangePicker(props) {
6494
6496
  defaultValue: momentValue(defaultValue),
6495
6497
  value: momentValue(value),
6496
6498
  onChange: function onChange(v) {
6497
- _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, momentValue(v).format(format || 'YYYY-MM-DD'));
6499
+ var _momentValue2;
6500
+
6501
+ (_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, (_momentValue2 = momentValue(v)) === null || _momentValue2 === void 0 ? void 0 : _momentValue2.format(format || 'YYYY-MM-DD'))) || '';
6498
6502
  }
6499
6503
  }, extraProps)) // </ConfigProvider>
6500
6504
 
@@ -7925,7 +7929,7 @@ var WForm$1 = /*#__PURE__*/React__default['default'].forwardRef(WForm);
7925
7929
 
7926
7930
  var _excluded$7 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
7927
7931
  function Table(_ref) {
7928
- var _formSearchRef$curren3, _classnames2;
7932
+ var _formSearchRef$curren4, _classnames2;
7929
7933
 
7930
7934
  var columns = _ref.columns,
7931
7935
  tableList = _ref.dataSource,
@@ -8007,13 +8011,15 @@ function Table(_ref) {
8007
8011
  if (formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren = formSearchRef.current) === null || _formSearchRef$curren === void 0 ? void 0 : _formSearchRef$curren.columnsFields) {
8008
8012
  var _formSearchRef$curren2;
8009
8013
 
8010
- if (formRef === null || formRef === void 0 ? void 0 : formRef.current) {
8011
- formRef.current = formSearchRef === null || formSearchRef === void 0 ? void 0 : formSearchRef.current;
8012
- }
8013
-
8014
8014
  setColumnsFields(formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren2 = formSearchRef.current) === null || _formSearchRef$curren2 === void 0 ? void 0 : _formSearchRef$curren2.columnsFields);
8015
8015
  }
8016
- }, [JSON.stringify(formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren3 = formSearchRef.current) === null || _formSearchRef$curren3 === void 0 ? void 0 : _formSearchRef$curren3.columnsFields)]);
8016
+
8017
+ if ((formSearchRef === null || formSearchRef === void 0 ? void 0 : formSearchRef.current) && formRef) {
8018
+ var _formSearchRef$curren3;
8019
+
8020
+ formRef.current = formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren3 = formSearchRef.current) === null || _formSearchRef$curren3 === void 0 ? void 0 : _formSearchRef$curren3.form;
8021
+ }
8022
+ }, [JSON.stringify(formSearchRef === null || formSearchRef === void 0 ? void 0 : (_formSearchRef$curren4 = formSearchRef.current) === null || _formSearchRef$curren4 === void 0 ? void 0 : _formSearchRef$curren4.columnsFields), formRef, formSearchRef]);
8017
8023
 
8018
8024
  var flattenColumns = function flattenColumns(columns) {
8019
8025
  var arr = columns.reduce(function (pre, cur) {
@@ -8242,18 +8248,23 @@ function Table(_ref) {
8242
8248
  dataSource = _useState10[0],
8243
8249
  setDataSource = _useState10[1];
8244
8250
 
8245
- var _useState11 = React.useState({}),
8251
+ var _useState11 = React.useState(0),
8246
8252
  _useState12 = _slicedToArray(_useState11, 2),
8247
- pageParams = _useState12[0],
8248
- setPageParams = _useState12[1];
8253
+ total = _useState12[0],
8254
+ setTotal = _useState12[1];
8249
8255
 
8250
- var _useState13 = React.useState(false),
8256
+ var _useState13 = React.useState({}),
8251
8257
  _useState14 = _slicedToArray(_useState13, 2),
8252
- loading = _useState14[0],
8253
- setLoading = _useState14[1];
8258
+ pageParams = _useState14[0],
8259
+ setPageParams = _useState14[1];
8260
+
8261
+ var _useState15 = React.useState(false),
8262
+ _useState16 = _slicedToArray(_useState15, 2),
8263
+ loading = _useState16[0],
8264
+ setLoading = _useState16[1];
8254
8265
 
8255
- var _useState15 = React.useState({
8256
- total: dataSource.length,
8266
+ var _useState17 = React.useState({
8267
+ total: total,
8257
8268
  pageSize: 20,
8258
8269
  size: 'small',
8259
8270
  current: 1,
@@ -8268,9 +8279,9 @@ function Table(_ref) {
8268
8279
  });
8269
8280
  }
8270
8281
  }),
8271
- _useState16 = _slicedToArray(_useState15, 2),
8272
- paginationParams = _useState16[0],
8273
- setpaginationParams = _useState16[1];
8282
+ _useState18 = _slicedToArray(_useState17, 2),
8283
+ paginationParams = _useState18[0],
8284
+ setpaginationParams = _useState18[1];
8274
8285
 
8275
8286
  React.useEffect(function () {
8276
8287
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -8280,7 +8291,7 @@ function Table(_ref) {
8280
8291
  switch (_context.prev = _context.next) {
8281
8292
  case 0:
8282
8293
  if (!request) {
8283
- _context.next = 14;
8294
+ _context.next = 15;
8284
8295
  break;
8285
8296
  }
8286
8297
 
@@ -8301,15 +8312,16 @@ function Table(_ref) {
8301
8312
  setLoading(false);
8302
8313
  onLoad && onLoad(res.data);
8303
8314
  setDataSource(res.data);
8315
+ setTotal(res.total || 0);
8304
8316
  setpaginationParams(function (c) {
8305
8317
  return _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
8306
8318
  total: res.total || res.data.length
8307
8319
  }, pagination), requestParams);
8308
8320
  });
8309
- _context.next = 15;
8321
+ _context.next = 16;
8310
8322
  break;
8311
8323
 
8312
- case 14:
8324
+ case 15:
8313
8325
  setpaginationParams(function (c) {
8314
8326
  var obj = _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
8315
8327
  total: tableList && tableList.length || 0
@@ -8321,7 +8333,7 @@ function Table(_ref) {
8321
8333
  return obj;
8322
8334
  });
8323
8335
 
8324
- case 15:
8336
+ case 16:
8325
8337
  case "end":
8326
8338
  return _context.stop();
8327
8339
  }
@@ -9863,7 +9875,8 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
9863
9875
  onCancel = _this$props.onCancel,
9864
9876
  cancelText = _this$props.cancelText,
9865
9877
  okText = _this$props.okText,
9866
- footer = _this$props.footer;
9878
+ footer = _this$props.footer,
9879
+ isLoading = _this$props.isLoading;
9867
9880
  if (footer && /*#__PURE__*/React__default['default'].isValidElement(footer)) return footer;
9868
9881
  if (footer === false) return null;
9869
9882
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -9874,19 +9887,20 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
9874
9887
  display: 'flex'
9875
9888
  }
9876
9889
  }, /*#__PURE__*/React__default['default'].createElement(WButton, {
9877
- className: "okbtn",
9878
- onClick: function onClick(e) {
9879
- onOk && onOk(e);
9880
- }
9881
- }, okText || '确定'), /*#__PURE__*/React__default['default'].createElement(WButton, {
9882
9890
  className: "concellbtn",
9883
9891
  style: {
9884
- marginLeft: '10px'
9892
+ marginRight: '10px'
9885
9893
  },
9886
9894
  onClick: function onClick(e) {
9887
9895
  onCancel && onCancel(e);
9888
9896
  }
9889
- }, cancelText || '取消')));
9897
+ }, cancelText || '取消'), /*#__PURE__*/React__default['default'].createElement(WButton, {
9898
+ className: "okbtn",
9899
+ loading: isLoading || false,
9900
+ onClick: function onClick(e) {
9901
+ onOk && onOk(e);
9902
+ }
9903
+ }, okText || '确定')));
9890
9904
  };
9891
9905
 
9892
9906
  _this.renderTop = function () {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.3.5",
4
+ "version": "0.3.9",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",