uiw 4.9.10 → 4.10.2
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/LICENSE +21 -0
- package/dist/uiw.js +84 -124
- package/dist/uiw.min.js +1 -1
- package/dist/uiw.min.js.LICENSE.txt +0 -9
- package/package.json +58 -58
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-present, 小弟调调
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/uiw.js
CHANGED
|
@@ -202,6 +202,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
202
202
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
203
203
|
|
|
204
204
|
"use strict";
|
|
205
|
+
var __webpack_unused_export__;
|
|
205
206
|
/** @license React v17.0.2
|
|
206
207
|
* react-jsx-runtime.production.min.js
|
|
207
208
|
*
|
|
@@ -217,12 +218,12 @@ __webpack_require__(115);
|
|
|
217
218
|
var f = __webpack_require__(787),
|
|
218
219
|
g = 60103;
|
|
219
220
|
|
|
220
|
-
|
|
221
|
+
__webpack_unused_export__ = 60107;
|
|
221
222
|
|
|
222
223
|
if ("function" === typeof Symbol && Symbol.for) {
|
|
223
224
|
var h = Symbol.for;
|
|
224
225
|
g = h("react.element");
|
|
225
|
-
|
|
226
|
+
__webpack_unused_export__ = h("react.fragment");
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
@@ -1006,7 +1007,7 @@ try {
|
|
|
1006
1007
|
|
|
1007
1008
|
/***/ }),
|
|
1008
1009
|
|
|
1009
|
-
/***/
|
|
1010
|
+
/***/ 532:
|
|
1010
1011
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1011
1012
|
|
|
1012
1013
|
"use strict";
|
|
@@ -1050,8 +1051,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1050
1051
|
"Layout": function() { return /* reexport */ react_layout_esm; },
|
|
1051
1052
|
"LayoutContext": function() { return /* reexport */ LayoutContext; },
|
|
1052
1053
|
"List": function() { return /* reexport */ react_list_esm; },
|
|
1054
|
+
"ListItem": function() { return /* reexport */ ListItem; },
|
|
1053
1055
|
"Loader": function() { return /* reexport */ react_loader_esm; },
|
|
1054
1056
|
"Menu": function() { return /* reexport */ react_menu_esm; },
|
|
1057
|
+
"MenuDivider": function() { return /* reexport */ MenuDivider; },
|
|
1058
|
+
"MenuItem": function() { return /* reexport */ MenuItem; },
|
|
1055
1059
|
"Message": function() { return /* reexport */ Message; },
|
|
1056
1060
|
"Modal": function() { return /* reexport */ react_modal_esm; },
|
|
1057
1061
|
"MonthPicker": function() { return /* reexport */ MonthPicker; },
|
|
@@ -1073,6 +1077,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1073
1077
|
"Slider": function() { return /* reexport */ Slider; },
|
|
1074
1078
|
"Split": function() { return /* reexport */ Split; },
|
|
1075
1079
|
"Steps": function() { return /* reexport */ react_steps_esm; },
|
|
1080
|
+
"SubMenu": function() { return /* reexport */ SubMenu; },
|
|
1076
1081
|
"Switch": function() { return /* reexport */ react_switch_esm; },
|
|
1077
1082
|
"Table": function() { return /* reexport */ react_table_esm; },
|
|
1078
1083
|
"Tabs": function() { return /* reexport */ Tabs; },
|
|
@@ -1084,7 +1089,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1084
1089
|
"Tree": function() { return /* reexport */ Tree; },
|
|
1085
1090
|
"TreeChecked": function() { return /* reexport */ TreeChecked; },
|
|
1086
1091
|
"canUseDOM": function() { return /* reexport */ canUseDOM; },
|
|
1087
|
-
"formatter": function() { return /* reexport */
|
|
1092
|
+
"formatter": function() { return /* reexport */ formatter; },
|
|
1088
1093
|
"getChildKeys": function() { return /* reexport */ getChildKeys; },
|
|
1089
1094
|
"randomid": function() { return /* reexport */ randomid; }
|
|
1090
1095
|
});
|
|
@@ -1248,6 +1253,8 @@ function _extends() {
|
|
|
1248
1253
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
|
|
1249
1254
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(787);
|
|
1250
1255
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
|
|
1256
|
+
;// CONCATENATED MODULE: ../utils/esm/noop.js
|
|
1257
|
+
function noop() {}
|
|
1251
1258
|
;// CONCATENATED MODULE: ../utils/esm/getScroll.js
|
|
1252
1259
|
/**
|
|
1253
1260
|
* Gets the scroll value of the given element in the given side (top and left)
|
|
@@ -1273,32 +1280,16 @@ function getScroll(target, top) {
|
|
|
1273
1280
|
|
|
1274
1281
|
return ret;
|
|
1275
1282
|
}
|
|
1276
|
-
;// CONCATENATED MODULE: ../
|
|
1277
|
-
function noop() {}
|
|
1278
|
-
// EXTERNAL MODULE: ../../node_modules/react/jsx-runtime.js
|
|
1279
|
-
var jsx_runtime = __webpack_require__(770);
|
|
1280
|
-
;// CONCATENATED MODULE: ../react-affix/esm/index.js
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
var _excluded = ["prefixCls", "className", "children", "offsetTop", "offsetBottom", "target", "onChange"];
|
|
1289
|
-
|
|
1283
|
+
;// CONCATENATED MODULE: ../react-affix/esm/utils.js
|
|
1290
1284
|
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
function getTargetRect(target) {
|
|
1285
|
+
var getTargetRect = function getTargetRect(target) {
|
|
1294
1286
|
return target !== window ? target.getBoundingClientRect() : {
|
|
1295
1287
|
top: 0,
|
|
1296
1288
|
left: 0,
|
|
1297
1289
|
bottom: 0
|
|
1298
1290
|
};
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
function getOffset(element, target) {
|
|
1291
|
+
};
|
|
1292
|
+
var getOffset = function getOffset(element, target) {
|
|
1302
1293
|
var elemRect = element.getBoundingClientRect();
|
|
1303
1294
|
var targetRect = getTargetRect(target);
|
|
1304
1295
|
var scrollTop = getScroll(target, true);
|
|
@@ -1312,11 +1303,25 @@ function getOffset(element, target) {
|
|
|
1312
1303
|
width: elemRect.width,
|
|
1313
1304
|
height: elemRect.height
|
|
1314
1305
|
};
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
function getDefaultTarget() {
|
|
1306
|
+
};
|
|
1307
|
+
var getDefaultTarget = function getDefaultTarget() {
|
|
1318
1308
|
return typeof window !== 'undefined' ? window : null;
|
|
1319
|
-
}
|
|
1309
|
+
};
|
|
1310
|
+
// EXTERNAL MODULE: ../../node_modules/react/jsx-runtime.js
|
|
1311
|
+
var jsx_runtime = __webpack_require__(770);
|
|
1312
|
+
;// CONCATENATED MODULE: ../react-affix/esm/index.js
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
var _excluded = ["prefixCls", "className", "children", "offsetTop", "offsetBottom", "target", "onChange"];
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
|
|
1320
1325
|
|
|
1321
1326
|
var Affix = /*#__PURE__*/function (_React$Component) {
|
|
1322
1327
|
_inherits(Affix, _React$Component);
|
|
@@ -2638,9 +2643,7 @@ function Icon(props) {
|
|
|
2638
2643
|
className: [prefixCls, className, prefixCls && verticalAlign ? prefixCls + "-" + verticalAlign : null, spin && prefixCls ? prefixCls + "-spin" : null].filter(Boolean).join(' ').trim()
|
|
2639
2644
|
});
|
|
2640
2645
|
|
|
2641
|
-
return /*#__PURE__*/(
|
|
2642
|
-
children: svg
|
|
2643
|
-
}));
|
|
2646
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TagName, _extends({}, propps), svg);
|
|
2644
2647
|
}
|
|
2645
2648
|
;// CONCATENATED MODULE: ../react-button/esm/style/index.css
|
|
2646
2649
|
// extracted by mini-css-extract-plugin
|
|
@@ -3360,7 +3363,7 @@ var react_button_group_esm_excluded = ["prefixCls", "vertical", "children", "cla
|
|
|
3360
3363
|
}));
|
|
3361
3364
|
;// CONCATENATED MODULE: ../../node_modules/@uiw/formatter/esm/index.js
|
|
3362
3365
|
/**!
|
|
3363
|
-
* @uiw/formatter v1.3.
|
|
3366
|
+
* @uiw/formatter v1.3.2
|
|
3364
3367
|
* Get a formatted date.
|
|
3365
3368
|
*
|
|
3366
3369
|
* Copyright (c) 2022 Kenny Wang <wowohoo@qq.com>
|
|
@@ -3684,7 +3687,11 @@ function getStyle(options) {
|
|
|
3684
3687
|
usePortal = _ref.usePortal,
|
|
3685
3688
|
autoAdjustOverflow = _ref.autoAdjustOverflow;
|
|
3686
3689
|
|
|
3687
|
-
var sty = {
|
|
3690
|
+
var sty = {
|
|
3691
|
+
left: 0,
|
|
3692
|
+
top: 0,
|
|
3693
|
+
placement: placement
|
|
3694
|
+
};
|
|
3688
3695
|
|
|
3689
3696
|
if (!triggerDom || !popupDom || !document) {
|
|
3690
3697
|
return sty;
|
|
@@ -3952,10 +3959,12 @@ var normalizeDelay = function normalizeDelay(delay) {
|
|
|
3952
3959
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
3953
3960
|
if (isClickOutside) {
|
|
3954
3961
|
document && document.addEventListener('mousedown', handleClickOutside);
|
|
3962
|
+
window.addEventListener('resize', handleResize);
|
|
3955
3963
|
}
|
|
3956
3964
|
|
|
3957
3965
|
return function () {
|
|
3958
3966
|
document && isClickOutside && document.removeEventListener('mousedown', handleClickOutside);
|
|
3967
|
+
window.removeEventListener('resize', handleResize);
|
|
3959
3968
|
};
|
|
3960
3969
|
}, []);
|
|
3961
3970
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
@@ -3977,6 +3986,12 @@ var normalizeDelay = function normalizeDelay(delay) {
|
|
|
3977
3986
|
onVisibleChange(isOpen);
|
|
3978
3987
|
}, [isOpen]);
|
|
3979
3988
|
|
|
3989
|
+
var handleResize = function handleResize() {
|
|
3990
|
+
zIndex.current -= 1;
|
|
3991
|
+
setIsOpen(false);
|
|
3992
|
+
onVisibleChange && onVisibleChange(false);
|
|
3993
|
+
};
|
|
3994
|
+
|
|
3980
3995
|
var handleClickOutside = function handleClickOutside(e) {
|
|
3981
3996
|
var popNode = popupRef.current;
|
|
3982
3997
|
var childNode = triggerRef.current;
|
|
@@ -6685,8 +6700,7 @@ var esm_Item_excluded = ["prefixCls", "className", "children", "extra", "tagName
|
|
|
6685
6700
|
|
|
6686
6701
|
|
|
6687
6702
|
|
|
6688
|
-
|
|
6689
|
-
var Item_Item = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
6703
|
+
var ListItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
6690
6704
|
var _props$prefixCls = props.prefixCls,
|
|
6691
6705
|
prefixCls = _props$prefixCls === void 0 ? 'w-list-item' : _props$prefixCls,
|
|
6692
6706
|
className = props.className,
|
|
@@ -6703,20 +6717,17 @@ var Item_Item = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
6703
6717
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TagName, _extends({}, resetProps, {
|
|
6704
6718
|
className: cls,
|
|
6705
6719
|
ref: ref
|
|
6706
|
-
}), /*#__PURE__*/(0,jsx_runtime.
|
|
6707
|
-
children:
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
})]
|
|
6715
|
-
})
|
|
6720
|
+
}), !extra || resetProps.href ? children : /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
|
|
6721
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6722
|
+
className: prefixCls + "-main",
|
|
6723
|
+
children: children
|
|
6724
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6725
|
+
className: prefixCls + "-extra",
|
|
6726
|
+
children: extra
|
|
6727
|
+
})]
|
|
6716
6728
|
}));
|
|
6717
6729
|
});
|
|
6718
|
-
|
|
6719
|
-
/* harmony default export */ var esm_Item = (Item_Item);
|
|
6730
|
+
ListItem.displayName = 'List.Item';
|
|
6720
6731
|
;// CONCATENATED MODULE: ../react-list/esm/style/index.css
|
|
6721
6732
|
// extracted by mini-css-extract-plugin
|
|
6722
6733
|
/* harmony default export */ var react_list_esm_style = ({});
|
|
@@ -6786,7 +6797,7 @@ function InternalList(props, ref) {
|
|
|
6786
6797
|
}
|
|
6787
6798
|
|
|
6788
6799
|
var List = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalList);
|
|
6789
|
-
List.Item =
|
|
6800
|
+
List.Item = ListItem;
|
|
6790
6801
|
/* harmony default export */ var react_list_esm = (List);
|
|
6791
6802
|
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Layout.js
|
|
6792
6803
|
|
|
@@ -7151,7 +7162,8 @@ var disabledProps = {
|
|
|
7151
7162
|
onMouseLeave: undefined,
|
|
7152
7163
|
tabIndex: -1
|
|
7153
7164
|
};
|
|
7154
|
-
|
|
7165
|
+
|
|
7166
|
+
function Internal(props, ref) {
|
|
7155
7167
|
var _props$prefixCls = props.prefixCls,
|
|
7156
7168
|
prefixCls = _props$prefixCls === void 0 ? 'w-menu-item' : _props$prefixCls,
|
|
7157
7169
|
className = props.className,
|
|
@@ -7190,47 +7202,42 @@ var MenuItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
7190
7202
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
7191
7203
|
children: [" ", tagComp, " "]
|
|
7192
7204
|
});
|
|
7193
|
-
}
|
|
7205
|
+
}
|
|
7206
|
+
|
|
7207
|
+
var MenuItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Internal);
|
|
7194
7208
|
MenuItem.displayName = 'uiw.MenuItem';
|
|
7195
|
-
/* harmony default export */ var esm_MenuItem = (MenuItem);
|
|
7196
7209
|
;// CONCATENATED MODULE: ../react-menu/esm/Divider.js
|
|
7197
7210
|
|
|
7198
7211
|
|
|
7199
7212
|
var Divider_excluded = ["prefixCls", "className", "title"];
|
|
7200
7213
|
|
|
7201
7214
|
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
if (props === void 0) {
|
|
7205
|
-
props = {};
|
|
7206
|
-
}
|
|
7207
|
-
|
|
7208
|
-
var _props = props,
|
|
7209
|
-
_props$prefixCls = _props.prefixCls,
|
|
7215
|
+
var MenuDivider = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
7216
|
+
var _props$prefixCls = props.prefixCls,
|
|
7210
7217
|
prefixCls = _props$prefixCls === void 0 ? 'w-menu-divider' : _props$prefixCls,
|
|
7211
|
-
className =
|
|
7212
|
-
title =
|
|
7218
|
+
className = props.className,
|
|
7219
|
+
title = props.title,
|
|
7213
7220
|
htmlProps = _objectWithoutPropertiesLoose(props, Divider_excluded);
|
|
7214
7221
|
|
|
7215
7222
|
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
7216
7223
|
|
|
7217
7224
|
if (!title) {
|
|
7218
7225
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
7226
|
+
ref: ref,
|
|
7219
7227
|
className: cls
|
|
7220
7228
|
}));
|
|
7221
7229
|
}
|
|
7222
7230
|
|
|
7223
7231
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
7232
|
+
ref: ref,
|
|
7224
7233
|
className: cls,
|
|
7225
7234
|
"data-menu": "divider",
|
|
7226
7235
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
7227
7236
|
children: title
|
|
7228
7237
|
})
|
|
7229
7238
|
}));
|
|
7230
|
-
}
|
|
7231
|
-
|
|
7232
|
-
Divider.displayName = 'uiw.MenuDivider';
|
|
7233
|
-
/* harmony default export */ var esm_Divider = (Divider);
|
|
7239
|
+
});
|
|
7240
|
+
MenuDivider.displayName = 'uiw.MenuDivider';
|
|
7234
7241
|
;// CONCATENATED MODULE: ../react-menu/esm/style/submenu.css
|
|
7235
7242
|
// extracted by mini-css-extract-plugin
|
|
7236
7243
|
/* harmony default export */ var submenu = ({});
|
|
@@ -7382,7 +7389,7 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
7382
7389
|
paddingLeft: inlineIndent
|
|
7383
7390
|
} : {}
|
|
7384
7391
|
})),
|
|
7385
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
7392
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
|
|
7386
7393
|
ref: null,
|
|
7387
7394
|
disabled: disabled,
|
|
7388
7395
|
isSubMenuItem: true,
|
|
@@ -7397,7 +7404,6 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
7397
7404
|
});
|
|
7398
7405
|
});
|
|
7399
7406
|
SubMenu.displayName = 'uiw.SubMenu';
|
|
7400
|
-
/* harmony default export */ var esm_SubMenu = (SubMenu);
|
|
7401
7407
|
;// CONCATENATED MODULE: ../react-menu/esm/style/menu.css
|
|
7402
7408
|
// extracted by mini-css-extract-plugin
|
|
7403
7409
|
/* harmony default export */ var menu = ({});
|
|
@@ -7435,7 +7441,7 @@ var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
7435
7441
|
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) return child;
|
|
7436
7442
|
var props = {}; // Sub Menu
|
|
7437
7443
|
|
|
7438
|
-
if (child.props.children && child.type ===
|
|
7444
|
+
if (child.props.children && child.type === SubMenu) {
|
|
7439
7445
|
props.inlineIndent = inlineIndent;
|
|
7440
7446
|
}
|
|
7441
7447
|
|
|
@@ -7445,10 +7451,10 @@ var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
7445
7451
|
})
|
|
7446
7452
|
}));
|
|
7447
7453
|
});
|
|
7448
|
-
Menu.Item = esm_MenuItem;
|
|
7449
|
-
Menu.SubMenu = esm_SubMenu;
|
|
7450
|
-
Menu.Divider = esm_Divider;
|
|
7451
7454
|
Menu.displayName = 'uiw.Menu';
|
|
7455
|
+
Menu.Item = MenuItem;
|
|
7456
|
+
Menu.SubMenu = SubMenu;
|
|
7457
|
+
Menu.Divider = MenuDivider;
|
|
7452
7458
|
/* harmony default export */ var esm_Menu = (Menu);
|
|
7453
7459
|
;// CONCATENATED MODULE: ../react-menu/esm/index.js
|
|
7454
7460
|
|
|
@@ -7976,12 +7982,13 @@ function NotificationCreate(props, type) {
|
|
|
7976
7982
|
|
|
7977
7983
|
|
|
7978
7984
|
|
|
7979
|
-
var react_pagination_esm_excluded = ["className", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"];
|
|
7985
|
+
var react_pagination_esm_excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"];
|
|
7980
7986
|
|
|
7981
7987
|
|
|
7982
7988
|
|
|
7983
7989
|
function Pagination(props) {
|
|
7984
7990
|
var className = props.className,
|
|
7991
|
+
style = props.style,
|
|
7985
7992
|
_props$prefixCls = props.prefixCls,
|
|
7986
7993
|
prefixCls = _props$prefixCls === void 0 ? 'w-pagination' : _props$prefixCls,
|
|
7987
7994
|
_props$alignment = props.alignment,
|
|
@@ -8126,7 +8133,10 @@ function Pagination(props) {
|
|
|
8126
8133
|
}
|
|
8127
8134
|
|
|
8128
8135
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", _extends({
|
|
8129
|
-
className: cls
|
|
8136
|
+
className: cls,
|
|
8137
|
+
style: _extends({}, style, {
|
|
8138
|
+
textAlign: alignment
|
|
8139
|
+
})
|
|
8130
8140
|
}, other, {
|
|
8131
8141
|
children: initPageSoure.map(function (item, idx) {
|
|
8132
8142
|
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
@@ -10728,56 +10738,6 @@ function TreeChecked(_ref) {
|
|
|
10728
10738
|
}
|
|
10729
10739
|
}, props));
|
|
10730
10740
|
}
|
|
10731
|
-
;// CONCATENATED MODULE: ./node_modules/@uiw/formatter/esm/index.js
|
|
10732
|
-
/**!
|
|
10733
|
-
* @uiw/formatter v1.3.1
|
|
10734
|
-
* Get a formatted date.
|
|
10735
|
-
*
|
|
10736
|
-
* Copyright (c) 2022 Kenny Wang <wowohoo@qq.com>
|
|
10737
|
-
* https://github.com/uiwjs/date-formatter.git
|
|
10738
|
-
* Licensed under the MIT license
|
|
10739
|
-
*/
|
|
10740
|
-
var esm_dateRegex = /(?=(YYYY|YY|MM|DD|HH|mm|ss|ms))\1([:/]*)/g;
|
|
10741
|
-
var esm_timespan = {
|
|
10742
|
-
YYYY: ['getFullYear', 4],
|
|
10743
|
-
YY: ['getFullYear', 2],
|
|
10744
|
-
MM: ['getMonth', 2, 1],
|
|
10745
|
-
DD: ['getDate', 2],
|
|
10746
|
-
HH: ['getHours', 2],
|
|
10747
|
-
mm: ['getMinutes', 2],
|
|
10748
|
-
ss: ['getSeconds', 2],
|
|
10749
|
-
ms: ['getMilliseconds', 3]
|
|
10750
|
-
};
|
|
10751
|
-
|
|
10752
|
-
function esm_formatter(str, date, utc) {
|
|
10753
|
-
if (typeof str !== 'string') {
|
|
10754
|
-
date = str;
|
|
10755
|
-
str = 'YYYY-MM-DD';
|
|
10756
|
-
}
|
|
10757
|
-
|
|
10758
|
-
return str.replace(esm_dateRegex, function (match, key, rest) {
|
|
10759
|
-
var args = esm_timespan[key];
|
|
10760
|
-
var chars = args[1];
|
|
10761
|
-
var name = args[0];
|
|
10762
|
-
|
|
10763
|
-
if (utc === true) {
|
|
10764
|
-
name = "getUTC".concat(name.slice(3));
|
|
10765
|
-
}
|
|
10766
|
-
|
|
10767
|
-
if (!date) {
|
|
10768
|
-
date = new Date();
|
|
10769
|
-
}
|
|
10770
|
-
|
|
10771
|
-
var val = "00".concat(String(date[name]() + (args[2] || 0)));
|
|
10772
|
-
return val.slice(-chars) + (rest || '');
|
|
10773
|
-
});
|
|
10774
|
-
}
|
|
10775
|
-
|
|
10776
|
-
esm_formatter.utc = function (str, date) {
|
|
10777
|
-
return esm_formatter(str, date, true);
|
|
10778
|
-
};
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
10741
|
;// CONCATENATED MODULE: ./esm/index.js
|
|
10782
10742
|
|
|
10783
10743
|
|
|
@@ -10981,7 +10941,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
|
|
|
10981
10941
|
/******/ // startup
|
|
10982
10942
|
/******/ // Load entry module and return exports
|
|
10983
10943
|
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
|
|
10984
|
-
/******/ var __webpack_exports__ = __webpack_require__(
|
|
10944
|
+
/******/ var __webpack_exports__ = __webpack_require__(532);
|
|
10985
10945
|
/******/
|
|
10986
10946
|
/******/ return __webpack_exports__;
|
|
10987
10947
|
/******/ })()
|