uiw 4.22.1 → 4.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/uiw.css +19 -10
- package/dist/uiw.js +28 -53
- package/dist/uiw.min.css +1 -1
- package/dist/uiw.min.js +1 -1
- package/package.json +63 -62
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
<p align="center">
|
|
7
|
+
<a href="https://jaywcjlove.github.io/#/sponsor">
|
|
8
|
+
<img alt="Buy me a coffee" src="https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee">
|
|
9
|
+
</a>
|
|
7
10
|
<a href="https://github.com/uiwjs/uiw/actions">
|
|
8
11
|
<img alt="Github Actions" src="https://github.com/uiwjs/uiw/actions/workflows/deploy.yml/badge.svg">
|
|
9
12
|
</a>
|
|
@@ -11,7 +14,7 @@
|
|
|
11
14
|
<img alt="License MIT" src="https://img.shields.io/dub/l/vibe-d.svg">
|
|
12
15
|
</a>
|
|
13
16
|
<a href="https://github.com/facebook/jest">
|
|
14
|
-
<img alt="jest" src="https://
|
|
17
|
+
<img alt="jest" src="https://jestjs.io/img/jest-badge.svg">
|
|
15
18
|
</a>
|
|
16
19
|
<a href="https://gitpod.io/#https://github.com/uiwjs/uiw">
|
|
17
20
|
<img alt="Open in Gitpod" src="https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod">
|
package/dist/uiw.css
CHANGED
|
@@ -3877,6 +3877,8 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3877
3877
|
height: 100%;
|
|
3878
3878
|
display: flex;
|
|
3879
3879
|
flex-direction: row;
|
|
3880
|
+
--w-split-bar-shadow: #d5d5d5;
|
|
3881
|
+
--w-split-bar-shadow-disable: #d5d5d5;
|
|
3880
3882
|
}
|
|
3881
3883
|
.w-split-bar {
|
|
3882
3884
|
z-index: 10;
|
|
@@ -3884,8 +3886,10 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3884
3886
|
justify-content: center;
|
|
3885
3887
|
display: flex;
|
|
3886
3888
|
background: #f8f8f9;
|
|
3889
|
+
background: var(--w-split-bar-background, #f8f8f9);
|
|
3887
3890
|
-webkit-user-select: none;
|
|
3888
|
-
user-select: none;
|
|
3891
|
+
-moz-user-select: none;
|
|
3892
|
+
user-select: none;
|
|
3889
3893
|
}
|
|
3890
3894
|
.w-split-bar::before,
|
|
3891
3895
|
.w-split-bar::after {
|
|
@@ -3899,6 +3903,7 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3899
3903
|
.w-split-bar:hover:not(.disable) {
|
|
3900
3904
|
transition: background-color 0.3s;
|
|
3901
3905
|
background: #ecf7ff;
|
|
3906
|
+
background: var(--w-split-bar-hover-background, #ecf7ff);
|
|
3902
3907
|
}
|
|
3903
3908
|
.w-split.dragging .w-split-pane {
|
|
3904
3909
|
position: relative;
|
|
@@ -3921,13 +3926,13 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3921
3926
|
cursor: col-resize;
|
|
3922
3927
|
width: 5px;
|
|
3923
3928
|
flex-direction: column;
|
|
3924
|
-
box-shadow: inset 1px 0 0 0
|
|
3929
|
+
box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow), 1px 0 0 0 var(--w-split-bar-shadow);
|
|
3925
3930
|
}
|
|
3926
3931
|
.w-split-horizontal > .w-split-bar::before,
|
|
3927
3932
|
.w-split-horizontal > .w-split-bar::after {
|
|
3928
3933
|
height: 3px;
|
|
3929
3934
|
width: 100%;
|
|
3930
|
-
box-shadow: inset 0 1px 0 0
|
|
3935
|
+
box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow), 0 1px 0 0 var(--w-split-bar-shadow);
|
|
3931
3936
|
}
|
|
3932
3937
|
.w-split-horizontal > .w-split-bar::before {
|
|
3933
3938
|
margin-top: -1px;
|
|
@@ -3936,7 +3941,7 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3936
3941
|
margin-top: 3px;
|
|
3937
3942
|
}
|
|
3938
3943
|
.w-split-horizontal > .w-split-bar.disable {
|
|
3939
|
-
box-shadow: inset 1px 0 0 0
|
|
3944
|
+
box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow-disable), 1px 0 0 0 var(--w-split-bar-shadow-disable) !important;
|
|
3940
3945
|
}
|
|
3941
3946
|
.w-split-vertical {
|
|
3942
3947
|
flex-direction: column;
|
|
@@ -3947,16 +3952,16 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3947
3952
|
height: 5px;
|
|
3948
3953
|
align-items: center;
|
|
3949
3954
|
flex-direction: row;
|
|
3950
|
-
box-shadow: inset 0 1px 0 0
|
|
3955
|
+
box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow), 0 1px 0 0 var(--w-split-bar-shadow);
|
|
3951
3956
|
}
|
|
3952
3957
|
.w-split-vertical > .w-split-bar.disable {
|
|
3953
|
-
box-shadow: inset 0 1px 0 0
|
|
3958
|
+
box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow-disable), 0 1px 0 0 var(--w-split-bar-shadow-disable) !important;
|
|
3954
3959
|
}
|
|
3955
3960
|
.w-split-vertical > .w-split-bar::before,
|
|
3956
3961
|
.w-split-vertical > .w-split-bar::after {
|
|
3957
3962
|
height: 100%;
|
|
3958
3963
|
width: 3px;
|
|
3959
|
-
box-shadow: inset 1px 0 0 0
|
|
3964
|
+
box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow), 1px 0 0 0 var(--w-split-bar-shadow);
|
|
3960
3965
|
}
|
|
3961
3966
|
.w-split-vertical > .w-split-bar::before {
|
|
3962
3967
|
margin-left: -1px;
|
|
@@ -3973,7 +3978,8 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3973
3978
|
}
|
|
3974
3979
|
.w-split-vertical > .w-split-line-bar:hover::before,
|
|
3975
3980
|
.w-split-horizontal > .w-split-line-bar:hover::before {
|
|
3976
|
-
|
|
3981
|
+
background: #008ef0;
|
|
3982
|
+
background: var(--w-split-line-bar-hover-border-color, #008ef0);
|
|
3977
3983
|
}
|
|
3978
3984
|
.w-split-vertical > .w-split-line-bar {
|
|
3979
3985
|
height: 1px;
|
|
@@ -3995,7 +4001,8 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
3995
4001
|
.w-split-vertical > .w-split-line-bar div:hover::after,
|
|
3996
4002
|
.w-split-vertical > .w-split-line-bar div:active::after,
|
|
3997
4003
|
.w-split-vertical > .w-split-line-bar div:focus::after {
|
|
3998
|
-
background
|
|
4004
|
+
background: #008ef0;
|
|
4005
|
+
background: var(--w-split-line-bar-active-background, #008ef0);
|
|
3999
4006
|
}
|
|
4000
4007
|
.w-split-vertical > .w-split-line-bar div::after {
|
|
4001
4008
|
height: 1px;
|
|
@@ -4021,7 +4028,8 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
4021
4028
|
.w-split-horizontal > .w-split-line-bar div:hover::after,
|
|
4022
4029
|
.w-split-horizontal > .w-split-line-bar div:active::after,
|
|
4023
4030
|
.w-split-horizontal > .w-split-line-bar div:focus::after {
|
|
4024
|
-
background
|
|
4031
|
+
background: #008ef0;
|
|
4032
|
+
background: var(--w-split-line-bar-active-background, #008ef0);
|
|
4025
4033
|
}
|
|
4026
4034
|
.w-split-horizontal > .w-split-line-bar div::after {
|
|
4027
4035
|
width: 1px;
|
|
@@ -4047,6 +4055,7 @@ a.w-list-item:hover:not(.w-disabled) {
|
|
|
4047
4055
|
content: '';
|
|
4048
4056
|
display: block;
|
|
4049
4057
|
background-color: #d5d5d5;
|
|
4058
|
+
background-color: var(--w-split-line-bar-background, #d5d5d5);
|
|
4050
4059
|
}
|
|
4051
4060
|
.w-split-line-bar {
|
|
4052
4061
|
box-shadow: inset 0 0 0 0 !important;
|
package/dist/uiw.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
14
|
+
/***/ 535:
|
|
15
15
|
/***/ (function(module) {
|
|
16
16
|
|
|
17
17
|
/**!
|
|
@@ -91,7 +91,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
91
91
|
|
|
92
92
|
/***/ }),
|
|
93
93
|
|
|
94
|
-
/***/
|
|
94
|
+
/***/ 837:
|
|
95
95
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
96
96
|
|
|
97
97
|
"use strict";
|
|
@@ -110,14 +110,14 @@ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&
|
|
|
110
110
|
|
|
111
111
|
/***/ }),
|
|
112
112
|
|
|
113
|
-
/***/
|
|
113
|
+
/***/ 322:
|
|
114
114
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
115
115
|
|
|
116
116
|
"use strict";
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
if (true) {
|
|
120
|
-
module.exports = __webpack_require__(
|
|
120
|
+
module.exports = __webpack_require__(837);
|
|
121
121
|
} else {}
|
|
122
122
|
|
|
123
123
|
|
|
@@ -390,7 +390,7 @@ var getOffset = (element, target) => {
|
|
|
390
390
|
};
|
|
391
391
|
var getDefaultTarget = () => typeof window !== 'undefined' ? window : null;
|
|
392
392
|
// EXTERNAL MODULE: ../../node_modules/react/jsx-runtime.js
|
|
393
|
-
var jsx_runtime = __webpack_require__(
|
|
393
|
+
var jsx_runtime = __webpack_require__(322);
|
|
394
394
|
;// CONCATENATED MODULE: ../react-affix/esm/index.js
|
|
395
395
|
|
|
396
396
|
|
|
@@ -1467,11 +1467,11 @@ function Overlay(props) {
|
|
|
1467
1467
|
setIsOpen(true);
|
|
1468
1468
|
}
|
|
1469
1469
|
}, [visible]);
|
|
1470
|
-
var decoratedChild = typeof children === 'object' ? /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, _extends({}, dialogProps, {
|
|
1470
|
+
var decoratedChild = typeof children === 'object' ? ( /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, _extends({}, dialogProps, {
|
|
1471
1471
|
style: _extends({}, children.props.style, dialogProps.style),
|
|
1472
1472
|
className: [children.props.className, prefixCls + "-content"].filter(Boolean).join(' ').trim(),
|
|
1473
1473
|
tabIndex: 0
|
|
1474
|
-
})) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", _extends({}, dialogProps, {
|
|
1474
|
+
}))) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", _extends({}, dialogProps, {
|
|
1475
1475
|
className: prefixCls + "-content",
|
|
1476
1476
|
children: children
|
|
1477
1477
|
}));
|
|
@@ -1546,9 +1546,9 @@ function Overlay(props) {
|
|
|
1546
1546
|
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(decoratedChild, {
|
|
1547
1547
|
'data-status': status
|
|
1548
1548
|
})
|
|
1549
|
-
}) : /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(decoratedChild, {
|
|
1549
|
+
}) : ( /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(decoratedChild, {
|
|
1550
1550
|
'data-status': status
|
|
1551
|
-
})]
|
|
1551
|
+
}))]
|
|
1552
1552
|
});
|
|
1553
1553
|
}
|
|
1554
1554
|
}));
|
|
@@ -2244,6 +2244,7 @@ formatter.utc = function (str, date) {
|
|
|
2244
2244
|
};
|
|
2245
2245
|
|
|
2246
2246
|
|
|
2247
|
+
//# sourceMappingURL=index.js.map
|
|
2247
2248
|
|
|
2248
2249
|
;// CONCATENATED MODULE: ../react-overlay-trigger/esm/utils.js
|
|
2249
2250
|
var utils_canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
@@ -5020,7 +5021,7 @@ function getElementHeight(elm) {
|
|
|
5020
5021
|
for (var i = 0; i < childNodes.length; i++) {
|
|
5021
5022
|
var childNode = childNodes[i];
|
|
5022
5023
|
var computedStyle = getComputedStyle(childNode);
|
|
5023
|
-
var height = childNode.offsetHeight + parseInt(computedStyle.marginTop) + parseInt(computedStyle.marginBottom) + parseInt(computedStyle.borderTopWidth) + parseInt(computedStyle.borderBottomWidth)
|
|
5024
|
+
var height = childNode.offsetHeight + +parseInt(computedStyle.marginTop) + parseInt(computedStyle.marginBottom) + parseInt(computedStyle.borderTopWidth) + parseInt(computedStyle.borderBottomWidth);
|
|
5024
5025
|
totalHeight += height;
|
|
5025
5026
|
var beforeStyle = getComputedStyle(childNode, '::before');
|
|
5026
5027
|
var afterStyle = getComputedStyle(childNode, '::after');
|
|
@@ -5126,7 +5127,7 @@ Collapse.Panel = Panel;
|
|
|
5126
5127
|
|
|
5127
5128
|
/* harmony default export */ const react_collapse_esm = (esm_Collapse);
|
|
5128
5129
|
// EXTERNAL MODULE: ../../node_modules/@uiw/copy-to-clipboard/dist/copy-to-clipboard.umd.js
|
|
5129
|
-
var copy_to_clipboard_umd = __webpack_require__(
|
|
5130
|
+
var copy_to_clipboard_umd = __webpack_require__(535);
|
|
5130
5131
|
var copy_to_clipboard_umd_default = /*#__PURE__*/__webpack_require__.n(copy_to_clipboard_umd);
|
|
5131
5132
|
;// CONCATENATED MODULE: ../react-copy-to-clipboard/esm/style/index.css
|
|
5132
5133
|
// extracted by mini-css-extract-plugin
|
|
@@ -8153,7 +8154,7 @@ function SearchSelect(props) {
|
|
|
8153
8154
|
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-split/esm/index.js
|
|
8154
8155
|
|
|
8155
8156
|
|
|
8156
|
-
var react_split_esm_excluded = ["prefixCls", "className", "children", "mode", "visiable", "renderBar", "lineBar", "disable", "onDragEnd", "onDragging"];
|
|
8157
|
+
var react_split_esm_excluded = ["prefixCls", "className", "children", "mode", "visiable", "visible", "renderBar", "lineBar", "disable", "onDragEnd", "onDragging"];
|
|
8157
8158
|
|
|
8158
8159
|
|
|
8159
8160
|
|
|
@@ -8181,21 +8182,17 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
|
|
|
8181
8182
|
this.onDragEnd = this.onDragEnd.bind(this);
|
|
8182
8183
|
this.onDragging = this.onDragging.bind(this);
|
|
8183
8184
|
}
|
|
8184
|
-
|
|
8185
8185
|
componentWillUnmount() {
|
|
8186
8186
|
this.removeEvent();
|
|
8187
8187
|
}
|
|
8188
|
-
|
|
8189
8188
|
removeEvent() {
|
|
8190
8189
|
window.removeEventListener('mousemove', this.onDragging, false);
|
|
8191
8190
|
window.removeEventListener('mouseup', this.onDragEnd, false);
|
|
8192
8191
|
}
|
|
8193
|
-
|
|
8194
8192
|
onMouseDown(paneNumber, env) {
|
|
8195
8193
|
if (!env.target || !this.warpper) {
|
|
8196
8194
|
return;
|
|
8197
8195
|
}
|
|
8198
|
-
|
|
8199
8196
|
this.paneNumber = paneNumber;
|
|
8200
8197
|
this.startX = env.clientX;
|
|
8201
8198
|
this.startY = env.clientY;
|
|
@@ -8205,35 +8202,29 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
|
|
|
8205
8202
|
var nextTarget = this.target.nextElementSibling;
|
|
8206
8203
|
this.boxWidth = this.warpper.clientWidth;
|
|
8207
8204
|
this.boxHeight = this.warpper.clientHeight;
|
|
8208
|
-
|
|
8209
8205
|
if (prevTarget) {
|
|
8210
8206
|
this.preWidth = prevTarget.clientWidth;
|
|
8211
8207
|
this.preHeight = prevTarget.clientHeight;
|
|
8212
8208
|
}
|
|
8213
|
-
|
|
8214
8209
|
if (nextTarget) {
|
|
8215
8210
|
this.nextWidth = nextTarget.clientWidth;
|
|
8216
8211
|
this.nextHeight = nextTarget.clientHeight;
|
|
8217
8212
|
}
|
|
8218
|
-
|
|
8219
8213
|
window.addEventListener('mousemove', this.onDragging);
|
|
8220
8214
|
window.addEventListener('mouseup', this.onDragEnd, false);
|
|
8221
8215
|
this.setState({
|
|
8222
8216
|
dragging: true
|
|
8223
8217
|
});
|
|
8224
8218
|
}
|
|
8225
|
-
|
|
8226
8219
|
onDragging(env) {
|
|
8227
8220
|
if (!this.move) {
|
|
8228
8221
|
return;
|
|
8229
8222
|
}
|
|
8230
|
-
|
|
8231
8223
|
if (!this.state.dragging) {
|
|
8232
8224
|
this.setState({
|
|
8233
8225
|
dragging: true
|
|
8234
8226
|
});
|
|
8235
8227
|
}
|
|
8236
|
-
|
|
8237
8228
|
var {
|
|
8238
8229
|
mode,
|
|
8239
8230
|
onDragging
|
|
@@ -8244,43 +8235,34 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
|
|
|
8244
8235
|
var y = env.clientY - this.startY;
|
|
8245
8236
|
this.preSize = 0;
|
|
8246
8237
|
this.nextSize = 0;
|
|
8247
|
-
|
|
8248
8238
|
if (mode === 'horizontal') {
|
|
8249
8239
|
this.preSize = this.preWidth + x > -1 ? this.preWidth + x : 0;
|
|
8250
8240
|
this.nextSize = this.nextWidth - x > -1 ? this.nextWidth - x : 0;
|
|
8251
|
-
|
|
8252
8241
|
if (this.preSize === 0 || this.nextSize === 0) {
|
|
8253
8242
|
return;
|
|
8254
8243
|
}
|
|
8255
|
-
|
|
8256
8244
|
this.preSize = (this.preSize / this.boxWidth >= 1 ? 1 : this.preSize / this.boxWidth) * 100;
|
|
8257
8245
|
this.nextSize = (this.nextSize / this.boxWidth >= 1 ? 1 : this.nextSize / this.boxWidth) * 100;
|
|
8258
|
-
|
|
8259
8246
|
if (prevTarget && nextTarget) {
|
|
8260
8247
|
prevTarget.style.width = this.preSize + "%";
|
|
8261
8248
|
nextTarget.style.width = this.nextSize + "%";
|
|
8262
8249
|
}
|
|
8263
8250
|
}
|
|
8264
|
-
|
|
8265
8251
|
if (mode === 'vertical' && this.preHeight + y > -1 && this.nextHeight - y > -1) {
|
|
8266
8252
|
this.preSize = this.preHeight + y > -1 ? this.preHeight + y : 0;
|
|
8267
8253
|
this.nextSize = this.nextHeight - y > -1 ? this.nextHeight - y : 0;
|
|
8268
8254
|
this.preSize = (this.preSize / this.boxHeight >= 1 ? 1 : this.preSize / this.boxHeight) * 100;
|
|
8269
8255
|
this.nextSize = (this.nextSize / this.boxHeight >= 1 ? 1 : this.nextSize / this.boxHeight) * 100;
|
|
8270
|
-
|
|
8271
8256
|
if (this.preSize === 0 || this.nextSize === 0) {
|
|
8272
8257
|
return;
|
|
8273
8258
|
}
|
|
8274
|
-
|
|
8275
8259
|
if (prevTarget && nextTarget) {
|
|
8276
8260
|
prevTarget.style.height = this.preSize + "%";
|
|
8277
8261
|
nextTarget.style.height = this.nextSize + "%";
|
|
8278
8262
|
}
|
|
8279
8263
|
}
|
|
8280
|
-
|
|
8281
8264
|
onDragging && onDragging(this.preSize, this.nextSize, this.paneNumber);
|
|
8282
8265
|
}
|
|
8283
|
-
|
|
8284
8266
|
onDragEnd() {
|
|
8285
8267
|
var {
|
|
8286
8268
|
onDragEnd
|
|
@@ -8292,21 +8274,20 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
|
|
|
8292
8274
|
dragging: false
|
|
8293
8275
|
});
|
|
8294
8276
|
}
|
|
8295
|
-
|
|
8296
8277
|
render() {
|
|
8278
|
+
var _this$props$visible;
|
|
8297
8279
|
var _this$props = this.props,
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8280
|
+
{
|
|
8281
|
+
prefixCls,
|
|
8282
|
+
className,
|
|
8283
|
+
children,
|
|
8284
|
+
mode,
|
|
8285
|
+
visible = (_this$props$visible = this.props.visible) != null ? _this$props$visible : this.props.visiable,
|
|
8286
|
+
renderBar,
|
|
8287
|
+
lineBar,
|
|
8288
|
+
disable
|
|
8289
|
+
} = _this$props,
|
|
8290
|
+
other = _objectWithoutPropertiesLoose(_this$props, react_split_esm_excluded);
|
|
8310
8291
|
var {
|
|
8311
8292
|
dragging
|
|
8312
8293
|
} = this.state;
|
|
@@ -8321,41 +8302,35 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
|
|
|
8321
8302
|
className: [prefixCls + "-pane", element.props.className].filter(Boolean).join(' ').trim(),
|
|
8322
8303
|
style: _extends({}, element.props.style)
|
|
8323
8304
|
});
|
|
8324
|
-
var
|
|
8305
|
+
var visibleBar = visible === true || visible && visible.includes(idx + 1) || false;
|
|
8325
8306
|
var barProps = {
|
|
8326
8307
|
className: [prefixCls + "-bar", lineBar ? prefixCls + "-line-bar" : null, !lineBar ? prefixCls + "-large-bar" : null].filter(Boolean).join(' ').trim()
|
|
8327
8308
|
};
|
|
8328
|
-
|
|
8329
8309
|
if (disable === true || disable && disable.includes(idx + 1)) {
|
|
8330
8310
|
barProps.className = [barProps.className, disable ? 'disable' : null].filter(Boolean).join(' ').trim();
|
|
8331
8311
|
}
|
|
8332
|
-
|
|
8333
8312
|
var BarCom = null;
|
|
8334
|
-
|
|
8335
|
-
if (idx !== 0 && visiableBar && renderBar) {
|
|
8313
|
+
if (idx !== 0 && visibleBar && renderBar) {
|
|
8336
8314
|
BarCom = renderBar(_extends({}, barProps, {
|
|
8337
8315
|
onMouseDown: this.onMouseDown.bind(this, idx + 1)
|
|
8338
8316
|
}));
|
|
8339
|
-
} else if (idx !== 0 &&
|
|
8317
|
+
} else if (idx !== 0 && visibleBar) {
|
|
8340
8318
|
BarCom = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement('div', _extends({}, barProps), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
8341
8319
|
onMouseDown: this.onMouseDown.bind(this, idx + 1)
|
|
8342
8320
|
}));
|
|
8343
8321
|
}
|
|
8344
|
-
|
|
8345
8322
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
8346
8323
|
children: [BarCom, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(element, _extends({}, props))]
|
|
8347
8324
|
}, idx);
|
|
8348
8325
|
})
|
|
8349
8326
|
}));
|
|
8350
8327
|
}
|
|
8351
|
-
|
|
8352
8328
|
}
|
|
8353
8329
|
Split.defaultProps = {
|
|
8354
8330
|
prefixCls: 'w-split',
|
|
8355
8331
|
visiable: true,
|
|
8356
8332
|
mode: 'horizontal'
|
|
8357
8333
|
};
|
|
8358
|
-
|
|
8359
8334
|
;// CONCATENATED MODULE: ../react-steps/esm/style/index.css
|
|
8360
8335
|
// extracted by mini-css-extract-plugin
|
|
8361
8336
|
/* harmony default export */ const react_steps_esm_style = ({});
|