uiw 4.21.11 → 4.21.14
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 +4 -27
- package/dist/uiw.js +49 -26
- package/dist/uiw.min.css +1 -1
- package/dist/uiw.min.js +1 -1
- package/package.json +60 -60
package/dist/uiw.css
CHANGED
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
}
|
|
31
31
|
.w-overlay-inline {
|
|
32
32
|
position: absolute;
|
|
33
|
-
overflow: visible;
|
|
34
33
|
overflow: initial;
|
|
35
34
|
}
|
|
36
35
|
.w-overlay-inline .w-overlay-container {
|
|
@@ -67,7 +66,6 @@
|
|
|
67
66
|
overflow: auto;
|
|
68
67
|
-webkit-user-select: none;
|
|
69
68
|
-moz-user-select: none;
|
|
70
|
-
-ms-user-select: none;
|
|
71
69
|
user-select: none;
|
|
72
70
|
}
|
|
73
71
|
.w-overlay-enter .w-overlay-backdrop {
|
|
@@ -147,7 +145,6 @@
|
|
|
147
145
|
.w-btn {
|
|
148
146
|
-webkit-user-select: none;
|
|
149
147
|
-moz-user-select: none;
|
|
150
|
-
-ms-user-select: none;
|
|
151
148
|
user-select: none;
|
|
152
149
|
display: inline-flex;
|
|
153
150
|
flex-direction: row;
|
|
@@ -983,9 +980,7 @@ sup.w-badge-count {
|
|
|
983
980
|
right: auto;
|
|
984
981
|
bottom: auto;
|
|
985
982
|
overflow: inherit;
|
|
986
|
-
width: auto;
|
|
987
983
|
width: initial;
|
|
988
|
-
height: auto;
|
|
989
984
|
height: initial;
|
|
990
985
|
}
|
|
991
986
|
.w-overlay.w-overlay-trigger .w-overlay-container {
|
|
@@ -1289,7 +1284,6 @@ sup.w-badge-count {
|
|
|
1289
1284
|
}
|
|
1290
1285
|
.w-timepicker-input .w-timepicker-close-btn {
|
|
1291
1286
|
display: none;
|
|
1292
|
-
min-height: 0;
|
|
1293
1287
|
min-height: initial;
|
|
1294
1288
|
color: #a5a5a5;
|
|
1295
1289
|
}
|
|
@@ -1409,7 +1403,6 @@ sup.w-badge-count {
|
|
|
1409
1403
|
.w-datepicker-caption {
|
|
1410
1404
|
-webkit-user-select: none;
|
|
1411
1405
|
-moz-user-select: none;
|
|
1412
|
-
-ms-user-select: none;
|
|
1413
1406
|
user-select: none;
|
|
1414
1407
|
text-align: center;
|
|
1415
1408
|
padding: 0 0 3px 0;
|
|
@@ -1513,7 +1506,6 @@ sup.w-badge-count {
|
|
|
1513
1506
|
color: #393e48;
|
|
1514
1507
|
-webkit-user-select: none;
|
|
1515
1508
|
-moz-user-select: none;
|
|
1516
|
-
-ms-user-select: none;
|
|
1517
1509
|
user-select: none;
|
|
1518
1510
|
font-size: 14px;
|
|
1519
1511
|
line-height: 21px;
|
|
@@ -1574,7 +1566,6 @@ sup.w-badge-count {
|
|
|
1574
1566
|
display: inline-block;
|
|
1575
1567
|
-webkit-user-select: none;
|
|
1576
1568
|
-moz-user-select: none;
|
|
1577
|
-
-ms-user-select: none;
|
|
1578
1569
|
user-select: none;
|
|
1579
1570
|
}
|
|
1580
1571
|
.w-calendar-btn-group {
|
|
@@ -1720,7 +1711,6 @@ sup.w-badge-count {
|
|
|
1720
1711
|
color: inherit;
|
|
1721
1712
|
-webkit-user-select: none;
|
|
1722
1713
|
-moz-user-select: none;
|
|
1723
|
-
-ms-user-select: none;
|
|
1724
1714
|
user-select: none;
|
|
1725
1715
|
transition: initial;
|
|
1726
1716
|
transition: background-color 0.3s;
|
|
@@ -1766,13 +1756,9 @@ sup.w-badge-count {
|
|
|
1766
1756
|
.w-menu-subitem-collapse {
|
|
1767
1757
|
transition: height 300ms;
|
|
1768
1758
|
position: relative !important;
|
|
1769
|
-
top: auto !important;
|
|
1770
1759
|
top: initial !important;
|
|
1771
|
-
left: auto !important;
|
|
1772
1760
|
left: initial !important;
|
|
1773
|
-
right: auto !important;
|
|
1774
1761
|
right: initial !important;
|
|
1775
|
-
bottom: auto !important;
|
|
1776
1762
|
bottom: initial !important;
|
|
1777
1763
|
width: auto !important;
|
|
1778
1764
|
overflow: hidden !important;
|
|
@@ -1882,7 +1868,6 @@ sup.w-badge-count {
|
|
|
1882
1868
|
color: rgba(255, 255, 255, 0.65);
|
|
1883
1869
|
}
|
|
1884
1870
|
.w-menu-dark.w-bordered {
|
|
1885
|
-
box-shadow: none;
|
|
1886
1871
|
box-shadow: initial;
|
|
1887
1872
|
}
|
|
1888
1873
|
.w-menu-dark .active {
|
|
@@ -2141,7 +2126,6 @@ sup.w-badge-count {
|
|
|
2141
2126
|
.w-copy-to-clipboard-select {
|
|
2142
2127
|
-webkit-user-select: text;
|
|
2143
2128
|
-moz-user-select: text;
|
|
2144
|
-
-ms-user-select: text;
|
|
2145
2129
|
user-select: text;
|
|
2146
2130
|
display: none;
|
|
2147
2131
|
}
|
|
@@ -3332,7 +3316,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3332
3316
|
display: none !important;
|
|
3333
3317
|
}
|
|
3334
3318
|
.w-monthpicker .w-monthpicker-close-btn {
|
|
3335
|
-
min-height: 0;
|
|
3336
3319
|
min-height: initial;
|
|
3337
3320
|
color: #a5a5a5;
|
|
3338
3321
|
cursor: pointer;
|
|
@@ -3484,7 +3467,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3484
3467
|
position: relative;
|
|
3485
3468
|
-webkit-user-select: none;
|
|
3486
3469
|
-moz-user-select: none;
|
|
3487
|
-
-ms-user-select: none;
|
|
3488
3470
|
user-select: none;
|
|
3489
3471
|
font-size: 12px;
|
|
3490
3472
|
}
|
|
@@ -3827,7 +3809,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3827
3809
|
display: inline-block;
|
|
3828
3810
|
-webkit-user-select: none;
|
|
3829
3811
|
-moz-user-select: none;
|
|
3830
|
-
-ms-user-select: none;
|
|
3831
3812
|
user-select: none;
|
|
3832
3813
|
font-size: 12px;
|
|
3833
3814
|
padding: 1px 5px;
|
|
@@ -3873,6 +3854,9 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3873
3854
|
padding: 0px;
|
|
3874
3855
|
height: 28px;
|
|
3875
3856
|
}
|
|
3857
|
+
.w-search-select-input-contents.w-input-small {
|
|
3858
|
+
min-width: 0;
|
|
3859
|
+
}
|
|
3876
3860
|
.w-search-select-input-contents .w-input-inner:hover {
|
|
3877
3861
|
box-shadow: none !important;
|
|
3878
3862
|
}
|
|
@@ -3973,8 +3957,7 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3973
3957
|
display: flex;
|
|
3974
3958
|
background: #f8f8f9;
|
|
3975
3959
|
-webkit-user-select: none;
|
|
3976
|
-
|
|
3977
|
-
user-select: none;
|
|
3960
|
+
user-select: none;
|
|
3978
3961
|
}
|
|
3979
3962
|
.w-split-bar::before,
|
|
3980
3963
|
.w-split-bar::after {
|
|
@@ -4293,7 +4276,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
4293
4276
|
padding-top: 5px;
|
|
4294
4277
|
}
|
|
4295
4278
|
.w-steps-dot .w-steps-item-description {
|
|
4296
|
-
max-width: none;
|
|
4297
4279
|
max-width: initial;
|
|
4298
4280
|
}
|
|
4299
4281
|
.w-steps-dot .w-steps-item-error .w-steps-item-tail i:after {
|
|
@@ -4331,7 +4313,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
4331
4313
|
.w-steps-dot .w-steps-item-tail {
|
|
4332
4314
|
padding: 0;
|
|
4333
4315
|
width: 100%;
|
|
4334
|
-
position: static;
|
|
4335
4316
|
position: initial;
|
|
4336
4317
|
height: 2px;
|
|
4337
4318
|
}
|
|
@@ -4415,7 +4396,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
4415
4396
|
cursor: pointer;
|
|
4416
4397
|
-webkit-user-select: none;
|
|
4417
4398
|
-moz-user-select: none;
|
|
4418
|
-
-ms-user-select: none;
|
|
4419
4399
|
user-select: none;
|
|
4420
4400
|
vertical-align: middle;
|
|
4421
4401
|
}
|
|
@@ -4516,7 +4496,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
4516
4496
|
}
|
|
4517
4497
|
.w-slider-vertical .w-slider-bar {
|
|
4518
4498
|
width: 4px;
|
|
4519
|
-
height: auto;
|
|
4520
4499
|
height: initial;
|
|
4521
4500
|
}
|
|
4522
4501
|
.w-slider-vertical .w-slider-handle {
|
|
@@ -4799,7 +4778,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
4799
4778
|
cursor: not-allowed;
|
|
4800
4779
|
-webkit-user-select: none;
|
|
4801
4780
|
-moz-user-select: none;
|
|
4802
|
-
-ms-user-select: none;
|
|
4803
4781
|
user-select: none;
|
|
4804
4782
|
color: rgba(0, 0, 0, 0.25);
|
|
4805
4783
|
}
|
|
@@ -5022,7 +5000,6 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
5022
5000
|
display: none;
|
|
5023
5001
|
}
|
|
5024
5002
|
.w-tree-label {
|
|
5025
|
-
line-height: normal;
|
|
5026
5003
|
line-height: initial;
|
|
5027
5004
|
}
|
|
5028
5005
|
.w-tree-label > * {
|
package/dist/uiw.js
CHANGED
|
@@ -4597,7 +4597,6 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
4597
4597
|
};
|
|
4598
4598
|
var popupRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(null);
|
|
4599
4599
|
var refNode = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef();
|
|
4600
|
-
var currentHeight = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(0);
|
|
4601
4600
|
var elementSource = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef();
|
|
4602
4601
|
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!!overlayProps.isOpen);
|
|
4603
4602
|
var {
|
|
@@ -4607,11 +4606,15 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
4607
4606
|
} = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
|
|
4608
4607
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default().useEffect(() => {
|
|
4609
4608
|
if (refNode.current && refNode.current.style && ele === elementSource.current) {
|
|
4610
|
-
var
|
|
4611
|
-
|
|
4612
|
-
refNode.current.
|
|
4609
|
+
var currentHeight = Number(refNode.current.style.height.substr(0, refNode.current.style.height.length - 2)); // 设置的高度 < '已有展开的高度',
|
|
4610
|
+
|
|
4611
|
+
if (refNode.current.getBoundingClientRect().height < currentHeight) {
|
|
4612
|
+
refNode.current.style.height = currentHeight + 'px';
|
|
4613
|
+
} else {
|
|
4614
|
+
refNode.current.style.height = currentHeight + height + 'px';
|
|
4615
|
+
}
|
|
4613
4616
|
}
|
|
4614
|
-
}, [height]);
|
|
4617
|
+
}, [height, ele]);
|
|
4615
4618
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4616
4619
|
if (collapse) setIsOpen(false);
|
|
4617
4620
|
}, [collapse]);
|
|
@@ -4628,25 +4631,12 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
4628
4631
|
}
|
|
4629
4632
|
}
|
|
4630
4633
|
|
|
4631
|
-
function onExit(node) {
|
|
4632
|
-
node.style.height = node.scrollHeight + "px";
|
|
4633
|
-
setIsOpen(false);
|
|
4634
|
-
}
|
|
4635
|
-
|
|
4636
|
-
function onExiting(node) {
|
|
4637
|
-
node.style.height = '0px';
|
|
4638
|
-
setContextHeight({
|
|
4639
|
-
height: -currentHeight.current,
|
|
4640
|
-
ele: elementSource.current
|
|
4641
|
-
});
|
|
4642
|
-
}
|
|
4643
|
-
|
|
4644
4634
|
function onEnter(node) {
|
|
4645
|
-
node.style.height = '
|
|
4635
|
+
node.style.height = '0px';
|
|
4636
|
+
refNode.current = node;
|
|
4646
4637
|
setIsOpen(true);
|
|
4647
|
-
currentHeight.current = popupRef.current.overlayDom.current.getBoundingClientRect().height;
|
|
4648
4638
|
setContextHeight({
|
|
4649
|
-
height:
|
|
4639
|
+
height: popupRef.current.overlayDom.current.getBoundingClientRect().height,
|
|
4650
4640
|
ele: elementSource.current
|
|
4651
4641
|
});
|
|
4652
4642
|
}
|
|
@@ -4657,8 +4647,20 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
4657
4647
|
|
|
4658
4648
|
function onEntered(node) {
|
|
4659
4649
|
// node.style.height = 'initial';
|
|
4660
|
-
node.style.height =
|
|
4661
|
-
|
|
4650
|
+
node.style.height = popupRef.current.overlayDom.current.getBoundingClientRect().height + 'px';
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
function onExiting(node) {
|
|
4654
|
+
node.style.height = '0px';
|
|
4655
|
+
setContextHeight({
|
|
4656
|
+
height: -popupRef.current.overlayDom.current.getBoundingClientRect().height,
|
|
4657
|
+
ele: elementSource.current
|
|
4658
|
+
});
|
|
4659
|
+
}
|
|
4660
|
+
|
|
4661
|
+
function onExit(node) {
|
|
4662
|
+
node.style.height = node.scrollHeight + "px";
|
|
4663
|
+
setIsOpen(false);
|
|
4662
4664
|
}
|
|
4663
4665
|
|
|
4664
4666
|
if (!collapse) {
|
|
@@ -8658,6 +8660,8 @@ function SearchSelect(props) {
|
|
|
8658
8660
|
var inputRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
8659
8661
|
var omitTagCount = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => maxTagCount && selectedValue.length > maxTagCount ? selectedValue.length - maxTagCount : 0, [selectedValue.length]);
|
|
8660
8662
|
var divRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
8663
|
+
var tagContentRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
8664
|
+
var [tagClientWidth, setTagClientWidth] = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(180);
|
|
8661
8665
|
|
|
8662
8666
|
var valueVerify = value => {
|
|
8663
8667
|
return value !== undefined && value !== '';
|
|
@@ -8804,6 +8808,15 @@ function SearchSelect(props) {
|
|
|
8804
8808
|
}
|
|
8805
8809
|
}
|
|
8806
8810
|
|
|
8811
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().useEffect(() => {
|
|
8812
|
+
var _tagContentRef$curren;
|
|
8813
|
+
|
|
8814
|
+
if ((_tagContentRef$curren = tagContentRef.current) != null && _tagContentRef$curren.clientWidth) {
|
|
8815
|
+
var _tagContentRef$curren2;
|
|
8816
|
+
|
|
8817
|
+
setTagClientWidth((_tagContentRef$curren2 = tagContentRef.current) == null ? void 0 : _tagContentRef$curren2.clientWidth);
|
|
8818
|
+
}
|
|
8819
|
+
}, [tagContentRef.current]);
|
|
8807
8820
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Dropdown, _extends({
|
|
8808
8821
|
className: cls,
|
|
8809
8822
|
trigger: "click",
|
|
@@ -8857,6 +8870,7 @@ function SearchSelect(props) {
|
|
|
8857
8870
|
children: isMultiple ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
8858
8871
|
className: [prefixCls + "-inner", prefixCls + "-search-" + showSearch, prefixCls + "-" + size].filter(Boolean).join(' ').trim(),
|
|
8859
8872
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
8873
|
+
ref: tagContentRef,
|
|
8860
8874
|
className: [prefixCls + "-tag-content", disabled && prefixCls + "-tag-content-disabled"].filter(Boolean).join(' ').trim(),
|
|
8861
8875
|
children: [isMultiple && selectedValue.slice(0, maxTagCount).map((item, index) => {
|
|
8862
8876
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_tag_esm, _extends({
|
|
@@ -8874,7 +8888,14 @@ function SearchSelect(props) {
|
|
|
8874
8888
|
e.stopPropagation();
|
|
8875
8889
|
handleItemsClick(index, item);
|
|
8876
8890
|
},
|
|
8877
|
-
children:
|
|
8891
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
8892
|
+
style: {
|
|
8893
|
+
maxWidth: tagClientWidth - 63,
|
|
8894
|
+
textOverflow: 'ellipsis',
|
|
8895
|
+
overflow: 'auto'
|
|
8896
|
+
},
|
|
8897
|
+
children: item.label
|
|
8898
|
+
})
|
|
8878
8899
|
}), index);
|
|
8879
8900
|
}), !!omitTagCount && /*#__PURE__*/(0,jsx_runtime.jsxs)(react_tag_esm, {
|
|
8880
8901
|
style: {
|
|
@@ -10565,8 +10586,10 @@ function Tabs(props) {
|
|
|
10565
10586
|
flowNav.nav.forEach(item => {
|
|
10566
10587
|
var curWidth = item.curWidth - deviation;
|
|
10567
10588
|
|
|
10568
|
-
if (
|
|
10569
|
-
|
|
10589
|
+
if (flowNav.displayStart > 0 || flowNav.displayEnd > 0) {
|
|
10590
|
+
if (curWidth < flowNav.displayStart || curWidth > flowNav.displayEnd) {
|
|
10591
|
+
hiddenNav.push(item.index);
|
|
10592
|
+
}
|
|
10570
10593
|
}
|
|
10571
10594
|
});
|
|
10572
10595
|
hiddenNavSet(hiddenNav);
|