uiw 4.18.0 → 4.20.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 +12 -5
- package/dist/uiw.js +236 -31
- package/dist/uiw.min.css +1 -1
- package/dist/uiw.min.js +1 -1
- package/package.json +60 -60
package/dist/uiw.css
CHANGED
|
@@ -3867,8 +3867,7 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3867
3867
|
.w-search-select-input-contents input {
|
|
3868
3868
|
box-shadow: none;
|
|
3869
3869
|
padding: 0px;
|
|
3870
|
-
|
|
3871
|
-
height: 22px;
|
|
3870
|
+
height: 28px;
|
|
3872
3871
|
}
|
|
3873
3872
|
.w-search-select-input-contents .w-input-inner:hover {
|
|
3874
3873
|
box-shadow: none !important;
|
|
@@ -3889,15 +3888,15 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3889
3888
|
justify-content: space-between;
|
|
3890
3889
|
outline: none;
|
|
3891
3890
|
border: none;
|
|
3892
|
-
align-items: center;
|
|
3893
3891
|
border-radius: 3px;
|
|
3894
3892
|
box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), inset 0 1px 1px rgba(16, 22, 26, 0.2);
|
|
3895
3893
|
box-sizing: border-box;
|
|
3896
3894
|
background: #fff;
|
|
3897
3895
|
margin: 0 !important;
|
|
3898
|
-
padding:
|
|
3896
|
+
padding: 1px 10px;
|
|
3899
3897
|
vertical-align: middle;
|
|
3900
3898
|
line-height: 30px;
|
|
3899
|
+
align-items: center;
|
|
3901
3900
|
color: #393e48;
|
|
3902
3901
|
font-weight: 400;
|
|
3903
3902
|
font-size: inherit;
|
|
@@ -3937,6 +3936,15 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3937
3936
|
.w-search-select-inner .w-input-large .w-input-inner {
|
|
3938
3937
|
height: 28px;
|
|
3939
3938
|
}
|
|
3939
|
+
.w-search-select-tag-content {
|
|
3940
|
+
display: flex;
|
|
3941
|
+
align-items: center;
|
|
3942
|
+
flex-flow: wrap;
|
|
3943
|
+
width: 100%;
|
|
3944
|
+
}
|
|
3945
|
+
.w-search-select-search-false {
|
|
3946
|
+
cursor: pointer;
|
|
3947
|
+
}
|
|
3940
3948
|
.w-search-select-multiple-colse {
|
|
3941
3949
|
left: 7px;
|
|
3942
3950
|
font-size: 15px;
|
|
@@ -5071,7 +5079,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
5071
5079
|
|
|
5072
5080
|
.w-search-tree-input-contents {
|
|
5073
5081
|
flex: 1 1;
|
|
5074
|
-
min-width: 30px;
|
|
5075
5082
|
top: 1px;
|
|
5076
5083
|
}
|
|
5077
5084
|
.w-search-tree-input-contents input {
|
package/dist/uiw.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["uiw"] = factory(require("react"), require("react-dom"));
|
|
8
8
|
else
|
|
9
9
|
root["uiw"] = factory(root["React"], root["ReactDOM"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -346,6 +346,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
346
346
|
"FormItem": () => (/* reexport */ FormItem),
|
|
347
347
|
"Icon": () => (/* reexport */ Icon),
|
|
348
348
|
"Input": () => (/* reexport */ react_input_esm),
|
|
349
|
+
"InputNumber": () => (/* reexport */ InputNumber),
|
|
349
350
|
"Layout": () => (/* reexport */ react_layout_esm),
|
|
350
351
|
"LayoutContent": () => (/* reexport */ LayoutContent),
|
|
351
352
|
"LayoutContext": () => (/* reexport */ LayoutContext),
|
|
@@ -1562,7 +1563,8 @@ function Overlay(props) {
|
|
|
1562
1563
|
} = props,
|
|
1563
1564
|
otherProps = _objectWithoutPropertiesLoose(props, esm_excluded);
|
|
1564
1565
|
|
|
1565
|
-
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.isOpen || false);
|
|
1566
|
+
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(); // const [isOpen, setIsOpen] = useState(props.isOpen || false);
|
|
1567
|
+
|
|
1566
1568
|
var [visible, setVisible] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
1567
1569
|
var container = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
1568
1570
|
var overlay = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
@@ -1772,6 +1774,34 @@ var react_button_esm_excluded = ["prefixCls", "disabled", "active", "loading", "
|
|
|
1772
1774
|
;// CONCATENATED MODULE: ../react-modal/esm/style/index.css
|
|
1773
1775
|
// extracted by mini-css-extract-plugin
|
|
1774
1776
|
/* harmony default export */ const react_modal_esm_style = ({});
|
|
1777
|
+
;// CONCATENATED MODULE: ../react-modal/esm/CallShow.js
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
var CallShow_excluded = ["title", "children"];
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
function CallShow(props) {
|
|
1786
|
+
var {
|
|
1787
|
+
title = '提示框',
|
|
1788
|
+
children
|
|
1789
|
+
} = props,
|
|
1790
|
+
other = _objectWithoutPropertiesLoose(props, CallShow_excluded);
|
|
1791
|
+
|
|
1792
|
+
var dv = document.createElement('div');
|
|
1793
|
+
dv.id = 'uiw-modal-call-show-element';
|
|
1794
|
+
document.body.appendChild(dv);
|
|
1795
|
+
external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().render( /*#__PURE__*/(0,jsx_runtime.jsx)(react_modal_esm, _extends({}, other, {
|
|
1796
|
+
title: title,
|
|
1797
|
+
isOpen: true,
|
|
1798
|
+
onClosed: () => {
|
|
1799
|
+
dv.remove();
|
|
1800
|
+
},
|
|
1801
|
+
children: children
|
|
1802
|
+
})), dv);
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1775
1805
|
;// CONCATENATED MODULE: ../react-modal/esm/index.js
|
|
1776
1806
|
|
|
1777
1807
|
|
|
@@ -1785,7 +1815,8 @@ var react_modal_esm_excluded = ["prefixCls", "className", "children", "useButton
|
|
|
1785
1815
|
|
|
1786
1816
|
|
|
1787
1817
|
|
|
1788
|
-
|
|
1818
|
+
|
|
1819
|
+
var Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
1789
1820
|
var {
|
|
1790
1821
|
prefixCls = 'w-modal',
|
|
1791
1822
|
className,
|
|
@@ -1910,7 +1941,9 @@ var react_modal_esm_excluded = ["prefixCls", "className", "children", "useButton
|
|
|
1910
1941
|
})
|
|
1911
1942
|
})
|
|
1912
1943
|
}));
|
|
1913
|
-
})
|
|
1944
|
+
});
|
|
1945
|
+
Modal.show = CallShow;
|
|
1946
|
+
/* harmony default export */ const react_modal_esm = (Modal);
|
|
1914
1947
|
|
|
1915
1948
|
;// CONCATENATED MODULE: ../react-alert/esm/style/index.css
|
|
1916
1949
|
// extracted by mini-css-extract-plugin
|
|
@@ -2854,7 +2887,7 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
2854
2887
|
}
|
|
2855
2888
|
|
|
2856
2889
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
2857
|
-
if (isClickOutside) {
|
|
2890
|
+
if (isClickOutside && isOpen) {
|
|
2858
2891
|
document && document.addEventListener('mousedown', handleClickOutside);
|
|
2859
2892
|
window.addEventListener('resize', handleResize);
|
|
2860
2893
|
}
|
|
@@ -2863,7 +2896,7 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
2863
2896
|
document && isClickOutside && document.removeEventListener('mousedown', handleClickOutside);
|
|
2864
2897
|
window.removeEventListener('resize', handleResize);
|
|
2865
2898
|
};
|
|
2866
|
-
}, []);
|
|
2899
|
+
}, [isOpen]);
|
|
2867
2900
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
2868
2901
|
if (props.isOpen !== isOpen) {
|
|
2869
2902
|
setIsOpen(!!props.isOpen);
|
|
@@ -2884,9 +2917,11 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
2884
2917
|
}, [isOpen]);
|
|
2885
2918
|
|
|
2886
2919
|
var handleResize = () => {
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2920
|
+
if (isOpen) {
|
|
2921
|
+
zIndex.current -= 1;
|
|
2922
|
+
setIsOpen(false);
|
|
2923
|
+
onVisibleChange && onVisibleChange(false);
|
|
2924
|
+
}
|
|
2890
2925
|
};
|
|
2891
2926
|
|
|
2892
2927
|
var handleClickOutside = e => {
|
|
@@ -3043,6 +3078,88 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
3043
3078
|
;// CONCATENATED MODULE: ../react-popover/esm/style/index.css
|
|
3044
3079
|
// extracted by mini-css-extract-plugin
|
|
3045
3080
|
/* harmony default export */ const react_popover_esm_style = ({});
|
|
3081
|
+
;// CONCATENATED MODULE: ../react-popover/esm/Confirm.js
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
function Confirm(props) {
|
|
3090
|
+
var {
|
|
3091
|
+
trigger = 'click',
|
|
3092
|
+
placement = 'top',
|
|
3093
|
+
confirmText = 'Yes',
|
|
3094
|
+
title,
|
|
3095
|
+
cancelText = 'No',
|
|
3096
|
+
visibleArrow,
|
|
3097
|
+
children,
|
|
3098
|
+
onConfirm
|
|
3099
|
+
} = props;
|
|
3100
|
+
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
3101
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Popover, {
|
|
3102
|
+
isOpen: isOpen,
|
|
3103
|
+
visibleArrow: visibleArrow,
|
|
3104
|
+
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
3105
|
+
style: {
|
|
3106
|
+
padding: '12px 16px',
|
|
3107
|
+
position: 'relative'
|
|
3108
|
+
},
|
|
3109
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
3110
|
+
type: "information",
|
|
3111
|
+
style: {
|
|
3112
|
+
position: 'absolute',
|
|
3113
|
+
top: 13.5,
|
|
3114
|
+
fontSize: 14,
|
|
3115
|
+
transform: 'rotate(180deg)',
|
|
3116
|
+
color: '#faad14'
|
|
3117
|
+
}
|
|
3118
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
3119
|
+
style: {
|
|
3120
|
+
paddingLeft: 20
|
|
3121
|
+
},
|
|
3122
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
3123
|
+
style: {
|
|
3124
|
+
fontSize: 14
|
|
3125
|
+
},
|
|
3126
|
+
children: title
|
|
3127
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
3128
|
+
style: {
|
|
3129
|
+
position: 'relative',
|
|
3130
|
+
bottom: 0,
|
|
3131
|
+
marginTop: 12,
|
|
3132
|
+
display: 'flex',
|
|
3133
|
+
justifyContent: 'end'
|
|
3134
|
+
},
|
|
3135
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(esm, {
|
|
3136
|
+
size: "small",
|
|
3137
|
+
onClick: () => setIsOpen(false),
|
|
3138
|
+
children: cancelText
|
|
3139
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(esm, {
|
|
3140
|
+
size: "small",
|
|
3141
|
+
type: "primary",
|
|
3142
|
+
style: {
|
|
3143
|
+
marginLeft: 10
|
|
3144
|
+
},
|
|
3145
|
+
onClick: () => {
|
|
3146
|
+
onConfirm == null ? void 0 : onConfirm();
|
|
3147
|
+
setIsOpen(false);
|
|
3148
|
+
},
|
|
3149
|
+
children: confirmText
|
|
3150
|
+
})]
|
|
3151
|
+
})]
|
|
3152
|
+
})]
|
|
3153
|
+
}),
|
|
3154
|
+
trigger: trigger,
|
|
3155
|
+
placement: placement,
|
|
3156
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
3157
|
+
onClick: () => setIsOpen(true),
|
|
3158
|
+
children: children
|
|
3159
|
+
})
|
|
3160
|
+
});
|
|
3161
|
+
}
|
|
3162
|
+
|
|
3046
3163
|
;// CONCATENATED MODULE: ../react-popover/esm/index.js
|
|
3047
3164
|
|
|
3048
3165
|
|
|
@@ -3052,6 +3169,7 @@ var react_popover_esm_excluded = ["prefixCls", "className", "content", "visibleA
|
|
|
3052
3169
|
|
|
3053
3170
|
|
|
3054
3171
|
|
|
3172
|
+
|
|
3055
3173
|
class Popover extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component {
|
|
3056
3174
|
constructor() {
|
|
3057
3175
|
super(...arguments);
|
|
@@ -3105,6 +3223,7 @@ class Popover extends (external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
3105
3223
|
}
|
|
3106
3224
|
|
|
3107
3225
|
}
|
|
3226
|
+
Popover.Confirm = Confirm;
|
|
3108
3227
|
Popover.defaultProps = {
|
|
3109
3228
|
prefixCls: 'w-popover',
|
|
3110
3229
|
placement: 'top',
|
|
@@ -3116,10 +3235,69 @@ Popover.defaultProps = {
|
|
|
3116
3235
|
;// CONCATENATED MODULE: ../react-input/esm/style/input.css
|
|
3117
3236
|
// extracted by mini-css-extract-plugin
|
|
3118
3237
|
/* harmony default export */ const input = ({});
|
|
3238
|
+
;// CONCATENATED MODULE: ../react-input/esm/InputNumber.js
|
|
3239
|
+
|
|
3240
|
+
|
|
3241
|
+
var InputNumber_excluded = ["className", "min", "max", "step", "overLimitColor", "keyboard", "formatter", "prefixCls"];
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
/* harmony default export */ const InputNumber = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
3246
|
+
var {
|
|
3247
|
+
className,
|
|
3248
|
+
min,
|
|
3249
|
+
max,
|
|
3250
|
+
step,
|
|
3251
|
+
overLimitColor,
|
|
3252
|
+
keyboard = false,
|
|
3253
|
+
prefixCls = 'w-input-number'
|
|
3254
|
+
} = props,
|
|
3255
|
+
otherProps = _objectWithoutPropertiesLoose(props, InputNumber_excluded);
|
|
3256
|
+
|
|
3257
|
+
var value = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
3258
|
+
var _ref;
|
|
3259
|
+
|
|
3260
|
+
return Number.parseFloat((_ref = props.value || 0) == null ? void 0 : _ref.toString());
|
|
3261
|
+
}, [props.value]);
|
|
3262
|
+
var [isOverLimit, isOverLimitSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(overLimitComp(value));
|
|
3263
|
+
|
|
3264
|
+
function overLimitComp(value) {
|
|
3265
|
+
if (typeof min === 'number' && value < min) return true;
|
|
3266
|
+
if (typeof max === 'number' && value > max) return true;
|
|
3267
|
+
return false;
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
var onChange = v => {
|
|
3271
|
+
var isOverLimit = overLimitComp(Number.parseFloat(v.target.value));
|
|
3272
|
+
isOverLimitSet(isOverLimit);
|
|
3273
|
+
props.onChange == null ? void 0 : props.onChange(v);
|
|
3274
|
+
};
|
|
3275
|
+
|
|
3276
|
+
var overLimitProps = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
3277
|
+
if (!overLimitColor) return {
|
|
3278
|
+
min,
|
|
3279
|
+
max
|
|
3280
|
+
};
|
|
3281
|
+
}, []);
|
|
3282
|
+
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
3283
|
+
var inputStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => isOverLimit ? {
|
|
3284
|
+
color: overLimitColor == null ? void 0 : overLimitColor.toString()
|
|
3285
|
+
} : undefined, [isOverLimit]);
|
|
3286
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, _extends({}, otherProps, {
|
|
3287
|
+
className: cls,
|
|
3288
|
+
type: "number",
|
|
3289
|
+
inputStyle: inputStyle,
|
|
3290
|
+
onChange: onChange,
|
|
3291
|
+
step: step
|
|
3292
|
+
}, overLimitProps));
|
|
3293
|
+
}));
|
|
3294
|
+
|
|
3119
3295
|
;// CONCATENATED MODULE: ../react-input/esm/index.js
|
|
3120
3296
|
|
|
3121
3297
|
|
|
3122
|
-
var react_input_esm_excluded = ["prefixCls", "className", "style", "size", "type", "preIcon", "addonAfter"];
|
|
3298
|
+
var react_input_esm_excluded = ["prefixCls", "className", "style", "size", "type", "preIcon", "addonAfter", "inputStyle"];
|
|
3299
|
+
|
|
3300
|
+
|
|
3123
3301
|
|
|
3124
3302
|
|
|
3125
3303
|
|
|
@@ -3133,7 +3311,8 @@ var react_input_esm_excluded = ["prefixCls", "className", "style", "size", "type
|
|
|
3133
3311
|
size = 'default',
|
|
3134
3312
|
type = 'text',
|
|
3135
3313
|
preIcon = null,
|
|
3136
|
-
addonAfter
|
|
3314
|
+
addonAfter,
|
|
3315
|
+
inputStyle
|
|
3137
3316
|
} = props,
|
|
3138
3317
|
otherProps = _objectWithoutPropertiesLoose(props, react_input_esm_excluded);
|
|
3139
3318
|
|
|
@@ -3162,6 +3341,7 @@ var react_input_esm_excluded = ["prefixCls", "className", "style", "size", "type
|
|
|
3162
3341
|
type: type,
|
|
3163
3342
|
autoComplete: "off"
|
|
3164
3343
|
}, otherProps, {
|
|
3344
|
+
style: inputStyle,
|
|
3165
3345
|
className: prefixCls + "-inner"
|
|
3166
3346
|
})), addonAfter && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
3167
3347
|
className: prefixCls + "-addon-after",
|
|
@@ -4553,6 +4733,7 @@ function Cascader(props) {
|
|
|
4553
4733
|
value,
|
|
4554
4734
|
onChange,
|
|
4555
4735
|
onSearch,
|
|
4736
|
+
expandTrigger = 'click',
|
|
4556
4737
|
size,
|
|
4557
4738
|
disabled,
|
|
4558
4739
|
allowClear,
|
|
@@ -4644,6 +4825,7 @@ function Cascader(props) {
|
|
|
4644
4825
|
|
|
4645
4826
|
var handleItemClick = (optionsItem, level) => {
|
|
4646
4827
|
selectedValue.splice(level, selectedValue.length - level, optionsItem);
|
|
4828
|
+
if (!optionsItem.children) setInnerIsOpen(false);
|
|
4647
4829
|
handelChange(true, selectedValue);
|
|
4648
4830
|
};
|
|
4649
4831
|
|
|
@@ -4672,6 +4854,26 @@ function Cascader(props) {
|
|
|
4672
4854
|
};
|
|
4673
4855
|
|
|
4674
4856
|
var widths = (style == null ? void 0 : style.width) * 0.7 || undefined;
|
|
4857
|
+
var trigger = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4858
|
+
return (cb, click) => {
|
|
4859
|
+
var triggers = {
|
|
4860
|
+
onClick: () => {},
|
|
4861
|
+
onMouseOver: () => {}
|
|
4862
|
+
};
|
|
4863
|
+
|
|
4864
|
+
var callback = () => {
|
|
4865
|
+
cb();
|
|
4866
|
+
};
|
|
4867
|
+
|
|
4868
|
+
if (expandTrigger === 'click' || click) {
|
|
4869
|
+
triggers.onClick = callback;
|
|
4870
|
+
} else if (expandTrigger === 'hover') {
|
|
4871
|
+
triggers.onMouseOver = callback;
|
|
4872
|
+
}
|
|
4873
|
+
|
|
4874
|
+
return triggers;
|
|
4875
|
+
};
|
|
4876
|
+
}, []);
|
|
4675
4877
|
|
|
4676
4878
|
var OptionIter = function OptionIter(option, level) {
|
|
4677
4879
|
if (level === void 0) {
|
|
@@ -4694,17 +4896,18 @@ function Cascader(props) {
|
|
|
4694
4896
|
},
|
|
4695
4897
|
children: '没有数据'
|
|
4696
4898
|
}) : option.map((opt, index) => {
|
|
4697
|
-
var _selectedValue$level;
|
|
4899
|
+
var _selectedValue$level, _opt$children;
|
|
4698
4900
|
|
|
4699
4901
|
var active = ((_selectedValue$level = selectedValue[level]) == null ? void 0 : _selectedValue$level.value) === opt.value;
|
|
4700
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm.Item, {
|
|
4902
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm.Item, _extends({
|
|
4701
4903
|
active: active,
|
|
4702
4904
|
text: opt.label,
|
|
4703
4905
|
addonAfter: opt.children ? /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4704
4906
|
type: "right"
|
|
4705
|
-
}) : undefined
|
|
4706
|
-
|
|
4707
|
-
|
|
4907
|
+
}) : undefined
|
|
4908
|
+
}, trigger(() => {
|
|
4909
|
+
handleItemClick(opt, level);
|
|
4910
|
+
}, !((_opt$children = opt.children) != null && _opt$children.length))), index);
|
|
4708
4911
|
})
|
|
4709
4912
|
}, level);
|
|
4710
4913
|
};
|
|
@@ -4753,8 +4956,7 @@ function Cascader(props) {
|
|
|
4753
4956
|
}) : searchOption.filter(opt => opt.label.includes(searchText.trim())).map((opt, index) => {
|
|
4754
4957
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm.Item, {
|
|
4755
4958
|
text: opt.label,
|
|
4756
|
-
onClick: () => searchItemClick(opt.options)
|
|
4757
|
-
|
|
4959
|
+
onClick: () => searchItemClick(opt.options)
|
|
4758
4960
|
}, index);
|
|
4759
4961
|
})
|
|
4760
4962
|
}),
|
|
@@ -8341,7 +8543,7 @@ function SearchSelect(props) {
|
|
|
8341
8543
|
style,
|
|
8342
8544
|
value,
|
|
8343
8545
|
defaultValue,
|
|
8344
|
-
showSearch,
|
|
8546
|
+
showSearch = false,
|
|
8345
8547
|
tagProps = {},
|
|
8346
8548
|
placeholder,
|
|
8347
8549
|
onSearch,
|
|
@@ -8553,13 +8755,10 @@ function SearchSelect(props) {
|
|
|
8553
8755
|
maxWidth: 'none'
|
|
8554
8756
|
}, style),
|
|
8555
8757
|
children: isMultiple ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
8556
|
-
className: [prefixCls + "-inner", prefixCls + "-" + size].filter(Boolean).join(' ').trim(),
|
|
8758
|
+
className: [prefixCls + "-inner", prefixCls + "-search-" + showSearch, prefixCls + "-" + size].filter(Boolean).join(' ').trim(),
|
|
8557
8759
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
flexFlow: 'wrap',
|
|
8561
|
-
width: '100%'
|
|
8562
|
-
},
|
|
8760
|
+
className: prefixCls + "-tag-content",
|
|
8761
|
+
style: {},
|
|
8563
8762
|
children: [isMultiple && selectedValue.slice(0, maxTagCount).map((item, index) => {
|
|
8564
8763
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_tag_esm, _extends({
|
|
8565
8764
|
style: _extends({
|
|
@@ -8589,7 +8788,8 @@ function SearchSelect(props) {
|
|
|
8589
8788
|
children: ["+", omitTagCount, " \u2026", ' ']
|
|
8590
8789
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
8591
8790
|
style: {
|
|
8592
|
-
flex: 1
|
|
8791
|
+
flex: 1,
|
|
8792
|
+
width: showSearch ? 0 : 50
|
|
8593
8793
|
},
|
|
8594
8794
|
className: prefixCls + "-input-contents",
|
|
8595
8795
|
readOnly: !showSearch,
|
|
@@ -8608,6 +8808,7 @@ function SearchSelect(props) {
|
|
|
8608
8808
|
onClick: resetSelectedValue
|
|
8609
8809
|
})]
|
|
8610
8810
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
8811
|
+
className: prefixCls + "-search-" + showSearch,
|
|
8611
8812
|
readOnly: !showSearch,
|
|
8612
8813
|
size: size,
|
|
8613
8814
|
ref: inputRef,
|
|
@@ -9550,12 +9751,15 @@ var ThComponent_excluded = ["title", "key", "render", "children", "ellipsis", "f
|
|
|
9550
9751
|
|
|
9551
9752
|
|
|
9552
9753
|
|
|
9553
|
-
|
|
9554
9754
|
class ThComponent extends external_root_React_commonjs2_react_commonjs_react_amd_react_.Component {
|
|
9755
|
+
constructor() {
|
|
9756
|
+
super(...arguments);
|
|
9757
|
+
this.wrapper = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef();
|
|
9758
|
+
}
|
|
9759
|
+
|
|
9555
9760
|
componentDidMount() {
|
|
9556
|
-
var rect = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this);
|
|
9557
9761
|
this.props.updateLocation({
|
|
9558
|
-
width:
|
|
9762
|
+
width: this.wrapper.current.getBoundingClientRect().width
|
|
9559
9763
|
}, "" + this.props.rowNum + this.props.colNum, this.props.item.key, this.props.item.colSpan);
|
|
9560
9764
|
}
|
|
9561
9765
|
|
|
@@ -9585,7 +9789,9 @@ class ThComponent extends external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
9585
9789
|
}
|
|
9586
9790
|
}
|
|
9587
9791
|
|
|
9588
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("th", _extends({
|
|
9792
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("th", _extends({
|
|
9793
|
+
ref: this.wrapper
|
|
9794
|
+
}, thProps, {
|
|
9589
9795
|
style: _extends({}, thProps.style, locationFixed(fixed, locationWidth, "" + rowNum + colNum)),
|
|
9590
9796
|
className: prefixCls + "-tr-children-" + ((item == null ? void 0 : item.align) || 'left') + " " + (item.className || '') + " " + cls,
|
|
9591
9797
|
onClick: evn => onCellHead == null ? void 0 : onCellHead(item, colNum, rowNum, evn),
|
|
@@ -11022,7 +11228,6 @@ function SearchTagInput(props) {
|
|
|
11022
11228
|
}), index);
|
|
11023
11229
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
11024
11230
|
ref: inputRef,
|
|
11025
|
-
style: {},
|
|
11026
11231
|
className: prefixCls + "-input-contents",
|
|
11027
11232
|
size: size,
|
|
11028
11233
|
disabled: disabled,
|