uiw 4.10.4 → 4.11.0

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/uiw.js CHANGED
@@ -1007,7 +1007,7 @@ try {
1007
1007
 
1008
1008
  /***/ }),
1009
1009
 
1010
- /***/ 523:
1010
+ /***/ 518:
1011
1011
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1012
1012
 
1013
1013
  "use strict";
@@ -1043,6 +1043,7 @@ __webpack_require__.d(__webpack_exports__, {
1043
1043
  "Divider": function() { return /* reexport */ react_divider_esm; },
1044
1044
  "Drawer": function() { return /* reexport */ react_drawer_esm; },
1045
1045
  "Dropdown": function() { return /* reexport */ Dropdown; },
1046
+ "Empty": function() { return /* reexport */ react_empty_esm; },
1046
1047
  "FileInput": function() { return /* reexport */ react_file_input_esm; },
1047
1048
  "Form": function() { return /* reexport */ react_form_esm; },
1048
1049
  "FormItem": function() { return /* reexport */ FormItem; },
@@ -6218,15 +6219,85 @@ function Dropdown(props) {
6218
6219
  children: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, Object.assign({}, children.props))
6219
6220
  }));
6220
6221
  }
6222
+ ;// CONCATENATED MODULE: ../react-empty/esm/style/index.css
6223
+ // extracted by mini-css-extract-plugin
6224
+ /* harmony default export */ var react_empty_esm_style = ({});
6225
+ ;// CONCATENATED MODULE: ../react-empty/esm/index.js
6226
+
6227
+
6228
+
6229
+
6230
+
6231
+
6232
+ var Empty = function Empty(props) {
6233
+ var _props$prefixCls = props.prefixCls,
6234
+ prefixCls = _props$prefixCls === void 0 ? 'w-empty' : _props$prefixCls,
6235
+ className = props.className,
6236
+ _props$iconColor = props.iconColor,
6237
+ iconColor = _props$iconColor === void 0 ? '#cdcdcd' : _props$iconColor,
6238
+ _props$size = props.size,
6239
+ size = _props$size === void 0 ? 40 : _props$size,
6240
+ _props$text = props.text,
6241
+ text = _props$text === void 0 ? '暂无数据' : _props$text,
6242
+ _props$textColor = props.textColor,
6243
+ textColor = _props$textColor === void 0 ? '#cdcdcd' : _props$textColor,
6244
+ type = props.type,
6245
+ description = props.description;
6246
+ var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
6247
+ var nData = type ? type : /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
6248
+ viewBox: "0 0 1024 1024",
6249
+ version: "1.1",
6250
+ xmlns: "http://www.w3.org/2000/svg",
6251
+ "p-id": "5994",
6252
+ width: "32",
6253
+ height: "32",
6254
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6255
+ d: "M894.44765695 767.84195243a27.75019293 27.75019293 0 0 0-27.75019292 27.75019292v123.2341595a14.88130617 14.88130617 0 0 1-14.66947243 14.66947243H185.28193991a14.88130617 14.88130617 0 0 1-14.66947243-14.66947243V157.76137102a14.88130617 14.88130617 0 0 1 14.66947243-14.66947243h666.74605169a14.88130617 14.88130617 0 0 1 14.66947243 14.66947243v41.09570503a27.75019293 27.75019293 0 1 0 55.50038698 0v-41.09570503a70.22281728 70.22281728 0 0 0-70.16985941-70.16985941H607.62505101a27.75019293 27.75019293 0 0 0-13.66326385-51.89921564H439.16443192a27.75019293 27.75019293 0 0 0-13.66326385 51.89921564H185.28193991A70.22281728 70.22281728 0 0 0 115.11208049 157.76137102v761.01197483a70.22281728 70.22281728 0 0 0 70.16985942 70.16985941h666.74605169a70.22281728 70.22281728 0 0 0 70.16985941-70.16985941v-123.1812005a27.75019293 27.75019293 0 0 0-27.75019406-27.75019292z",
6256
+ "p-id": "5995",
6257
+ fill: "#cdcdcd"
6258
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6259
+ d: "M254.65742221 297.9951707h127.94745515a27.75019293 27.75019293 0 0 0 0-55.50038585H254.65742221a27.75019293 27.75019293 0 1 0 0 55.50038585zM254.65742221 553.94304h127.94745515a27.75019293 27.75019293 0 0 0 0-55.50038585H254.65742221a27.75019293 27.75019293 0 0 0 0 55.50038585zM254.65742221 809.83795029h521.26937202a27.75019293 27.75019293 0 0 0 0-55.50038584H254.65742221a27.75019293 27.75019293 0 1 0 0 55.50038584zM981.72307341 719.70278173l-88.91712625-91.61800477a27.75019293 27.75019293 0 1 0-39.82470485 38.65962041l88.91712739 91.61800476a27.75019293 27.75019293 0 1 0 39.82470371-38.6596204z",
6260
+ "p-id": "5996",
6261
+ fill: "#cdcdcd"
6262
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6263
+ d: "M929.92977464 437.85826304a260.23749859 260.23749859 0 1 0-260.23749859 260.23749746A260.50229021 260.50229021 0 0 0 929.92977464 437.85826304z m-260.18453959 204.94894535A204.73711161 204.73711161 0 1 1 874.48234666 437.85826304a204.94894535 204.94894535 0 0 1-204.73711161 204.94894535z",
6264
+ "p-id": "5997",
6265
+ fill: iconColor
6266
+ })]
6267
+ });
6268
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
6269
+ className: cls,
6270
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
6271
+ type: nData,
6272
+ style: {
6273
+ fontSize: size,
6274
+ color: iconColor
6275
+ }
6276
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6277
+ className: prefixCls + "-text",
6278
+ style: {
6279
+ color: textColor
6280
+ },
6281
+ children: text
6282
+ }), description && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6283
+ className: prefixCls + "-description",
6284
+ children: description
6285
+ })]
6286
+ });
6287
+ };
6288
+
6289
+ /* harmony default export */ var react_empty_esm = (Empty);
6221
6290
  ;// CONCATENATED MODULE: ../react-file-input/esm/Input.js
6222
6291
 
6223
6292
 
6224
- var Input_excluded = ["className", "prefixCls"];
6293
+ var Input_excluded = ["className", "dataLabel", "prefixCls"];
6225
6294
 
6226
6295
 
6227
6296
 
6228
6297
  /* harmony default export */ var Input = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
6229
6298
  var className = props.className,
6299
+ _props$dataLabel = props.dataLabel,
6300
+ dataLabel = _props$dataLabel === void 0 ? 'Browse' : _props$dataLabel,
6230
6301
  _props$prefixCls = props.prefixCls,
6231
6302
  prefixCls = _props$prefixCls === void 0 ? 'w-fileinput' : _props$prefixCls,
6232
6303
  other = _objectWithoutPropertiesLoose(props, Input_excluded);
@@ -6234,7 +6305,7 @@ var Input_excluded = ["className", "prefixCls"];
6234
6305
  var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
6235
6306
  return /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, _extends({
6236
6307
  ref: ref,
6237
- "data-label": "Browse",
6308
+ "data-label": dataLabel,
6238
6309
  className: cls
6239
6310
  }, other, {
6240
6311
  type: "file"
@@ -6257,30 +6328,40 @@ var Picture = function Picture(props) {
6257
6328
  _props$dataList = props.dataList,
6258
6329
  dataList = _props$dataList === void 0 ? [] : _props$dataList,
6259
6330
  uploadType = props.uploadType,
6331
+ _props$size = props.size,
6332
+ size = _props$size === void 0 ? 'middle' : _props$size,
6333
+ _props$shape = props.shape,
6334
+ shape = _props$shape === void 0 ? 'round' : _props$shape,
6335
+ readonly = props.readonly,
6260
6336
  children = props.children,
6337
+ _props$showFileIcon = props.showFileIcon,
6338
+ showFileIcon = _props$showFileIcon === void 0 ? {
6339
+ showPreviewIcon: true,
6340
+ showRemoveIcon: true
6341
+ } : _props$showFileIcon,
6261
6342
  onPreview = props.onPreview,
6262
6343
  onAdd = props.onAdd,
6263
6344
  onRemove = props.onRemove;
6264
- var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
6345
+ var cls = [prefixCls, prefixCls + "-size-" + size, prefixCls + "-shape-" + shape, className].filter(Boolean).join(' ').trim();
6265
6346
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
6266
6347
  className: cls,
6267
- children: [children && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(children) && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, {
6348
+ children: [children && !readonly && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(children) && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, {
6268
6349
  onClick: onAdd
6269
6350
  }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6270
6351
  children: dataList.map(function (item, index) {
6271
6352
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
6272
- className: cls + "_" + uploadType,
6353
+ className: prefixCls + "-" + uploadType,
6273
6354
  children: [uploadType === 'picture' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
6274
- className: cls + "_info " + cls + "_" + uploadType + "_info",
6355
+ className: prefixCls + "-info " + prefixCls + "-" + uploadType + "-info",
6275
6356
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
6276
6357
  src: item['dataURL'],
6277
6358
  alt: ""
6278
- }), onPreview && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6279
- className: cls + "_actions",
6359
+ }), (showFileIcon == null ? void 0 : showFileIcon.showPreviewIcon) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6360
+ className: prefixCls + "-actions",
6280
6361
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
6281
- className: cls + "_actions_search",
6362
+ className: prefixCls + "-actions-search",
6282
6363
  onClick: function onClick() {
6283
- return onPreview(item);
6364
+ return onPreview == null ? void 0 : onPreview(item);
6284
6365
  },
6285
6366
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
6286
6367
  type: "search",
@@ -6292,12 +6373,12 @@ var Picture = function Picture(props) {
6292
6373
  })
6293
6374
  })]
6294
6375
  }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6295
- className: cls + "_" + uploadType + "_text",
6376
+ className: prefixCls + "-" + uploadType + "-text",
6296
6377
  children: item.name
6297
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6298
- className: cls + "_" + uploadType + "_icon",
6378
+ }), (showFileIcon == null ? void 0 : showFileIcon.showRemoveIcon) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6379
+ className: prefixCls + "-" + uploadType + "-icon",
6299
6380
  onClick: function onClick() {
6300
- return onRemove(index);
6381
+ return onRemove == null ? void 0 : onRemove(index);
6301
6382
  },
6302
6383
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
6303
6384
  type: "delete",
@@ -6328,29 +6409,39 @@ var Card = function Card(props) {
6328
6409
  dataList = _props$dataList === void 0 ? [] : _props$dataList,
6329
6410
  _props$maxNumber = props.maxNumber,
6330
6411
  maxNumber = _props$maxNumber === void 0 ? 3 : _props$maxNumber,
6412
+ _props$shape = props.shape,
6413
+ shape = _props$shape === void 0 ? 'round' : _props$shape,
6414
+ _props$size = props.size,
6415
+ size = _props$size === void 0 ? 'middle' : _props$size,
6331
6416
  readonly = props.readonly,
6332
6417
  children = props.children,
6418
+ _props$showFileIcon = props.showFileIcon,
6419
+ showFileIcon = _props$showFileIcon === void 0 ? {
6420
+ showPreviewIcon: true,
6421
+ showRemoveIcon: true
6422
+ } : _props$showFileIcon,
6333
6423
  onAdd = props.onAdd,
6334
6424
  onPreview = props.onPreview,
6335
6425
  onRemove = props.onRemove;
6336
- var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
6426
+ var cls = [prefixCls, prefixCls + "-size-" + size, prefixCls + "-shape-" + shape, className].filter(Boolean).join(' ').trim();
6427
+ var isAction = showFileIcon.showPreviewIcon || showFileIcon.showRemoveIcon ? true : false;
6337
6428
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
6338
6429
  className: cls,
6339
6430
  children: [dataList.map(function (item, index) {
6340
6431
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
6341
- className: cls + "_box",
6432
+ className: prefixCls + "-box",
6342
6433
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6343
- className: cls + "_box_info",
6434
+ className: prefixCls + "-box-info",
6344
6435
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
6345
6436
  src: item['dataURL'],
6346
6437
  alt: ""
6347
6438
  })
6348
6439
  }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
6349
- className: cls + "_actions",
6350
- children: [onPreview && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
6351
- className: cls + "_actions_remove",
6440
+ className: isAction ? prefixCls + "-actions" : '',
6441
+ children: [(showFileIcon == null ? void 0 : showFileIcon.showPreviewIcon) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
6442
+ className: prefixCls + "-actions-remove",
6352
6443
  onClick: function onClick() {
6353
- return onPreview(item);
6444
+ return onPreview == null ? void 0 : onPreview(item);
6354
6445
  },
6355
6446
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
6356
6447
  type: "search",
@@ -6359,10 +6450,10 @@ var Card = function Card(props) {
6359
6450
  fontSize: 16
6360
6451
  }
6361
6452
  })
6362
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
6363
- className: cls + "_actions_remove",
6453
+ }), (showFileIcon == null ? void 0 : showFileIcon.showRemoveIcon) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
6454
+ className: prefixCls + "-actions-remove",
6364
6455
  onClick: function onClick() {
6365
- return onRemove(index);
6456
+ return onRemove == null ? void 0 : onRemove(index);
6366
6457
  },
6367
6458
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
6368
6459
  type: "delete",
@@ -6375,7 +6466,7 @@ var Card = function Card(props) {
6375
6466
  })]
6376
6467
  }, index);
6377
6468
  }), maxNumber > dataList.length && !readonly && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6378
- className: cls + "_box " + cls + "_btn",
6469
+ className: prefixCls + "-box " + prefixCls + "-btn",
6379
6470
  onClick: onAdd,
6380
6471
  children: children
6381
6472
  })]
@@ -6457,6 +6548,7 @@ var FileList = function FileList(props) {
6457
6548
  return openFileDialog(inputRef);
6458
6549
  }, [inputRef]);
6459
6550
  var onFileUpload = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
6551
+ if (inputRef.current) inputRef.current.value = '';
6460
6552
  handleClickInput();
6461
6553
  }, [handleClickInput]);
6462
6554
 
@@ -6509,7 +6601,7 @@ var FileList = function FileList(props) {
6509
6601
 
6510
6602
  updatedList.splice(index, 1);
6511
6603
  setFileList(updatedList);
6512
- onChange == null ? void 0 : onChange(fileList);
6604
+ onChange == null ? void 0 : onChange(updatedList);
6513
6605
  };
6514
6606
 
6515
6607
  var Comp;
@@ -6789,7 +6881,8 @@ var isPromise = function isPromise(promise) {
6789
6881
  return promise && typeof promise.then === 'function';
6790
6882
  };
6791
6883
 
6792
- function Form(_ref, ref) {
6884
+ function Form(_ref, ref //| React.RefObject<FormRefType>,
6885
+ ) {
6793
6886
  var _ref$prefixCls = _ref.prefixCls,
6794
6887
  prefixCls = _ref$prefixCls === void 0 ? 'w-form' : _ref$prefixCls,
6795
6888
  className = _ref.className,
@@ -6802,20 +6895,36 @@ function Form(_ref, ref) {
6802
6895
  afterSubmit = _ref.afterSubmit,
6803
6896
  others = _objectWithoutPropertiesLoose(_ref, Form_excluded);
6804
6897
 
6805
- var initData = newFormState(fields, function (_ref2) {
6806
- var initialValue = _ref2.initialValue;
6807
- initialValue = newInitialValue(initialValue);
6808
- return {
6809
- initialValue: initialValue,
6810
- currentValue: initialValue
6811
- };
6812
- });
6898
+ var initData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
6899
+ return newFormState(fields, function (_ref2) {
6900
+ var initialValue = _ref2.initialValue;
6901
+ initialValue = newInitialValue(initialValue);
6902
+ return {
6903
+ initialValue: initialValue,
6904
+ currentValue: initialValue
6905
+ };
6906
+ });
6907
+ }, []);
6813
6908
 
6814
- var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(initData),
6909
+ var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(JSON.parse(JSON.stringify(initData))),
6815
6910
  _useState2 = _slicedToArray(_useState, 2),
6816
6911
  data = _useState2[0],
6817
- setData = _useState2[1];
6912
+ setDatas = _useState2[1];
6913
+
6914
+ var setData = function setData(values) {
6915
+ // 解决value为数组时不进行深拷贝,initvalue无法重置问题
6916
+ setDatas(JSON.parse(JSON.stringify(values)));
6917
+ };
6818
6918
 
6919
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(ref, function () {
6920
+ return {
6921
+ onSubmit: handleSubmit,
6922
+ resetForm: handleReset,
6923
+ getFieldValues: function getFieldValues() {
6924
+ return data.current;
6925
+ }
6926
+ };
6927
+ }, [data]);
6819
6928
  var formUnits = {};
6820
6929
 
6821
6930
  for (var name in fields) {
@@ -6980,10 +7089,10 @@ function Form(_ref, ref) {
6980
7089
  props.id = element.props.id;
6981
7090
  props.value = hasCurrentValue ? data.current && data.current[name] : props.value; // : element.props.value;
6982
7091
 
6983
- var type = element.props.type;
7092
+ var type = element.props.type; // console.log('type', element)
6984
7093
 
6985
- if (type === 'checkbox' || type === 'switch') {
6986
- props.checked = !!props.checked;
7094
+ if (type === 'checkbox' || type === 'switch' || typeof props.value === 'boolean') {
7095
+ props.checked = !!props.value;
6987
7096
  delete props.value;
6988
7097
  }
6989
7098
 
@@ -8296,6 +8405,52 @@ function NotificationCreate(props, type) {
8296
8405
  };
8297
8406
  });
8298
8407
  /* harmony default export */ var react_notify_esm = (NotificationCreate);
8408
+ ;// CONCATENATED MODULE: ../react-select/esm/Option.js
8409
+
8410
+
8411
+
8412
+ /* harmony default export */ var Option = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
8413
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("option", _extends({}, props, {
8414
+ ref: ref
8415
+ }));
8416
+ }));
8417
+ ;// CONCATENATED MODULE: ../react-select/esm/Group.js
8418
+
8419
+
8420
+
8421
+ /* harmony default export */ var Group = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
8422
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("optgroup", _extends({}, props, {
8423
+ ref: ref
8424
+ }));
8425
+ }));
8426
+ ;// CONCATENATED MODULE: ../react-select/esm/style/index.css
8427
+ // extracted by mini-css-extract-plugin
8428
+ /* harmony default export */ var react_select_esm_style = ({});
8429
+ ;// CONCATENATED MODULE: ../react-select/esm/index.js
8430
+
8431
+
8432
+ var react_select_esm_excluded = ["prefixCls", "className", "size"];
8433
+
8434
+
8435
+
8436
+
8437
+
8438
+ var Select = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
8439
+ var _props$prefixCls = props.prefixCls,
8440
+ prefixCls = _props$prefixCls === void 0 ? 'w-select' : _props$prefixCls,
8441
+ className = props.className,
8442
+ _props$size = props.size,
8443
+ size = _props$size === void 0 ? 'default' : _props$size,
8444
+ other = _objectWithoutPropertiesLoose(props, react_select_esm_excluded);
8445
+
8446
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("select", _extends({}, other, {
8447
+ ref: ref,
8448
+ className: [prefixCls, className, size ? prefixCls + "-" + size : null].filter(Boolean).join(' ').trim()
8449
+ }));
8450
+ });
8451
+ Select.Option = Option;
8452
+ Select.Group = Group;
8453
+ /* harmony default export */ var react_select_esm = (Select);
8299
8454
  ;// CONCATENATED MODULE: ../react-pagination/esm/style/index.css
8300
8455
  // extracted by mini-css-extract-plugin
8301
8456
  /* harmony default export */ var react_pagination_esm_style = ({});
@@ -8303,7 +8458,9 @@ function NotificationCreate(props, type) {
8303
8458
 
8304
8459
 
8305
8460
 
8306
- var react_pagination_esm_excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"];
8461
+ var react_pagination_esm_excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "pageSizeOptions", "current", "onChange", "onShowSizeChange", "divider"];
8462
+
8463
+
8307
8464
 
8308
8465
 
8309
8466
 
@@ -8320,12 +8477,15 @@ function Pagination(props) {
8320
8477
  total = _props$total === void 0 ? 0 : _props$total,
8321
8478
  _props$pageSize = props.pageSize,
8322
8479
  pageSize = _props$pageSize === void 0 ? 10 : _props$pageSize,
8480
+ _props$pageSizeOption = props.pageSizeOptions,
8481
+ pageSizeOptions = _props$pageSizeOption === void 0 ? [] : _props$pageSizeOption,
8323
8482
  _props$current = props.current,
8324
8483
  currentNumber = _props$current === void 0 ? 1 : _props$current,
8325
8484
  _props$onChange = props.onChange,
8326
8485
  onChange = _props$onChange === void 0 ? function () {
8327
8486
  return null;
8328
8487
  } : _props$onChange,
8488
+ onShowSizeChange = props.onShowSizeChange,
8329
8489
  divider = props.divider,
8330
8490
  other = _objectWithoutPropertiesLoose(props, react_pagination_esm_excluded);
8331
8491
 
@@ -8453,13 +8613,20 @@ function Pagination(props) {
8453
8613
  onChange && onChange(state.current, total, pageSize);
8454
8614
  }
8455
8615
 
8456
- return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", _extends({
8616
+ var onSizeChange = function onSizeChange(e) {
8617
+ var sizeCount = Number(e.target.value);
8618
+ var count = Math.ceil(total / sizeCount);
8619
+ var newCurrent = current > count ? count : current;
8620
+ onShowSizeChange && onShowSizeChange(newCurrent, sizeCount);
8621
+ };
8622
+
8623
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", _extends({
8457
8624
  className: cls,
8458
8625
  style: _extends({}, style, {
8459
8626
  textAlign: alignment
8460
8627
  })
8461
8628
  }, other, {
8462
- children: initPageSoure.map(function (item, idx) {
8629
+ children: [initPageSoure.map(function (item, idx) {
8463
8630
  // eslint-disable-next-line jsx-a11y/anchor-is-valid
8464
8631
  var label = /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
8465
8632
  children: item.label
@@ -8479,7 +8646,20 @@ function Pagination(props) {
8479
8646
  },
8480
8647
  children: label
8481
8648
  }, idx);
8482
- })
8649
+ }), pageSizeOptions.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
8650
+ className: prefixCls + "-options",
8651
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_select_esm, {
8652
+ size: size,
8653
+ defaultValue: pageSize,
8654
+ onChange: onSizeChange,
8655
+ children: pageSizeOptions.map(function (item, index) {
8656
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(react_select_esm.Option, {
8657
+ value: item,
8658
+ children: [item, "\u6761/\u9875"]
8659
+ }, index);
8660
+ })
8661
+ })
8662
+ })]
8483
8663
  }));
8484
8664
  }
8485
8665
  ;// CONCATENATED MODULE: ../react-pin-code/esm/style/input.css
@@ -9203,52 +9383,6 @@ function SearchSelect(props) {
9203
9383
  })
9204
9384
  }));
9205
9385
  }
9206
- ;// CONCATENATED MODULE: ../react-select/esm/Option.js
9207
-
9208
-
9209
-
9210
- /* harmony default export */ var Option = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
9211
- return /*#__PURE__*/(0,jsx_runtime.jsx)("option", _extends({}, props, {
9212
- ref: ref
9213
- }));
9214
- }));
9215
- ;// CONCATENATED MODULE: ../react-select/esm/Group.js
9216
-
9217
-
9218
-
9219
- /* harmony default export */ var Group = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
9220
- return /*#__PURE__*/(0,jsx_runtime.jsx)("optgroup", _extends({}, props, {
9221
- ref: ref
9222
- }));
9223
- }));
9224
- ;// CONCATENATED MODULE: ../react-select/esm/style/index.css
9225
- // extracted by mini-css-extract-plugin
9226
- /* harmony default export */ var react_select_esm_style = ({});
9227
- ;// CONCATENATED MODULE: ../react-select/esm/index.js
9228
-
9229
-
9230
- var react_select_esm_excluded = ["prefixCls", "className", "size"];
9231
-
9232
-
9233
-
9234
-
9235
-
9236
- var Select = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
9237
- var _props$prefixCls = props.prefixCls,
9238
- prefixCls = _props$prefixCls === void 0 ? 'w-select' : _props$prefixCls,
9239
- className = props.className,
9240
- _props$size = props.size,
9241
- size = _props$size === void 0 ? 'default' : _props$size,
9242
- other = _objectWithoutPropertiesLoose(props, react_select_esm_excluded);
9243
-
9244
- return /*#__PURE__*/(0,jsx_runtime.jsx)("select", _extends({}, other, {
9245
- ref: ref,
9246
- className: [prefixCls, className, size ? prefixCls + "-" + size : null].filter(Boolean).join(' ').trim()
9247
- }));
9248
- });
9249
- Select.Option = Option;
9250
- Select.Group = Group;
9251
- /* harmony default export */ var react_select_esm = (Select);
9252
9386
  ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-split/esm/style/index.css
9253
9387
  // extracted by mini-css-extract-plugin
9254
9388
  /* harmony default export */ var react_split_esm_style = ({});
@@ -10251,7 +10385,7 @@ var getAllColumnsKeys = function getAllColumnsKeys(data, keys) {
10251
10385
  ;// CONCATENATED MODULE: ../react-table/esm/index.js
10252
10386
 
10253
10387
 
10254
- var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "title", "footer", "bordered", "onCell", "onCellHead"];
10388
+ var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "title", "footer", "bordered", "onCell", "onCellHead", "empty", "children"];
10255
10389
 
10256
10390
 
10257
10391
 
@@ -10280,6 +10414,7 @@ var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "ti
10280
10414
  onCell = _props$onCell === void 0 ? noop : _props$onCell,
10281
10415
  _props$onCellHead = _props.onCellHead,
10282
10416
  onCellHead = _props$onCellHead === void 0 ? noop : _props$onCellHead,
10417
+ empty = _props.empty,
10283
10418
  other = _objectWithoutPropertiesLoose(props, react_table_esm_excluded);
10284
10419
 
10285
10420
  var cls = [prefixCls, className, bordered ? prefixCls + "-bordered" : null].filter(Boolean).join(' ').trim();
@@ -10346,6 +10481,17 @@ var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "ti
10346
10481
  })
10347
10482
  }, rowNum);
10348
10483
  })
10484
+ }), data && data.length === 0 && empty && /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
10485
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
10486
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
10487
+ colSpan: columns.length,
10488
+ style: {
10489
+ position: 'relative',
10490
+ left: 0
10491
+ },
10492
+ children: empty
10493
+ })
10494
+ })
10349
10495
  }), props.children]
10350
10496
  }), footer && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
10351
10497
  className: prefixCls + "-footer",
@@ -11169,6 +11315,8 @@ function TreeChecked(_ref) {
11169
11315
 
11170
11316
 
11171
11317
 
11318
+
11319
+
11172
11320
 
11173
11321
 
11174
11322
 
@@ -11262,7 +11410,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
11262
11410
  /******/ // startup
11263
11411
  /******/ // Load entry module and return exports
11264
11412
  /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
11265
- /******/ var __webpack_exports__ = __webpack_require__(523);
11413
+ /******/ var __webpack_exports__ = __webpack_require__(518);
11266
11414
  /******/
11267
11415
  /******/ return __webpack_exports__;
11268
11416
  /******/ })()