uiw 4.18.1 → 4.21.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.css +18 -5
- package/dist/uiw.js +312 -57
- package/dist/uiw.min.css +1 -1
- package/dist/uiw.min.js +1 -1
- package/package.json +60 -60
package/dist/uiw.js
CHANGED
|
@@ -325,6 +325,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
325
325
|
"Cascader": () => (/* reexport */ react_cascader_esm),
|
|
326
326
|
"Checkbox": () => (/* reexport */ react_checkbox_esm),
|
|
327
327
|
"CheckboxGroup": () => (/* reexport */ CheckboxGroup),
|
|
328
|
+
"Circle": () => (/* reexport */ Circle),
|
|
328
329
|
"Col": () => (/* reexport */ Col),
|
|
329
330
|
"Collapse": () => (/* reexport */ react_collapse_esm),
|
|
330
331
|
"CopyToClipboard": () => (/* reexport */ CopyToClipboard),
|
|
@@ -346,12 +347,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
346
347
|
"FormItem": () => (/* reexport */ FormItem),
|
|
347
348
|
"Icon": () => (/* reexport */ Icon),
|
|
348
349
|
"Input": () => (/* reexport */ react_input_esm),
|
|
350
|
+
"InputNumber": () => (/* reexport */ InputNumber),
|
|
349
351
|
"Layout": () => (/* reexport */ react_layout_esm),
|
|
350
352
|
"LayoutContent": () => (/* reexport */ LayoutContent),
|
|
351
353
|
"LayoutContext": () => (/* reexport */ LayoutContext),
|
|
352
354
|
"LayoutFooter": () => (/* reexport */ LayoutFooter),
|
|
353
355
|
"LayoutHeader": () => (/* reexport */ LayoutHeader),
|
|
354
356
|
"LayoutSider": () => (/* reexport */ LayoutSider),
|
|
357
|
+
"Line": () => (/* reexport */ Line),
|
|
355
358
|
"List": () => (/* reexport */ react_list_esm),
|
|
356
359
|
"ListItem": () => (/* reexport */ ListItem),
|
|
357
360
|
"Loader": () => (/* reexport */ react_loader_esm),
|
|
@@ -369,10 +372,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
369
372
|
"Popover": () => (/* reexport */ Popover),
|
|
370
373
|
"Portal": () => (/* reexport */ Portal),
|
|
371
374
|
"Progress": () => (/* reexport */ react_progress_esm),
|
|
372
|
-
"Radio": () => (/* reexport */
|
|
375
|
+
"Radio": () => (/* reexport */ esm_Radio),
|
|
373
376
|
"RadioAbstract": () => (/* reexport */ RadioAbstract),
|
|
374
377
|
"RadioButton": () => (/* reexport */ esm_RadioButton),
|
|
375
|
-
"RadioGroup": () => (/* reexport */
|
|
378
|
+
"RadioGroup": () => (/* reexport */ esm_RadioGroup),
|
|
376
379
|
"Rate": () => (/* reexport */ Rate),
|
|
377
380
|
"Row": () => (/* reexport */ Row_Row),
|
|
378
381
|
"SearchSelect": () => (/* reexport */ SearchSelect),
|
|
@@ -1516,7 +1519,7 @@ function Portal(props) {
|
|
|
1516
1519
|
;// CONCATENATED MODULE: ../react-overlay/esm/index.js
|
|
1517
1520
|
|
|
1518
1521
|
|
|
1519
|
-
var esm_excluded = ["className", "style", "isOpen", "prefixCls", "usePortal", "maskClosable", "backdropProps", "portalProps", "hasBackdrop", "unmountOnExit", "timeout", "transitionName", "onOpening", "onOpened", "onClosing", "onClosed", "onClose", "children", "dialogProps"];
|
|
1522
|
+
var esm_excluded = ["className", "style", "isOpen", "prefixCls", "usePortal", "maskClosable", "backdropProps", "portalProps", "hasBackdrop", "unmountOnExit", "timeout", "transitionName", "onOpening", "onOpened", "onClosing", "onClosed", "onClose", "onEnter", "children", "dialogProps"];
|
|
1520
1523
|
|
|
1521
1524
|
/**
|
|
1522
1525
|
* Overlay 组件
|
|
@@ -1557,12 +1560,14 @@ function Overlay(props) {
|
|
|
1557
1560
|
onClosing = noop,
|
|
1558
1561
|
onClosed = noop,
|
|
1559
1562
|
onClose = noop,
|
|
1563
|
+
onEnter: _onEnter = noop,
|
|
1560
1564
|
children,
|
|
1561
1565
|
dialogProps = {}
|
|
1562
1566
|
} = props,
|
|
1563
1567
|
otherProps = _objectWithoutPropertiesLoose(props, esm_excluded);
|
|
1564
1568
|
|
|
1565
|
-
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.isOpen || false);
|
|
1569
|
+
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(); // const [isOpen, setIsOpen] = useState(props.isOpen || false);
|
|
1570
|
+
|
|
1566
1571
|
var [visible, setVisible] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
1567
1572
|
var container = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
1568
1573
|
var overlay = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
@@ -1630,10 +1635,22 @@ function Overlay(props) {
|
|
|
1630
1635
|
unmountOnExit: unmountOnExit,
|
|
1631
1636
|
timeout: timeout,
|
|
1632
1637
|
in: isOpen,
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1638
|
+
onEnter: (_, isAppearing) => {
|
|
1639
|
+
_onEnter(overlay.current, isAppearing);
|
|
1640
|
+
},
|
|
1641
|
+
onEntering: (_, isAppearing) => {
|
|
1642
|
+
onOpening(overlay.current, isAppearing);
|
|
1643
|
+
},
|
|
1644
|
+
onEntered: (_, isAppearing) => {
|
|
1645
|
+
onOpened(overlay.current, isAppearing);
|
|
1646
|
+
},
|
|
1647
|
+
onExiting: () => {
|
|
1648
|
+
onClosing(overlay.current);
|
|
1649
|
+
},
|
|
1650
|
+
onExited: () => {
|
|
1651
|
+
handleClosed(overlay.current);
|
|
1652
|
+
},
|
|
1653
|
+
nodeRef: overlay
|
|
1637
1654
|
}, otherProps, {
|
|
1638
1655
|
children: status => {
|
|
1639
1656
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -1772,6 +1789,34 @@ var react_button_esm_excluded = ["prefixCls", "disabled", "active", "loading", "
|
|
|
1772
1789
|
;// CONCATENATED MODULE: ../react-modal/esm/style/index.css
|
|
1773
1790
|
// extracted by mini-css-extract-plugin
|
|
1774
1791
|
/* harmony default export */ const react_modal_esm_style = ({});
|
|
1792
|
+
;// CONCATENATED MODULE: ../react-modal/esm/CallShow.js
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
var CallShow_excluded = ["title", "children"];
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
function CallShow(props) {
|
|
1801
|
+
var {
|
|
1802
|
+
title = '提示框',
|
|
1803
|
+
children
|
|
1804
|
+
} = props,
|
|
1805
|
+
other = _objectWithoutPropertiesLoose(props, CallShow_excluded);
|
|
1806
|
+
|
|
1807
|
+
var dv = document.createElement('div');
|
|
1808
|
+
dv.id = 'uiw-modal-call-show-element';
|
|
1809
|
+
document.body.appendChild(dv);
|
|
1810
|
+
external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().render( /*#__PURE__*/(0,jsx_runtime.jsx)(react_modal_esm, _extends({}, other, {
|
|
1811
|
+
title: title,
|
|
1812
|
+
isOpen: true,
|
|
1813
|
+
onClosed: () => {
|
|
1814
|
+
dv.remove();
|
|
1815
|
+
},
|
|
1816
|
+
children: children
|
|
1817
|
+
})), dv);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1775
1820
|
;// CONCATENATED MODULE: ../react-modal/esm/index.js
|
|
1776
1821
|
|
|
1777
1822
|
|
|
@@ -1785,7 +1830,8 @@ var react_modal_esm_excluded = ["prefixCls", "className", "children", "useButton
|
|
|
1785
1830
|
|
|
1786
1831
|
|
|
1787
1832
|
|
|
1788
|
-
|
|
1833
|
+
|
|
1834
|
+
var Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
1789
1835
|
var {
|
|
1790
1836
|
prefixCls = 'w-modal',
|
|
1791
1837
|
className,
|
|
@@ -1910,7 +1956,9 @@ var react_modal_esm_excluded = ["prefixCls", "className", "children", "useButton
|
|
|
1910
1956
|
})
|
|
1911
1957
|
})
|
|
1912
1958
|
}));
|
|
1913
|
-
})
|
|
1959
|
+
});
|
|
1960
|
+
Modal.show = CallShow;
|
|
1961
|
+
/* harmony default export */ const react_modal_esm = (Modal);
|
|
1914
1962
|
|
|
1915
1963
|
;// CONCATENATED MODULE: ../react-alert/esm/style/index.css
|
|
1916
1964
|
// extracted by mini-css-extract-plugin
|
|
@@ -2302,6 +2350,7 @@ var Breadcrumb = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
2302
2350
|
Breadcrumb.Item = Item;
|
|
2303
2351
|
/* harmony default export */ const esm_Breadcrumb = (Breadcrumb);
|
|
2304
2352
|
|
|
2353
|
+
|
|
2305
2354
|
;// CONCATENATED MODULE: ../react-breadcrumb/esm/index.js
|
|
2306
2355
|
|
|
2307
2356
|
|
|
@@ -3045,6 +3094,88 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
3045
3094
|
;// CONCATENATED MODULE: ../react-popover/esm/style/index.css
|
|
3046
3095
|
// extracted by mini-css-extract-plugin
|
|
3047
3096
|
/* harmony default export */ const react_popover_esm_style = ({});
|
|
3097
|
+
;// CONCATENATED MODULE: ../react-popover/esm/Confirm.js
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
|
|
3102
|
+
|
|
3103
|
+
|
|
3104
|
+
|
|
3105
|
+
function Confirm(props) {
|
|
3106
|
+
var {
|
|
3107
|
+
trigger = 'click',
|
|
3108
|
+
placement = 'top',
|
|
3109
|
+
confirmText = 'Yes',
|
|
3110
|
+
title,
|
|
3111
|
+
cancelText = 'No',
|
|
3112
|
+
visibleArrow,
|
|
3113
|
+
children,
|
|
3114
|
+
onConfirm
|
|
3115
|
+
} = props;
|
|
3116
|
+
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
3117
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Popover, {
|
|
3118
|
+
isOpen: isOpen,
|
|
3119
|
+
visibleArrow: visibleArrow,
|
|
3120
|
+
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
3121
|
+
style: {
|
|
3122
|
+
padding: '12px 16px',
|
|
3123
|
+
position: 'relative'
|
|
3124
|
+
},
|
|
3125
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
3126
|
+
type: "information",
|
|
3127
|
+
style: {
|
|
3128
|
+
position: 'absolute',
|
|
3129
|
+
top: 13.5,
|
|
3130
|
+
fontSize: 14,
|
|
3131
|
+
transform: 'rotate(180deg)',
|
|
3132
|
+
color: '#faad14'
|
|
3133
|
+
}
|
|
3134
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
3135
|
+
style: {
|
|
3136
|
+
paddingLeft: 20
|
|
3137
|
+
},
|
|
3138
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
3139
|
+
style: {
|
|
3140
|
+
fontSize: 14
|
|
3141
|
+
},
|
|
3142
|
+
children: title
|
|
3143
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
3144
|
+
style: {
|
|
3145
|
+
position: 'relative',
|
|
3146
|
+
bottom: 0,
|
|
3147
|
+
marginTop: 12,
|
|
3148
|
+
display: 'flex',
|
|
3149
|
+
justifyContent: 'end'
|
|
3150
|
+
},
|
|
3151
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(esm, {
|
|
3152
|
+
size: "small",
|
|
3153
|
+
onClick: () => setIsOpen(false),
|
|
3154
|
+
children: cancelText
|
|
3155
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(esm, {
|
|
3156
|
+
size: "small",
|
|
3157
|
+
type: "primary",
|
|
3158
|
+
style: {
|
|
3159
|
+
marginLeft: 10
|
|
3160
|
+
},
|
|
3161
|
+
onClick: () => {
|
|
3162
|
+
onConfirm == null ? void 0 : onConfirm();
|
|
3163
|
+
setIsOpen(false);
|
|
3164
|
+
},
|
|
3165
|
+
children: confirmText
|
|
3166
|
+
})]
|
|
3167
|
+
})]
|
|
3168
|
+
})]
|
|
3169
|
+
}),
|
|
3170
|
+
trigger: trigger,
|
|
3171
|
+
placement: placement,
|
|
3172
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
3173
|
+
onClick: () => setIsOpen(true),
|
|
3174
|
+
children: children
|
|
3175
|
+
})
|
|
3176
|
+
});
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3048
3179
|
;// CONCATENATED MODULE: ../react-popover/esm/index.js
|
|
3049
3180
|
|
|
3050
3181
|
|
|
@@ -3054,6 +3185,7 @@ var react_popover_esm_excluded = ["prefixCls", "className", "content", "visibleA
|
|
|
3054
3185
|
|
|
3055
3186
|
|
|
3056
3187
|
|
|
3188
|
+
|
|
3057
3189
|
class Popover extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component {
|
|
3058
3190
|
constructor() {
|
|
3059
3191
|
super(...arguments);
|
|
@@ -3107,6 +3239,7 @@ class Popover extends (external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
3107
3239
|
}
|
|
3108
3240
|
|
|
3109
3241
|
}
|
|
3242
|
+
Popover.Confirm = Confirm;
|
|
3110
3243
|
Popover.defaultProps = {
|
|
3111
3244
|
prefixCls: 'w-popover',
|
|
3112
3245
|
placement: 'top',
|
|
@@ -3118,10 +3251,69 @@ Popover.defaultProps = {
|
|
|
3118
3251
|
;// CONCATENATED MODULE: ../react-input/esm/style/input.css
|
|
3119
3252
|
// extracted by mini-css-extract-plugin
|
|
3120
3253
|
/* harmony default export */ const input = ({});
|
|
3254
|
+
;// CONCATENATED MODULE: ../react-input/esm/InputNumber.js
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
var InputNumber_excluded = ["className", "min", "max", "step", "overLimitColor", "keyboard", "formatter", "prefixCls"];
|
|
3258
|
+
|
|
3259
|
+
|
|
3260
|
+
|
|
3261
|
+
/* harmony default export */ const InputNumber = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
3262
|
+
var {
|
|
3263
|
+
className,
|
|
3264
|
+
min,
|
|
3265
|
+
max,
|
|
3266
|
+
step,
|
|
3267
|
+
overLimitColor,
|
|
3268
|
+
keyboard = false,
|
|
3269
|
+
prefixCls = 'w-input-number'
|
|
3270
|
+
} = props,
|
|
3271
|
+
otherProps = _objectWithoutPropertiesLoose(props, InputNumber_excluded);
|
|
3272
|
+
|
|
3273
|
+
var value = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
3274
|
+
var _ref;
|
|
3275
|
+
|
|
3276
|
+
return Number.parseFloat((_ref = props.value || 0) == null ? void 0 : _ref.toString());
|
|
3277
|
+
}, [props.value]);
|
|
3278
|
+
var [isOverLimit, isOverLimitSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(overLimitComp(value));
|
|
3279
|
+
|
|
3280
|
+
function overLimitComp(value) {
|
|
3281
|
+
if (typeof min === 'number' && value < min) return true;
|
|
3282
|
+
if (typeof max === 'number' && value > max) return true;
|
|
3283
|
+
return false;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
var onChange = v => {
|
|
3287
|
+
var isOverLimit = overLimitComp(Number.parseFloat(v.target.value));
|
|
3288
|
+
isOverLimitSet(isOverLimit);
|
|
3289
|
+
props.onChange == null ? void 0 : props.onChange(v);
|
|
3290
|
+
};
|
|
3291
|
+
|
|
3292
|
+
var overLimitProps = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
3293
|
+
if (!overLimitColor) return {
|
|
3294
|
+
min,
|
|
3295
|
+
max
|
|
3296
|
+
};
|
|
3297
|
+
}, []);
|
|
3298
|
+
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
3299
|
+
var inputStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => isOverLimit ? {
|
|
3300
|
+
color: overLimitColor == null ? void 0 : overLimitColor.toString()
|
|
3301
|
+
} : undefined, [isOverLimit]);
|
|
3302
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, _extends({}, otherProps, {
|
|
3303
|
+
className: cls,
|
|
3304
|
+
type: "number",
|
|
3305
|
+
inputStyle: inputStyle,
|
|
3306
|
+
onChange: onChange,
|
|
3307
|
+
step: step
|
|
3308
|
+
}, overLimitProps));
|
|
3309
|
+
}));
|
|
3310
|
+
|
|
3121
3311
|
;// CONCATENATED MODULE: ../react-input/esm/index.js
|
|
3122
3312
|
|
|
3123
3313
|
|
|
3124
|
-
var react_input_esm_excluded = ["prefixCls", "className", "style", "size", "type", "preIcon", "addonAfter"];
|
|
3314
|
+
var react_input_esm_excluded = ["prefixCls", "className", "style", "size", "type", "preIcon", "addonAfter", "inputStyle"];
|
|
3315
|
+
|
|
3316
|
+
|
|
3125
3317
|
|
|
3126
3318
|
|
|
3127
3319
|
|
|
@@ -3135,7 +3327,8 @@ var react_input_esm_excluded = ["prefixCls", "className", "style", "size", "type
|
|
|
3135
3327
|
size = 'default',
|
|
3136
3328
|
type = 'text',
|
|
3137
3329
|
preIcon = null,
|
|
3138
|
-
addonAfter
|
|
3330
|
+
addonAfter,
|
|
3331
|
+
inputStyle
|
|
3139
3332
|
} = props,
|
|
3140
3333
|
otherProps = _objectWithoutPropertiesLoose(props, react_input_esm_excluded);
|
|
3141
3334
|
|
|
@@ -3164,6 +3357,7 @@ var react_input_esm_excluded = ["prefixCls", "className", "style", "size", "type
|
|
|
3164
3357
|
type: type,
|
|
3165
3358
|
autoComplete: "off"
|
|
3166
3359
|
}, otherProps, {
|
|
3360
|
+
style: inputStyle,
|
|
3167
3361
|
className: prefixCls + "-inner"
|
|
3168
3362
|
})), addonAfter && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
3169
3363
|
className: prefixCls + "-addon-after",
|
|
@@ -4403,25 +4597,25 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
4403
4597
|
}
|
|
4404
4598
|
|
|
4405
4599
|
function onExit(node) {
|
|
4406
|
-
node.style.height = node.scrollHeight + "px";
|
|
4600
|
+
node && (node.style.height = node.scrollHeight + "px");
|
|
4407
4601
|
setIsOpen(false);
|
|
4408
4602
|
}
|
|
4409
4603
|
|
|
4410
4604
|
function onExiting(node) {
|
|
4411
|
-
node.style.height = '0px';
|
|
4605
|
+
node && (node.style.height = '0px');
|
|
4412
4606
|
}
|
|
4413
4607
|
|
|
4414
4608
|
function onEnter(node) {
|
|
4415
|
-
node.style.height = '1px';
|
|
4609
|
+
node && (node.style.height = '1px');
|
|
4416
4610
|
setIsOpen(true);
|
|
4417
4611
|
}
|
|
4418
4612
|
|
|
4419
4613
|
function onEntering(node) {
|
|
4420
|
-
node.style.height = node.scrollHeight + "px";
|
|
4614
|
+
node && (node.style.height = node.scrollHeight + "px");
|
|
4421
4615
|
}
|
|
4422
4616
|
|
|
4423
4617
|
function onEntered(node) {
|
|
4424
|
-
node.style.height = 'initial';
|
|
4618
|
+
node && (node.style.height = 'initial');
|
|
4425
4619
|
}
|
|
4426
4620
|
|
|
4427
4621
|
if (!collapse) {
|
|
@@ -4555,6 +4749,7 @@ function Cascader(props) {
|
|
|
4555
4749
|
value,
|
|
4556
4750
|
onChange,
|
|
4557
4751
|
onSearch,
|
|
4752
|
+
expandTrigger = 'click',
|
|
4558
4753
|
size,
|
|
4559
4754
|
disabled,
|
|
4560
4755
|
allowClear,
|
|
@@ -4646,6 +4841,7 @@ function Cascader(props) {
|
|
|
4646
4841
|
|
|
4647
4842
|
var handleItemClick = (optionsItem, level) => {
|
|
4648
4843
|
selectedValue.splice(level, selectedValue.length - level, optionsItem);
|
|
4844
|
+
if (!optionsItem.children) setInnerIsOpen(false);
|
|
4649
4845
|
handelChange(true, selectedValue);
|
|
4650
4846
|
};
|
|
4651
4847
|
|
|
@@ -4674,6 +4870,26 @@ function Cascader(props) {
|
|
|
4674
4870
|
};
|
|
4675
4871
|
|
|
4676
4872
|
var widths = (style == null ? void 0 : style.width) * 0.7 || undefined;
|
|
4873
|
+
var trigger = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4874
|
+
return (cb, click) => {
|
|
4875
|
+
var triggers = {
|
|
4876
|
+
onClick: () => {},
|
|
4877
|
+
onMouseOver: () => {}
|
|
4878
|
+
};
|
|
4879
|
+
|
|
4880
|
+
var callback = () => {
|
|
4881
|
+
cb();
|
|
4882
|
+
};
|
|
4883
|
+
|
|
4884
|
+
if (expandTrigger === 'click' || click) {
|
|
4885
|
+
triggers.onClick = callback;
|
|
4886
|
+
} else if (expandTrigger === 'hover') {
|
|
4887
|
+
triggers.onMouseOver = callback;
|
|
4888
|
+
}
|
|
4889
|
+
|
|
4890
|
+
return triggers;
|
|
4891
|
+
};
|
|
4892
|
+
}, []);
|
|
4677
4893
|
|
|
4678
4894
|
var OptionIter = function OptionIter(option, level) {
|
|
4679
4895
|
if (level === void 0) {
|
|
@@ -4696,17 +4912,18 @@ function Cascader(props) {
|
|
|
4696
4912
|
},
|
|
4697
4913
|
children: '没有数据'
|
|
4698
4914
|
}) : option.map((opt, index) => {
|
|
4699
|
-
var _selectedValue$level;
|
|
4915
|
+
var _selectedValue$level, _opt$children;
|
|
4700
4916
|
|
|
4701
4917
|
var active = ((_selectedValue$level = selectedValue[level]) == null ? void 0 : _selectedValue$level.value) === opt.value;
|
|
4702
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm.Item, {
|
|
4918
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm.Item, _extends({
|
|
4703
4919
|
active: active,
|
|
4704
4920
|
text: opt.label,
|
|
4705
4921
|
addonAfter: opt.children ? /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4706
4922
|
type: "right"
|
|
4707
|
-
}) : undefined
|
|
4708
|
-
|
|
4709
|
-
|
|
4923
|
+
}) : undefined
|
|
4924
|
+
}, trigger(() => {
|
|
4925
|
+
handleItemClick(opt, level);
|
|
4926
|
+
}, !((_opt$children = opt.children) != null && _opt$children.length))), index);
|
|
4710
4927
|
})
|
|
4711
4928
|
}, level);
|
|
4712
4929
|
};
|
|
@@ -4755,8 +4972,7 @@ function Cascader(props) {
|
|
|
4755
4972
|
}) : searchOption.filter(opt => opt.label.includes(searchText.trim())).map((opt, index) => {
|
|
4756
4973
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm.Item, {
|
|
4757
4974
|
text: opt.label,
|
|
4758
|
-
onClick: () => searchItemClick(opt.options)
|
|
4759
|
-
|
|
4975
|
+
onClick: () => searchItemClick(opt.options)
|
|
4760
4976
|
}, index);
|
|
4761
4977
|
})
|
|
4762
4978
|
}),
|
|
@@ -4865,11 +5081,12 @@ var RadioAbstract = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
4865
5081
|
|
|
4866
5082
|
|
|
4867
5083
|
|
|
4868
|
-
|
|
5084
|
+
var Radio = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4869
5085
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(RadioAbstract, _extends({
|
|
4870
5086
|
ref: ref
|
|
4871
5087
|
}, props));
|
|
4872
|
-
})
|
|
5088
|
+
});
|
|
5089
|
+
/* harmony default export */ const esm_Radio = (Radio);
|
|
4873
5090
|
|
|
4874
5091
|
;// CONCATENATED MODULE: ../react-radio/esm/style/group.css
|
|
4875
5092
|
// extracted by mini-css-extract-plugin
|
|
@@ -4882,7 +5099,7 @@ var RadioGroup_excluded = ["prefixCls", "className", "name", "value", "onChange"
|
|
|
4882
5099
|
|
|
4883
5100
|
|
|
4884
5101
|
|
|
4885
|
-
|
|
5102
|
+
var RadioGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4886
5103
|
var {
|
|
4887
5104
|
prefixCls = 'w-radio-group',
|
|
4888
5105
|
className,
|
|
@@ -4908,7 +5125,8 @@ var RadioGroup_excluded = ["prefixCls", "className", "name", "value", "onChange"
|
|
|
4908
5125
|
})
|
|
4909
5126
|
})
|
|
4910
5127
|
}));
|
|
4911
|
-
})
|
|
5128
|
+
});
|
|
5129
|
+
/* harmony default export */ const esm_RadioGroup = (RadioGroup);
|
|
4912
5130
|
|
|
4913
5131
|
;// CONCATENATED MODULE: ../react-radio/esm/RadioButton.js
|
|
4914
5132
|
|
|
@@ -8025,6 +8243,7 @@ Circle.defaultProps = {
|
|
|
8025
8243
|
|
|
8026
8244
|
};
|
|
8027
8245
|
|
|
8246
|
+
|
|
8028
8247
|
;// CONCATENATED MODULE: ../react-progress/esm/style/line.css
|
|
8029
8248
|
// extracted by mini-css-extract-plugin
|
|
8030
8249
|
/* harmony default export */ const line = ({});
|
|
@@ -8110,6 +8329,7 @@ Line.defaultProps = {
|
|
|
8110
8329
|
|
|
8111
8330
|
};
|
|
8112
8331
|
|
|
8332
|
+
|
|
8113
8333
|
;// CONCATENATED MODULE: ../react-progress/esm/index.js
|
|
8114
8334
|
|
|
8115
8335
|
|
|
@@ -8343,7 +8563,7 @@ function SearchSelect(props) {
|
|
|
8343
8563
|
style,
|
|
8344
8564
|
value,
|
|
8345
8565
|
defaultValue,
|
|
8346
|
-
showSearch,
|
|
8566
|
+
showSearch = false,
|
|
8347
8567
|
tagProps = {},
|
|
8348
8568
|
placeholder,
|
|
8349
8569
|
onSearch,
|
|
@@ -8381,6 +8601,9 @@ function SearchSelect(props) {
|
|
|
8381
8601
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
8382
8602
|
if (valueVerify(value)) {
|
|
8383
8603
|
selectedValueChange(value);
|
|
8604
|
+
} else {
|
|
8605
|
+
setSelectedValue([]);
|
|
8606
|
+
setSelectedLabel('');
|
|
8384
8607
|
}
|
|
8385
8608
|
}, [JSON.stringify(value)]);
|
|
8386
8609
|
|
|
@@ -8555,13 +8778,10 @@ function SearchSelect(props) {
|
|
|
8555
8778
|
maxWidth: 'none'
|
|
8556
8779
|
}, style),
|
|
8557
8780
|
children: isMultiple ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
8558
|
-
className: [prefixCls + "-inner", prefixCls + "-" + size].filter(Boolean).join(' ').trim(),
|
|
8781
|
+
className: [prefixCls + "-inner", prefixCls + "-search-" + showSearch, prefixCls + "-" + size].filter(Boolean).join(' ').trim(),
|
|
8559
8782
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
flexFlow: 'wrap',
|
|
8563
|
-
width: '100%'
|
|
8564
|
-
},
|
|
8783
|
+
className: prefixCls + "-tag-content",
|
|
8784
|
+
style: {},
|
|
8565
8785
|
children: [isMultiple && selectedValue.slice(0, maxTagCount).map((item, index) => {
|
|
8566
8786
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_tag_esm, _extends({
|
|
8567
8787
|
style: _extends({
|
|
@@ -8591,7 +8811,8 @@ function SearchSelect(props) {
|
|
|
8591
8811
|
children: ["+", omitTagCount, " \u2026", ' ']
|
|
8592
8812
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
8593
8813
|
style: {
|
|
8594
|
-
flex: 1
|
|
8814
|
+
flex: 1,
|
|
8815
|
+
width: showSearch ? 0 : 50
|
|
8595
8816
|
},
|
|
8596
8817
|
className: prefixCls + "-input-contents",
|
|
8597
8818
|
readOnly: !showSearch,
|
|
@@ -8610,6 +8831,7 @@ function SearchSelect(props) {
|
|
|
8610
8831
|
onClick: resetSelectedValue
|
|
8611
8832
|
})]
|
|
8612
8833
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
8834
|
+
className: prefixCls + "-search-" + showSearch,
|
|
8613
8835
|
readOnly: !showSearch,
|
|
8614
8836
|
size: size,
|
|
8615
8837
|
ref: inputRef,
|
|
@@ -9552,12 +9774,15 @@ var ThComponent_excluded = ["title", "key", "render", "children", "ellipsis", "f
|
|
|
9552
9774
|
|
|
9553
9775
|
|
|
9554
9776
|
|
|
9555
|
-
|
|
9556
9777
|
class ThComponent extends external_root_React_commonjs2_react_commonjs_react_amd_react_.Component {
|
|
9778
|
+
constructor() {
|
|
9779
|
+
super(...arguments);
|
|
9780
|
+
this.wrapper = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef();
|
|
9781
|
+
}
|
|
9782
|
+
|
|
9557
9783
|
componentDidMount() {
|
|
9558
|
-
var rect = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this);
|
|
9559
9784
|
this.props.updateLocation({
|
|
9560
|
-
width:
|
|
9785
|
+
width: this.wrapper.current.getBoundingClientRect().width
|
|
9561
9786
|
}, "" + this.props.rowNum + this.props.colNum, this.props.item.key, this.props.item.colSpan);
|
|
9562
9787
|
}
|
|
9563
9788
|
|
|
@@ -9587,7 +9812,9 @@ class ThComponent extends external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
9587
9812
|
}
|
|
9588
9813
|
}
|
|
9589
9814
|
|
|
9590
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("th", _extends({
|
|
9815
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("th", _extends({
|
|
9816
|
+
ref: this.wrapper
|
|
9817
|
+
}, thProps, {
|
|
9591
9818
|
style: _extends({}, thProps.style, locationFixed(fixed, locationWidth, "" + rowNum + colNum)),
|
|
9592
9819
|
className: prefixCls + "-tr-children-" + ((item == null ? void 0 : item.align) || 'left') + " " + (item.className || '') + " " + cls,
|
|
9593
9820
|
onClick: evn => onCellHead == null ? void 0 : onCellHead(item, colNum, rowNum, evn),
|
|
@@ -10446,9 +10673,11 @@ var TreeNode_excluded = ["prefixCls", "renderTitle", "icon", "iconAnimation", "i
|
|
|
10446
10673
|
|
|
10447
10674
|
var Label = _ref => {
|
|
10448
10675
|
var {
|
|
10449
|
-
label
|
|
10676
|
+
label,
|
|
10677
|
+
className
|
|
10450
10678
|
} = _ref;
|
|
10451
10679
|
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
10680
|
+
className: className,
|
|
10452
10681
|
children: label
|
|
10453
10682
|
}), [label]);
|
|
10454
10683
|
};
|
|
@@ -10471,27 +10700,29 @@ function TreeNode(props) {
|
|
|
10471
10700
|
other = _objectWithoutPropertiesLoose(props, TreeNode_excluded);
|
|
10472
10701
|
|
|
10473
10702
|
var isOpen = false;
|
|
10703
|
+
var node = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(null);
|
|
10474
10704
|
|
|
10475
10705
|
if (parent && (parent.key || parent.key === 0)) {
|
|
10476
10706
|
isOpen = !!(openKeys && openKeys.indexOf(parent.key) > -1);
|
|
10477
10707
|
}
|
|
10478
10708
|
|
|
10479
|
-
var onExit = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(
|
|
10480
|
-
node.style.height = node.scrollHeight + "px";
|
|
10709
|
+
var onExit = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
|
|
10710
|
+
node.current.style.height = node.current.scrollHeight + "px";
|
|
10481
10711
|
}, []);
|
|
10482
|
-
var onExiting = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(
|
|
10483
|
-
node.style.height = '1px';
|
|
10712
|
+
var onExiting = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
|
|
10713
|
+
node.current.style.height = '1px';
|
|
10484
10714
|
}, []);
|
|
10485
|
-
var onEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((
|
|
10486
|
-
node.style.height = '1px';
|
|
10715
|
+
var onEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
|
|
10716
|
+
node.current.style.height = '1px';
|
|
10487
10717
|
}, []);
|
|
10488
|
-
var onEntering = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((
|
|
10489
|
-
node.style.height = node.scrollHeight + "px";
|
|
10718
|
+
var onEntering = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
|
|
10719
|
+
node.current.style.height = node.current.scrollHeight + "px";
|
|
10490
10720
|
}, []);
|
|
10491
|
-
var onEntered = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((
|
|
10492
|
-
node.style.height = 'initial';
|
|
10721
|
+
var onEntered = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
|
|
10722
|
+
node.current.style.height = 'initial';
|
|
10493
10723
|
}, []);
|
|
10494
10724
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_CSSTransition, {
|
|
10725
|
+
nodeRef: node,
|
|
10495
10726
|
classNames: prefixCls,
|
|
10496
10727
|
in: isOpen,
|
|
10497
10728
|
timeout: 200,
|
|
@@ -10501,6 +10732,7 @@ function TreeNode(props) {
|
|
|
10501
10732
|
onEntered: onEntered,
|
|
10502
10733
|
onEntering: onEntering,
|
|
10503
10734
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
10735
|
+
ref: node,
|
|
10504
10736
|
className: [level !== 1 && isOpen ? [prefixCls + "-open"] : null, level !== 1 && !isOpen ? [prefixCls + "-close"] : null].filter(Boolean).join(' ').trim(),
|
|
10505
10737
|
children: data.map((item, idx) => {
|
|
10506
10738
|
item.parent = parent;
|
|
@@ -10516,6 +10748,24 @@ function TreeNode(props) {
|
|
|
10516
10748
|
var childKeys = noChild ? [] : getChildKeys(item.children);
|
|
10517
10749
|
var checkedKeys = selectedKeys ? selectedKeys.filter(key => childKeys.indexOf(key) > -1) : [];
|
|
10518
10750
|
var isHalfChecked = checkedKeys.length > 0 && childKeys.length !== checkedKeys.length;
|
|
10751
|
+
var disabledObj = {
|
|
10752
|
+
onClick: onItemSelected,
|
|
10753
|
+
disabled: null,
|
|
10754
|
+
disabledMouse: null,
|
|
10755
|
+
disabledClass: undefined,
|
|
10756
|
+
disabledStyle: undefined
|
|
10757
|
+
};
|
|
10758
|
+
|
|
10759
|
+
if (item.disabled) {
|
|
10760
|
+
disabledObj.onClick = undefined;
|
|
10761
|
+
disabledObj.disabled = 'disabled';
|
|
10762
|
+
disabledObj.disabledMouse = prefixCls + "-disabled-mouse";
|
|
10763
|
+
disabledObj.disabledClass = prefixCls + "-disabled-ele";
|
|
10764
|
+
disabledObj.disabledStyle = {
|
|
10765
|
+
color: '#00000040'
|
|
10766
|
+
};
|
|
10767
|
+
}
|
|
10768
|
+
|
|
10519
10769
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
10520
10770
|
style: {
|
|
10521
10771
|
display: item.hideNode ? 'none' : 'block'
|
|
@@ -10533,16 +10783,20 @@ function TreeNode(props) {
|
|
|
10533
10783
|
className: [typeof icon === 'function' ? prefixCls + "-switcher-noop" : null, noChild ? 'no-child' : null, !iconAnimation ? 'no-animation' : null, itemIsOpen ? 'open' : null].filter(Boolean).join(' ').trim()
|
|
10534
10784
|
})
|
|
10535
10785
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
10536
|
-
onClick: evn =>
|
|
10537
|
-
className: [prefixCls + "-title", selected && isSelected ? 'selected' : null,
|
|
10786
|
+
onClick: evn => disabledObj.onClick == null ? void 0 : disabledObj.onClick(item, evn),
|
|
10787
|
+
className: [prefixCls + "-title", selected && isSelected ? 'selected' : null, disabledObj.disabled, disabledObj.disabledMouse].filter(Boolean).join(' ').trim(),
|
|
10538
10788
|
children: renderTitle ? renderTitle(item, {
|
|
10539
10789
|
selected,
|
|
10540
10790
|
noChild,
|
|
10541
10791
|
openKeys,
|
|
10542
10792
|
isHalfChecked,
|
|
10543
|
-
selectedKeys
|
|
10793
|
+
selectedKeys,
|
|
10794
|
+
disabled: item.disabled,
|
|
10795
|
+
disabledClass: disabledObj.disabledClass,
|
|
10796
|
+
disabledStyle: disabledObj.disabledStyle
|
|
10544
10797
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(Label, {
|
|
10545
|
-
label: item.label
|
|
10798
|
+
label: item.label,
|
|
10799
|
+
className: disabledObj.disabledClass
|
|
10546
10800
|
})
|
|
10547
10801
|
})]
|
|
10548
10802
|
}), item.children && /*#__PURE__*/(0,jsx_runtime.jsx)(TreeNode, _extends({}, other, {
|
|
@@ -10830,8 +11084,10 @@ function TreeChecked(_ref) {
|
|
|
10830
11084
|
|
|
10831
11085
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
|
|
10832
11086
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(react_checkbox_esm, _extends({
|
|
10833
|
-
className: prefixCls + "-checked"
|
|
11087
|
+
className: prefixCls + "-checked",
|
|
11088
|
+
disabled: node.disabled
|
|
10834
11089
|
}, checkedProps)), item.label && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
11090
|
+
className: node.disabledClass,
|
|
10835
11091
|
children: item.label
|
|
10836
11092
|
})]
|
|
10837
11093
|
});
|
|
@@ -11024,7 +11280,6 @@ function SearchTagInput(props) {
|
|
|
11024
11280
|
}), index);
|
|
11025
11281
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
11026
11282
|
ref: inputRef,
|
|
11027
|
-
style: {},
|
|
11028
11283
|
className: prefixCls + "-input-contents",
|
|
11029
11284
|
size: size,
|
|
11030
11285
|
disabled: disabled,
|