uiw 4.10.3 → 4.10.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/README.md +8 -2
- package/dist/uiw.css +123 -74
- package/dist/uiw.js +158 -93
- package/dist/uiw.min.css +1 -1
- package/dist/uiw.min.js +1 -1
- package/package.json +55 -55
package/dist/uiw.js
CHANGED
|
@@ -6221,12 +6221,14 @@ function Dropdown(props) {
|
|
|
6221
6221
|
;// CONCATENATED MODULE: ../react-file-input/esm/Input.js
|
|
6222
6222
|
|
|
6223
6223
|
|
|
6224
|
-
var Input_excluded = ["className", "prefixCls"];
|
|
6224
|
+
var Input_excluded = ["className", "dataLabel", "prefixCls"];
|
|
6225
6225
|
|
|
6226
6226
|
|
|
6227
6227
|
|
|
6228
6228
|
/* harmony default export */ var Input = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
6229
6229
|
var className = props.className,
|
|
6230
|
+
_props$dataLabel = props.dataLabel,
|
|
6231
|
+
dataLabel = _props$dataLabel === void 0 ? 'Browse' : _props$dataLabel,
|
|
6230
6232
|
_props$prefixCls = props.prefixCls,
|
|
6231
6233
|
prefixCls = _props$prefixCls === void 0 ? 'w-fileinput' : _props$prefixCls,
|
|
6232
6234
|
other = _objectWithoutPropertiesLoose(props, Input_excluded);
|
|
@@ -6234,7 +6236,7 @@ var Input_excluded = ["className", "prefixCls"];
|
|
|
6234
6236
|
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
6235
6237
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, _extends({
|
|
6236
6238
|
ref: ref,
|
|
6237
|
-
"data-label":
|
|
6239
|
+
"data-label": dataLabel,
|
|
6238
6240
|
className: cls
|
|
6239
6241
|
}, other, {
|
|
6240
6242
|
type: "file"
|
|
@@ -6257,30 +6259,40 @@ var Picture = function Picture(props) {
|
|
|
6257
6259
|
_props$dataList = props.dataList,
|
|
6258
6260
|
dataList = _props$dataList === void 0 ? [] : _props$dataList,
|
|
6259
6261
|
uploadType = props.uploadType,
|
|
6262
|
+
_props$size = props.size,
|
|
6263
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
6264
|
+
_props$shape = props.shape,
|
|
6265
|
+
shape = _props$shape === void 0 ? 'round' : _props$shape,
|
|
6266
|
+
readonly = props.readonly,
|
|
6260
6267
|
children = props.children,
|
|
6268
|
+
_props$showFileIcon = props.showFileIcon,
|
|
6269
|
+
showFileIcon = _props$showFileIcon === void 0 ? {
|
|
6270
|
+
showPreviewIcon: true,
|
|
6271
|
+
showRemoveIcon: true
|
|
6272
|
+
} : _props$showFileIcon,
|
|
6261
6273
|
onPreview = props.onPreview,
|
|
6262
6274
|
onAdd = props.onAdd,
|
|
6263
6275
|
onRemove = props.onRemove;
|
|
6264
|
-
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
6276
|
+
var cls = [prefixCls, prefixCls + "-size-" + size, prefixCls + "-shape-" + shape, className].filter(Boolean).join(' ').trim();
|
|
6265
6277
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
6266
6278
|
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, {
|
|
6279
|
+
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
6280
|
onClick: onAdd
|
|
6269
6281
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6270
6282
|
children: dataList.map(function (item, index) {
|
|
6271
6283
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
6272
|
-
className:
|
|
6284
|
+
className: prefixCls + "-" + uploadType,
|
|
6273
6285
|
children: [uploadType === 'picture' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
6274
|
-
className:
|
|
6286
|
+
className: prefixCls + "-info " + prefixCls + "-" + uploadType + "-info",
|
|
6275
6287
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
6276
6288
|
src: item['dataURL'],
|
|
6277
6289
|
alt: ""
|
|
6278
|
-
}),
|
|
6279
|
-
className:
|
|
6290
|
+
}), (showFileIcon == null ? void 0 : showFileIcon.showPreviewIcon) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6291
|
+
className: prefixCls + "-actions",
|
|
6280
6292
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
6281
|
-
className:
|
|
6293
|
+
className: prefixCls + "-actions-search",
|
|
6282
6294
|
onClick: function onClick() {
|
|
6283
|
-
return onPreview(item);
|
|
6295
|
+
return onPreview == null ? void 0 : onPreview(item);
|
|
6284
6296
|
},
|
|
6285
6297
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
6286
6298
|
type: "search",
|
|
@@ -6292,12 +6304,12 @@ var Picture = function Picture(props) {
|
|
|
6292
6304
|
})
|
|
6293
6305
|
})]
|
|
6294
6306
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6295
|
-
className:
|
|
6307
|
+
className: prefixCls + "-" + uploadType + "-text",
|
|
6296
6308
|
children: item.name
|
|
6297
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6298
|
-
className:
|
|
6309
|
+
}), (showFileIcon == null ? void 0 : showFileIcon.showRemoveIcon) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6310
|
+
className: prefixCls + "-" + uploadType + "-icon",
|
|
6299
6311
|
onClick: function onClick() {
|
|
6300
|
-
return onRemove(index);
|
|
6312
|
+
return onRemove == null ? void 0 : onRemove(index);
|
|
6301
6313
|
},
|
|
6302
6314
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
6303
6315
|
type: "delete",
|
|
@@ -6328,29 +6340,39 @@ var Card = function Card(props) {
|
|
|
6328
6340
|
dataList = _props$dataList === void 0 ? [] : _props$dataList,
|
|
6329
6341
|
_props$maxNumber = props.maxNumber,
|
|
6330
6342
|
maxNumber = _props$maxNumber === void 0 ? 3 : _props$maxNumber,
|
|
6343
|
+
_props$shape = props.shape,
|
|
6344
|
+
shape = _props$shape === void 0 ? 'round' : _props$shape,
|
|
6345
|
+
_props$size = props.size,
|
|
6346
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
6331
6347
|
readonly = props.readonly,
|
|
6332
6348
|
children = props.children,
|
|
6349
|
+
_props$showFileIcon = props.showFileIcon,
|
|
6350
|
+
showFileIcon = _props$showFileIcon === void 0 ? {
|
|
6351
|
+
showPreviewIcon: true,
|
|
6352
|
+
showRemoveIcon: true
|
|
6353
|
+
} : _props$showFileIcon,
|
|
6333
6354
|
onAdd = props.onAdd,
|
|
6334
6355
|
onPreview = props.onPreview,
|
|
6335
6356
|
onRemove = props.onRemove;
|
|
6336
|
-
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
6357
|
+
var cls = [prefixCls, prefixCls + "-size-" + size, prefixCls + "-shape-" + shape, className].filter(Boolean).join(' ').trim();
|
|
6358
|
+
var isAction = showFileIcon.showPreviewIcon || showFileIcon.showRemoveIcon ? true : false;
|
|
6337
6359
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
6338
6360
|
className: cls,
|
|
6339
6361
|
children: [dataList.map(function (item, index) {
|
|
6340
6362
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
6341
|
-
className:
|
|
6363
|
+
className: prefixCls + "-box",
|
|
6342
6364
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6343
|
-
className:
|
|
6365
|
+
className: prefixCls + "-box-info",
|
|
6344
6366
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
6345
6367
|
src: item['dataURL'],
|
|
6346
6368
|
alt: ""
|
|
6347
6369
|
})
|
|
6348
6370
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
6349
|
-
className:
|
|
6350
|
-
children: [
|
|
6351
|
-
className:
|
|
6371
|
+
className: isAction ? prefixCls + "-actions" : '',
|
|
6372
|
+
children: [(showFileIcon == null ? void 0 : showFileIcon.showPreviewIcon) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
6373
|
+
className: prefixCls + "-actions-remove",
|
|
6352
6374
|
onClick: function onClick() {
|
|
6353
|
-
return onPreview(item);
|
|
6375
|
+
return onPreview == null ? void 0 : onPreview(item);
|
|
6354
6376
|
},
|
|
6355
6377
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
6356
6378
|
type: "search",
|
|
@@ -6359,10 +6381,10 @@ var Card = function Card(props) {
|
|
|
6359
6381
|
fontSize: 16
|
|
6360
6382
|
}
|
|
6361
6383
|
})
|
|
6362
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
6363
|
-
className:
|
|
6384
|
+
}), (showFileIcon == null ? void 0 : showFileIcon.showRemoveIcon) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
6385
|
+
className: prefixCls + "-actions-remove",
|
|
6364
6386
|
onClick: function onClick() {
|
|
6365
|
-
return onRemove(index);
|
|
6387
|
+
return onRemove == null ? void 0 : onRemove(index);
|
|
6366
6388
|
},
|
|
6367
6389
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
6368
6390
|
type: "delete",
|
|
@@ -6375,7 +6397,7 @@ var Card = function Card(props) {
|
|
|
6375
6397
|
})]
|
|
6376
6398
|
}, index);
|
|
6377
6399
|
}), maxNumber > dataList.length && !readonly && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6378
|
-
className:
|
|
6400
|
+
className: prefixCls + "-box " + prefixCls + "-btn",
|
|
6379
6401
|
onClick: onAdd,
|
|
6380
6402
|
children: children
|
|
6381
6403
|
})]
|
|
@@ -6457,6 +6479,7 @@ var FileList = function FileList(props) {
|
|
|
6457
6479
|
return openFileDialog(inputRef);
|
|
6458
6480
|
}, [inputRef]);
|
|
6459
6481
|
var onFileUpload = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
|
|
6482
|
+
if (inputRef.current) inputRef.current.value = '';
|
|
6460
6483
|
handleClickInput();
|
|
6461
6484
|
}, [handleClickInput]);
|
|
6462
6485
|
|
|
@@ -6509,7 +6532,7 @@ var FileList = function FileList(props) {
|
|
|
6509
6532
|
|
|
6510
6533
|
updatedList.splice(index, 1);
|
|
6511
6534
|
setFileList(updatedList);
|
|
6512
|
-
onChange == null ? void 0 : onChange(
|
|
6535
|
+
onChange == null ? void 0 : onChange(updatedList);
|
|
6513
6536
|
};
|
|
6514
6537
|
|
|
6515
6538
|
var Comp;
|
|
@@ -6789,7 +6812,8 @@ var isPromise = function isPromise(promise) {
|
|
|
6789
6812
|
return promise && typeof promise.then === 'function';
|
|
6790
6813
|
};
|
|
6791
6814
|
|
|
6792
|
-
function Form(_ref, ref
|
|
6815
|
+
function Form(_ref, ref //| React.RefObject<FormRefType>,
|
|
6816
|
+
) {
|
|
6793
6817
|
var _ref$prefixCls = _ref.prefixCls,
|
|
6794
6818
|
prefixCls = _ref$prefixCls === void 0 ? 'w-form' : _ref$prefixCls,
|
|
6795
6819
|
className = _ref.className,
|
|
@@ -6802,20 +6826,36 @@ function Form(_ref, ref) {
|
|
|
6802
6826
|
afterSubmit = _ref.afterSubmit,
|
|
6803
6827
|
others = _objectWithoutPropertiesLoose(_ref, Form_excluded);
|
|
6804
6828
|
|
|
6805
|
-
var initData =
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6829
|
+
var initData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
6830
|
+
return newFormState(fields, function (_ref2) {
|
|
6831
|
+
var initialValue = _ref2.initialValue;
|
|
6832
|
+
initialValue = newInitialValue(initialValue);
|
|
6833
|
+
return {
|
|
6834
|
+
initialValue: initialValue,
|
|
6835
|
+
currentValue: initialValue
|
|
6836
|
+
};
|
|
6837
|
+
});
|
|
6838
|
+
}, []);
|
|
6813
6839
|
|
|
6814
|
-
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(initData),
|
|
6840
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(JSON.parse(JSON.stringify(initData))),
|
|
6815
6841
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6816
6842
|
data = _useState2[0],
|
|
6817
|
-
|
|
6843
|
+
setDatas = _useState2[1];
|
|
6844
|
+
|
|
6845
|
+
var setData = function setData(values) {
|
|
6846
|
+
// 解决value为数组时不进行深拷贝,initvalue无法重置问题
|
|
6847
|
+
setDatas(JSON.parse(JSON.stringify(values)));
|
|
6848
|
+
};
|
|
6818
6849
|
|
|
6850
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(ref, function () {
|
|
6851
|
+
return {
|
|
6852
|
+
onSubmit: handleSubmit,
|
|
6853
|
+
resetForm: handleReset,
|
|
6854
|
+
getFieldValues: function getFieldValues() {
|
|
6855
|
+
return data.current;
|
|
6856
|
+
}
|
|
6857
|
+
};
|
|
6858
|
+
}, [data]);
|
|
6819
6859
|
var formUnits = {};
|
|
6820
6860
|
|
|
6821
6861
|
for (var name in fields) {
|
|
@@ -6915,12 +6955,12 @@ function Form(_ref, ref) {
|
|
|
6915
6955
|
};
|
|
6916
6956
|
|
|
6917
6957
|
try {
|
|
6918
|
-
var afterSubmitPromise = onSubmit({
|
|
6958
|
+
var afterSubmitPromise = onSubmit ? onSubmit({
|
|
6919
6959
|
initial: initial,
|
|
6920
6960
|
current: current
|
|
6921
|
-
});
|
|
6961
|
+
}, e) : undefined;
|
|
6922
6962
|
|
|
6923
|
-
if (isPromise(afterSubmitPromise)) {
|
|
6963
|
+
if (afterSubmitPromise && isPromise(afterSubmitPromise)) {
|
|
6924
6964
|
return afterSubmitPromise.then(onSuccess).catch(onError);
|
|
6925
6965
|
} else {
|
|
6926
6966
|
return onSuccess(afterSubmitPromise);
|
|
@@ -6980,10 +7020,10 @@ function Form(_ref, ref) {
|
|
|
6980
7020
|
props.id = element.props.id;
|
|
6981
7021
|
props.value = hasCurrentValue ? data.current && data.current[name] : props.value; // : element.props.value;
|
|
6982
7022
|
|
|
6983
|
-
var type = element.props.type;
|
|
7023
|
+
var type = element.props.type; // console.log('type', element)
|
|
6984
7024
|
|
|
6985
|
-
if (type === 'checkbox' || type === 'switch') {
|
|
6986
|
-
props.checked = !!props.
|
|
7025
|
+
if (type === 'checkbox' || type === 'switch' || typeof props.value === 'boolean') {
|
|
7026
|
+
props.checked = !!props.value;
|
|
6987
7027
|
delete props.value;
|
|
6988
7028
|
}
|
|
6989
7029
|
|
|
@@ -8296,6 +8336,52 @@ function NotificationCreate(props, type) {
|
|
|
8296
8336
|
};
|
|
8297
8337
|
});
|
|
8298
8338
|
/* harmony default export */ var react_notify_esm = (NotificationCreate);
|
|
8339
|
+
;// CONCATENATED MODULE: ../react-select/esm/Option.js
|
|
8340
|
+
|
|
8341
|
+
|
|
8342
|
+
|
|
8343
|
+
/* harmony default export */ var Option = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
8344
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("option", _extends({}, props, {
|
|
8345
|
+
ref: ref
|
|
8346
|
+
}));
|
|
8347
|
+
}));
|
|
8348
|
+
;// CONCATENATED MODULE: ../react-select/esm/Group.js
|
|
8349
|
+
|
|
8350
|
+
|
|
8351
|
+
|
|
8352
|
+
/* harmony default export */ var Group = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
8353
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("optgroup", _extends({}, props, {
|
|
8354
|
+
ref: ref
|
|
8355
|
+
}));
|
|
8356
|
+
}));
|
|
8357
|
+
;// CONCATENATED MODULE: ../react-select/esm/style/index.css
|
|
8358
|
+
// extracted by mini-css-extract-plugin
|
|
8359
|
+
/* harmony default export */ var react_select_esm_style = ({});
|
|
8360
|
+
;// CONCATENATED MODULE: ../react-select/esm/index.js
|
|
8361
|
+
|
|
8362
|
+
|
|
8363
|
+
var react_select_esm_excluded = ["prefixCls", "className", "size"];
|
|
8364
|
+
|
|
8365
|
+
|
|
8366
|
+
|
|
8367
|
+
|
|
8368
|
+
|
|
8369
|
+
var Select = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
8370
|
+
var _props$prefixCls = props.prefixCls,
|
|
8371
|
+
prefixCls = _props$prefixCls === void 0 ? 'w-select' : _props$prefixCls,
|
|
8372
|
+
className = props.className,
|
|
8373
|
+
_props$size = props.size,
|
|
8374
|
+
size = _props$size === void 0 ? 'default' : _props$size,
|
|
8375
|
+
other = _objectWithoutPropertiesLoose(props, react_select_esm_excluded);
|
|
8376
|
+
|
|
8377
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("select", _extends({}, other, {
|
|
8378
|
+
ref: ref,
|
|
8379
|
+
className: [prefixCls, className, size ? prefixCls + "-" + size : null].filter(Boolean).join(' ').trim()
|
|
8380
|
+
}));
|
|
8381
|
+
});
|
|
8382
|
+
Select.Option = Option;
|
|
8383
|
+
Select.Group = Group;
|
|
8384
|
+
/* harmony default export */ var react_select_esm = (Select);
|
|
8299
8385
|
;// CONCATENATED MODULE: ../react-pagination/esm/style/index.css
|
|
8300
8386
|
// extracted by mini-css-extract-plugin
|
|
8301
8387
|
/* harmony default export */ var react_pagination_esm_style = ({});
|
|
@@ -8303,7 +8389,9 @@ function NotificationCreate(props, type) {
|
|
|
8303
8389
|
|
|
8304
8390
|
|
|
8305
8391
|
|
|
8306
|
-
var react_pagination_esm_excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"];
|
|
8392
|
+
var react_pagination_esm_excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "pageSizeOptions", "current", "onChange", "onShowSizeChange", "divider"];
|
|
8393
|
+
|
|
8394
|
+
|
|
8307
8395
|
|
|
8308
8396
|
|
|
8309
8397
|
|
|
@@ -8320,12 +8408,15 @@ function Pagination(props) {
|
|
|
8320
8408
|
total = _props$total === void 0 ? 0 : _props$total,
|
|
8321
8409
|
_props$pageSize = props.pageSize,
|
|
8322
8410
|
pageSize = _props$pageSize === void 0 ? 10 : _props$pageSize,
|
|
8411
|
+
_props$pageSizeOption = props.pageSizeOptions,
|
|
8412
|
+
pageSizeOptions = _props$pageSizeOption === void 0 ? [] : _props$pageSizeOption,
|
|
8323
8413
|
_props$current = props.current,
|
|
8324
8414
|
currentNumber = _props$current === void 0 ? 1 : _props$current,
|
|
8325
8415
|
_props$onChange = props.onChange,
|
|
8326
8416
|
onChange = _props$onChange === void 0 ? function () {
|
|
8327
8417
|
return null;
|
|
8328
8418
|
} : _props$onChange,
|
|
8419
|
+
onShowSizeChange = props.onShowSizeChange,
|
|
8329
8420
|
divider = props.divider,
|
|
8330
8421
|
other = _objectWithoutPropertiesLoose(props, react_pagination_esm_excluded);
|
|
8331
8422
|
|
|
@@ -8453,13 +8544,20 @@ function Pagination(props) {
|
|
|
8453
8544
|
onChange && onChange(state.current, total, pageSize);
|
|
8454
8545
|
}
|
|
8455
8546
|
|
|
8456
|
-
|
|
8547
|
+
var onSizeChange = function onSizeChange(e) {
|
|
8548
|
+
var sizeCount = Number(e.target.value);
|
|
8549
|
+
var count = Math.ceil(total / sizeCount);
|
|
8550
|
+
var newCurrent = current > count ? count : current;
|
|
8551
|
+
onShowSizeChange && onShowSizeChange(newCurrent, sizeCount);
|
|
8552
|
+
};
|
|
8553
|
+
|
|
8554
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", _extends({
|
|
8457
8555
|
className: cls,
|
|
8458
8556
|
style: _extends({}, style, {
|
|
8459
8557
|
textAlign: alignment
|
|
8460
8558
|
})
|
|
8461
8559
|
}, other, {
|
|
8462
|
-
children: initPageSoure.map(function (item, idx) {
|
|
8560
|
+
children: [initPageSoure.map(function (item, idx) {
|
|
8463
8561
|
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
8464
8562
|
var label = /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
8465
8563
|
children: item.label
|
|
@@ -8479,7 +8577,20 @@ function Pagination(props) {
|
|
|
8479
8577
|
},
|
|
8480
8578
|
children: label
|
|
8481
8579
|
}, idx);
|
|
8482
|
-
})
|
|
8580
|
+
}), pageSizeOptions.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
8581
|
+
className: prefixCls + "-options",
|
|
8582
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_select_esm, {
|
|
8583
|
+
size: size,
|
|
8584
|
+
defaultValue: pageSize,
|
|
8585
|
+
onChange: onSizeChange,
|
|
8586
|
+
children: pageSizeOptions.map(function (item, index) {
|
|
8587
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(react_select_esm.Option, {
|
|
8588
|
+
value: item,
|
|
8589
|
+
children: [item, "\u6761/\u9875"]
|
|
8590
|
+
}, index);
|
|
8591
|
+
})
|
|
8592
|
+
})
|
|
8593
|
+
})]
|
|
8483
8594
|
}));
|
|
8484
8595
|
}
|
|
8485
8596
|
;// CONCATENATED MODULE: ../react-pin-code/esm/style/input.css
|
|
@@ -9203,52 +9314,6 @@ function SearchSelect(props) {
|
|
|
9203
9314
|
})
|
|
9204
9315
|
}));
|
|
9205
9316
|
}
|
|
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
9317
|
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-split/esm/style/index.css
|
|
9253
9318
|
// extracted by mini-css-extract-plugin
|
|
9254
9319
|
/* harmony default export */ var react_split_esm_style = ({});
|