vxe-pc-ui 4.8.24 → 4.8.25
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/es/icon/style.css +1 -1
- package/es/language/en-US.js +12 -12
- package/es/split/src/split.js +189 -53
- package/es/split/style.css +74 -9
- package/es/split/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +5 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-split/style.css +74 -9
- package/es/vxe-split/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +201 -84
- package/lib/index.umd.min.js +1 -1
- package/lib/language/en-US.js +12 -12
- package/lib/language/en-US.min.js +1 -1
- package/lib/language/en-US.umd.js +12 -12
- package/lib/split/src/split.js +195 -82
- package/lib/split/src/split.min.js +1 -1
- package/lib/split/style/style.css +74 -9
- package/lib/split/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +5 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-split/style/style.css +74 -9
- package/lib/vxe-split/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/language/en-US.ts +12 -12
- package/packages/split/src/split.ts +196 -54
- package/packages/ui/index.ts +4 -0
- package/styles/components/split.scss +92 -16
- package/styles/theme/base.scss +2 -0
- package/styles/theme/dark.scss +1 -0
- package/styles/theme/light.scss +1 -0
- package/styles/variable.scss +1 -0
- package/types/components/gantt-module/gantt-view.d.ts +12 -12
- package/types/components/split.d.ts +14 -0
- /package/es/icon/{iconfont.1755847372488.ttf → iconfont.1755949930275.ttf} +0 -0
- /package/es/icon/{iconfont.1755847372488.woff → iconfont.1755949930275.woff} +0 -0
- /package/es/icon/{iconfont.1755847372488.woff2 → iconfont.1755949930275.woff2} +0 -0
- /package/es/{iconfont.1755847372488.ttf → iconfont.1755949930275.ttf} +0 -0
- /package/es/{iconfont.1755847372488.woff → iconfont.1755949930275.woff} +0 -0
- /package/es/{iconfont.1755847372488.woff2 → iconfont.1755949930275.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1755847372488.ttf → iconfont.1755949930275.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1755847372488.woff → iconfont.1755949930275.woff} +0 -0
- /package/lib/icon/style/{iconfont.1755847372488.woff2 → iconfont.1755949930275.woff2} +0 -0
- /package/lib/{iconfont.1755847372488.ttf → iconfont.1755949930275.ttf} +0 -0
- /package/lib/{iconfont.1755847372488.woff → iconfont.1755949930275.woff} +0 -0
- /package/lib/{iconfont.1755847372488.woff2 → iconfont.1755949930275.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3588,14 +3588,14 @@ function checkDynamic() {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3590
3590
|
|
|
3591
|
-
const log_version = `ui v${"4.8.
|
|
3591
|
+
const log_version = `ui v${"4.8.25"}`;
|
|
3592
3592
|
const warnLog = log.create('warn', log_version);
|
|
3593
3593
|
const errLog = log.create('error', log_version);
|
|
3594
3594
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3595
3595
|
|
|
3596
3596
|
|
|
3597
3597
|
|
|
3598
|
-
const ui_version = "4.8.
|
|
3598
|
+
const ui_version = "4.8.25";
|
|
3599
3599
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3600
3600
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3601
3601
|
function config(options) {
|
|
@@ -3896,6 +3896,10 @@ setConfig({
|
|
|
3896
3896
|
itemConfig: {
|
|
3897
3897
|
minWidth: 40,
|
|
3898
3898
|
minHeight: 40
|
|
3899
|
+
},
|
|
3900
|
+
resizeConfig: {
|
|
3901
|
+
// immediate: false,
|
|
3902
|
+
showTip: true
|
|
3899
3903
|
}
|
|
3900
3904
|
},
|
|
3901
3905
|
splitPane: {},
|
|
@@ -33692,6 +33696,7 @@ const Select = VxeSelect;
|
|
|
33692
33696
|
items: Array,
|
|
33693
33697
|
itemConfig: Object,
|
|
33694
33698
|
barConfig: Object,
|
|
33699
|
+
resizeConfig: Object,
|
|
33695
33700
|
actionConfig: Object
|
|
33696
33701
|
},
|
|
33697
33702
|
emits: ['action-dblclick', 'action-click', 'toggle-expand', 'resize-start', 'resize-drag', 'resize-end'],
|
|
@@ -33702,6 +33707,7 @@ const Select = VxeSelect;
|
|
|
33702
33707
|
} = context;
|
|
33703
33708
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
33704
33709
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
33710
|
+
const refResizableSplitTip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
33705
33711
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
33706
33712
|
staticItems: [],
|
|
33707
33713
|
itemList: []
|
|
@@ -33716,6 +33722,9 @@ const Select = VxeSelect;
|
|
|
33716
33722
|
const computeBarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
33717
33723
|
return Object.assign({}, getConfig().split.barConfig, props.barConfig);
|
|
33718
33724
|
});
|
|
33725
|
+
const computeResizeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
33726
|
+
return Object.assign({}, getConfig().split.resizeConfig, props.resizeConfig);
|
|
33727
|
+
});
|
|
33719
33728
|
const computeActionOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
33720
33729
|
return Object.assign({}, getConfig().split.actionConfig, props.actionConfig);
|
|
33721
33730
|
});
|
|
@@ -34007,113 +34016,203 @@ const Select = VxeSelect;
|
|
|
34007
34016
|
if (!item.isExpand) {
|
|
34008
34017
|
return;
|
|
34009
34018
|
}
|
|
34019
|
+
const containerRect = el.getBoundingClientRect();
|
|
34020
|
+
const barRect = barEl.getBoundingClientRect();
|
|
34021
|
+
const rsSplitLineEl = refResizableSplitTip.value;
|
|
34022
|
+
const rsSplitTipEl = rsSplitLineEl ? rsSplitLineEl.children[0] : null;
|
|
34010
34023
|
const isFoldNext = computeIsFoldNext.value;
|
|
34011
34024
|
const itemOpts = computeItemOpts.value;
|
|
34025
|
+
const resizeOpts = computeResizeOpts.value;
|
|
34026
|
+
const {
|
|
34027
|
+
immediate
|
|
34028
|
+
} = resizeOpts;
|
|
34012
34029
|
const allMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(itemOpts.minWidth);
|
|
34013
34030
|
const allMinHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(itemOpts.minHeight);
|
|
34014
34031
|
const targetItem = itemList[itemIndex + (isFoldNext ? 1 : -1)];
|
|
34015
|
-
const
|
|
34016
|
-
const
|
|
34017
|
-
const
|
|
34018
|
-
const
|
|
34019
|
-
|
|
34020
|
-
|
|
34021
|
-
|
|
34022
|
-
const
|
|
34023
|
-
const
|
|
34024
|
-
const
|
|
34025
|
-
const
|
|
34026
|
-
const
|
|
34027
|
-
|
|
34028
|
-
|
|
34029
|
-
|
|
34032
|
+
const prevItem = itemList[itemIndex + (isFoldNext ? 0 : -1)];
|
|
34033
|
+
const nextItem = itemList[itemIndex + (isFoldNext ? 1 : 0)];
|
|
34034
|
+
const prevEl = targetItem ? el.querySelector(`.vxe-split-pane[itemid="${prevItem.id}"]`) : null;
|
|
34035
|
+
const nextEl = item ? el.querySelector(`.vxe-split-pane[itemid="${nextItem.id}"]`) : null;
|
|
34036
|
+
if (!prevEl || !nextEl) {
|
|
34037
|
+
return;
|
|
34038
|
+
}
|
|
34039
|
+
const barOffsetX = Math.ceil(barRect.width - (evnt.clientX - barRect.left));
|
|
34040
|
+
const barOffsetY = Math.ceil(evnt.clientY - barRect.top);
|
|
34041
|
+
const prevWidth = prevEl.offsetWidth;
|
|
34042
|
+
const nextWidth = nextEl.offsetWidth;
|
|
34043
|
+
const prevMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(prevItem ? getGlobalDefaultConfig(prevItem.minWidth, allMinWidth) : allMinWidth);
|
|
34044
|
+
const nextMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(nextItem ? getGlobalDefaultConfig(nextItem.minWidth, allMinWidth) : allMinWidth);
|
|
34045
|
+
const minOffsetLeft = prevEl.offsetLeft + prevMinWidth - barOffsetX;
|
|
34046
|
+
const maxOffsetLeft = nextEl.offsetLeft + nextEl.offsetWidth - nextMinWidth - barOffsetX;
|
|
34047
|
+
const startOffsetLeft = evnt.clientX - containerRect.left;
|
|
34048
|
+
let targetOffsetWidth = -1;
|
|
34049
|
+
let prevResizeWidth = 0;
|
|
34050
|
+
let nextResizeWidth = 0;
|
|
34051
|
+
let offsetLeft = startOffsetLeft;
|
|
34052
|
+
const prevHeight = prevEl.offsetHeight;
|
|
34053
|
+
const nextHeight = nextEl.offsetHeight;
|
|
34054
|
+
const prevMinHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(prevItem ? getGlobalDefaultConfig(prevItem.minHeight, allMinHeight) : allMinHeight);
|
|
34055
|
+
const nextMinHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(nextItem ? getGlobalDefaultConfig(nextItem.minHeight, allMinHeight) : allMinHeight);
|
|
34056
|
+
const minOffsetTop = prevEl.offsetTop + prevMinHeight + barOffsetY;
|
|
34057
|
+
const maxOffsetTop = nextEl.offsetTop + nextEl.offsetHeight - nextMinHeight + barOffsetY;
|
|
34058
|
+
const startOffsetTop = evnt.clientY - containerRect.top;
|
|
34059
|
+
let targetOffsetHeight = -1;
|
|
34060
|
+
let prevResizeHeight = 0;
|
|
34061
|
+
let nextResizeHeight = 0;
|
|
34062
|
+
let offsetTop = startOffsetTop;
|
|
34063
|
+
const handleReStyle = evnt => {
|
|
34064
|
+
if (!rsSplitLineEl) {
|
|
34065
|
+
return;
|
|
34066
|
+
}
|
|
34067
|
+
const rsNumPrevEl = rsSplitTipEl ? rsSplitTipEl.children[0] : null;
|
|
34068
|
+
const rsNumNextEl = rsSplitTipEl ? rsSplitTipEl.children[1] : null;
|
|
34030
34069
|
if (vertical) {
|
|
34031
|
-
|
|
34032
|
-
if (
|
|
34033
|
-
if (
|
|
34034
|
-
|
|
34035
|
-
|
|
34036
|
-
|
|
34037
|
-
|
|
34038
|
-
|
|
34039
|
-
item,
|
|
34040
|
-
name: item.name,
|
|
34041
|
-
offsetHeight: offsetTop,
|
|
34042
|
-
resizeHeight: reHeight,
|
|
34043
|
-
offsetWidth: 0,
|
|
34044
|
-
resizeWidth: 0
|
|
34045
|
-
}, evnt);
|
|
34046
|
-
}
|
|
34070
|
+
let tipWidth = 0;
|
|
34071
|
+
if (rsNumPrevEl) {
|
|
34072
|
+
if (targetOffsetHeight < 0) {
|
|
34073
|
+
rsNumPrevEl.textContent = `${Math.floor(prevResizeHeight)}px`;
|
|
34074
|
+
rsNumPrevEl.style.display = 'block';
|
|
34075
|
+
tipWidth = rsNumPrevEl.offsetWidth;
|
|
34076
|
+
} else {
|
|
34077
|
+
rsNumPrevEl.style.display = 'none';
|
|
34047
34078
|
}
|
|
34048
|
-
}
|
|
34049
|
-
|
|
34050
|
-
|
|
34051
|
-
|
|
34052
|
-
|
|
34053
|
-
|
|
34054
|
-
|
|
34055
|
-
|
|
34056
|
-
name: item.name,
|
|
34057
|
-
offsetHeight: offsetTop,
|
|
34058
|
-
resizeHeight: reHeight,
|
|
34059
|
-
offsetWidth: 0,
|
|
34060
|
-
resizeWidth: 0
|
|
34061
|
-
}, evnt);
|
|
34062
|
-
}
|
|
34079
|
+
}
|
|
34080
|
+
if (rsNumNextEl) {
|
|
34081
|
+
if (targetOffsetHeight < 0) {
|
|
34082
|
+
rsNumNextEl.style.display = 'none';
|
|
34083
|
+
} else {
|
|
34084
|
+
rsNumNextEl.textContent = `${Math.floor(nextResizeHeight)}px`;
|
|
34085
|
+
rsNumNextEl.style.display = 'block';
|
|
34086
|
+
tipWidth = rsNumNextEl.offsetWidth;
|
|
34063
34087
|
}
|
|
34064
34088
|
}
|
|
34089
|
+
let rsLeft = Math.max(1, evnt.clientX - containerRect.left - tipWidth / 2);
|
|
34090
|
+
if (rsLeft > containerRect.width - tipWidth - 1) {
|
|
34091
|
+
rsLeft = containerRect.width - tipWidth - 1;
|
|
34092
|
+
}
|
|
34093
|
+
rsSplitLineEl.style.left = '0';
|
|
34094
|
+
rsSplitLineEl.style.top = `${offsetTop}px`;
|
|
34095
|
+
if (rsSplitTipEl) {
|
|
34096
|
+
rsSplitTipEl.style.left = `${rsLeft}px`;
|
|
34097
|
+
}
|
|
34065
34098
|
} else {
|
|
34066
|
-
|
|
34067
|
-
if (
|
|
34068
|
-
if (
|
|
34069
|
-
|
|
34070
|
-
|
|
34071
|
-
|
|
34072
|
-
|
|
34073
|
-
|
|
34074
|
-
item,
|
|
34075
|
-
name: item.name,
|
|
34076
|
-
offsetHeight: 0,
|
|
34077
|
-
resizeHeight: 0,
|
|
34078
|
-
offsetWidth: offsetLeft,
|
|
34079
|
-
resizeWidth: reWidth
|
|
34080
|
-
}, evnt);
|
|
34081
|
-
}
|
|
34099
|
+
let tipHeight = 0;
|
|
34100
|
+
if (rsNumPrevEl) {
|
|
34101
|
+
if (targetOffsetWidth < 0) {
|
|
34102
|
+
rsNumPrevEl.textContent = `${Math.floor(prevResizeWidth)}px`;
|
|
34103
|
+
rsNumPrevEl.style.display = 'block';
|
|
34104
|
+
tipHeight = rsNumPrevEl.offsetHeight;
|
|
34105
|
+
} else {
|
|
34106
|
+
rsNumPrevEl.style.display = 'none';
|
|
34082
34107
|
}
|
|
34083
|
-
}
|
|
34084
|
-
|
|
34085
|
-
|
|
34086
|
-
|
|
34087
|
-
|
|
34088
|
-
|
|
34089
|
-
|
|
34090
|
-
|
|
34091
|
-
name: item.name,
|
|
34092
|
-
offsetHeight: 0,
|
|
34093
|
-
resizeHeight: 0,
|
|
34094
|
-
offsetWidth: offsetLeft,
|
|
34095
|
-
resizeWidth: reWidth
|
|
34096
|
-
}, evnt);
|
|
34097
|
-
}
|
|
34108
|
+
}
|
|
34109
|
+
if (rsNumNextEl) {
|
|
34110
|
+
if (targetOffsetWidth < 0) {
|
|
34111
|
+
rsNumNextEl.style.display = 'none';
|
|
34112
|
+
} else {
|
|
34113
|
+
rsNumNextEl.textContent = `${Math.floor(nextResizeWidth)}px`;
|
|
34114
|
+
rsNumNextEl.style.display = 'block';
|
|
34115
|
+
tipHeight = rsNumNextEl.offsetHeight;
|
|
34098
34116
|
}
|
|
34099
34117
|
}
|
|
34118
|
+
let rsTop = Math.max(1, evnt.clientY - containerRect.top - tipHeight / 2);
|
|
34119
|
+
if (rsTop > containerRect.height - tipHeight - 1) {
|
|
34120
|
+
rsTop = containerRect.height - tipHeight - 1;
|
|
34121
|
+
}
|
|
34122
|
+
rsSplitLineEl.style.top = '0';
|
|
34123
|
+
rsSplitLineEl.style.left = `${offsetLeft}px`;
|
|
34124
|
+
if (rsSplitTipEl) {
|
|
34125
|
+
rsSplitTipEl.style.top = `${rsTop}px`;
|
|
34126
|
+
}
|
|
34127
|
+
}
|
|
34128
|
+
};
|
|
34129
|
+
const handleUpdate = () => {
|
|
34130
|
+
if (vertical) {
|
|
34131
|
+
prevItem.resizeHeight = prevResizeHeight;
|
|
34132
|
+
nextItem.resizeHeight = nextResizeHeight;
|
|
34133
|
+
} else {
|
|
34134
|
+
prevItem.resizeWidth = prevResizeWidth;
|
|
34135
|
+
nextItem.resizeWidth = nextResizeWidth;
|
|
34136
|
+
}
|
|
34137
|
+
};
|
|
34138
|
+
const handleDrag = evnt => {
|
|
34139
|
+
if (vertical) {
|
|
34140
|
+
offsetTop = evnt.clientY - containerRect.top;
|
|
34141
|
+
if (offsetTop < minOffsetTop) {
|
|
34142
|
+
offsetTop = minOffsetTop;
|
|
34143
|
+
}
|
|
34144
|
+
if (offsetTop > maxOffsetTop) {
|
|
34145
|
+
offsetTop = maxOffsetTop;
|
|
34146
|
+
}
|
|
34147
|
+
targetOffsetHeight = offsetTop - startOffsetTop;
|
|
34148
|
+
prevResizeHeight = prevHeight + targetOffsetHeight;
|
|
34149
|
+
nextResizeHeight = nextHeight - targetOffsetHeight;
|
|
34150
|
+
} else {
|
|
34151
|
+
offsetLeft = evnt.clientX - containerRect.left;
|
|
34152
|
+
if (offsetLeft < minOffsetLeft) {
|
|
34153
|
+
offsetLeft = minOffsetLeft;
|
|
34154
|
+
}
|
|
34155
|
+
if (offsetLeft > maxOffsetLeft) {
|
|
34156
|
+
offsetLeft = maxOffsetLeft;
|
|
34157
|
+
}
|
|
34158
|
+
targetOffsetWidth = offsetLeft - startOffsetLeft;
|
|
34159
|
+
prevResizeWidth = prevWidth + targetOffsetWidth;
|
|
34160
|
+
nextResizeWidth = nextWidth - targetOffsetWidth;
|
|
34161
|
+
}
|
|
34162
|
+
if (immediate) {
|
|
34163
|
+
if (vertical) {
|
|
34164
|
+
prevEl.style.height = toCssUnit(prevResizeHeight);
|
|
34165
|
+
nextEl.style.height = toCssUnit(nextResizeHeight);
|
|
34166
|
+
} else {
|
|
34167
|
+
prevEl.style.width = toCssUnit(prevResizeWidth);
|
|
34168
|
+
nextEl.style.width = toCssUnit(nextResizeWidth);
|
|
34169
|
+
}
|
|
34170
|
+
}
|
|
34171
|
+
if (rsSplitLineEl) {
|
|
34172
|
+
handleReStyle(evnt);
|
|
34100
34173
|
}
|
|
34174
|
+
dispatchEvent('resize-drag', {
|
|
34175
|
+
item,
|
|
34176
|
+
name: item.name,
|
|
34177
|
+
prevItem,
|
|
34178
|
+
nextItem,
|
|
34179
|
+
offsetHeight: targetOffsetHeight,
|
|
34180
|
+
offsetWidth: targetOffsetWidth
|
|
34181
|
+
}, evnt);
|
|
34182
|
+
};
|
|
34183
|
+
document.onmousemove = evnt => {
|
|
34184
|
+
evnt.preventDefault();
|
|
34185
|
+
handleDrag(evnt);
|
|
34101
34186
|
};
|
|
34102
34187
|
document.onmouseup = evnt => {
|
|
34103
34188
|
document.onmousemove = null;
|
|
34104
34189
|
document.onmouseup = null;
|
|
34190
|
+
if (rsSplitLineEl) {
|
|
34191
|
+
rsSplitLineEl.style.display = '';
|
|
34192
|
+
}
|
|
34193
|
+
handleUpdate();
|
|
34105
34194
|
removeClass(el, 'is--drag');
|
|
34106
34195
|
dispatchEvent('resize-end', {
|
|
34107
34196
|
item,
|
|
34108
34197
|
name: item.name,
|
|
34109
|
-
|
|
34110
|
-
|
|
34198
|
+
prevItem,
|
|
34199
|
+
nextItem,
|
|
34200
|
+
offsetHeight: targetOffsetHeight,
|
|
34201
|
+
offsetWidth: targetOffsetWidth
|
|
34111
34202
|
}, evnt);
|
|
34112
34203
|
recalculate();
|
|
34113
34204
|
};
|
|
34205
|
+
if (rsSplitLineEl) {
|
|
34206
|
+
rsSplitLineEl.style.display = 'block';
|
|
34207
|
+
handleReStyle(evnt);
|
|
34208
|
+
}
|
|
34209
|
+
handleDrag(evnt);
|
|
34210
|
+
addClass(el, 'is--drag');
|
|
34114
34211
|
dispatchEvent('resize-start', {
|
|
34115
34212
|
item,
|
|
34116
|
-
name: item.name
|
|
34213
|
+
name: item.name,
|
|
34214
|
+
prevItem,
|
|
34215
|
+
nextItem
|
|
34117
34216
|
}, evnt);
|
|
34118
34217
|
};
|
|
34119
34218
|
const handleItemActionEvent = evnt => {
|
|
@@ -34250,6 +34349,10 @@ const Select = VxeSelect;
|
|
|
34250
34349
|
const {
|
|
34251
34350
|
itemList
|
|
34252
34351
|
} = reactData;
|
|
34352
|
+
const resizeOpts = computeResizeOpts.value;
|
|
34353
|
+
const {
|
|
34354
|
+
immediate
|
|
34355
|
+
} = resizeOpts;
|
|
34253
34356
|
const visibleItems = computeVisibleItems.value;
|
|
34254
34357
|
const {
|
|
34255
34358
|
autoItems
|
|
@@ -34298,7 +34401,7 @@ const Select = VxeSelect;
|
|
|
34298
34401
|
}
|
|
34299
34402
|
itemVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34300
34403
|
itemid: id,
|
|
34301
|
-
class: ['vxe-split-pane', vertical ? 'is--vertical' : 'is--horizontal', {
|
|
34404
|
+
class: ['vxe-split-pane', vertical ? 'is--vertical' : 'is--horizontal', immediate ? 'is-resize--immediate' : 'is-resize--lazy', {
|
|
34302
34405
|
'is--resize': resize,
|
|
34303
34406
|
'is--padding': padding,
|
|
34304
34407
|
'is--border': border,
|
|
@@ -34331,6 +34434,11 @@ const Select = VxeSelect;
|
|
|
34331
34434
|
width,
|
|
34332
34435
|
height
|
|
34333
34436
|
} = props;
|
|
34437
|
+
const resizeOpts = computeResizeOpts.value;
|
|
34438
|
+
const {
|
|
34439
|
+
immediate,
|
|
34440
|
+
showTip
|
|
34441
|
+
} = resizeOpts;
|
|
34334
34442
|
const defaultSlot = slots.default;
|
|
34335
34443
|
const stys = {};
|
|
34336
34444
|
if (height) {
|
|
@@ -34345,7 +34453,16 @@ const Select = VxeSelect;
|
|
|
34345
34453
|
style: stys
|
|
34346
34454
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34347
34455
|
class: 'vxe-split-slots'
|
|
34348
|
-
}, defaultSlot ? defaultSlot({}) : []), renderItems()
|
|
34456
|
+
}, defaultSlot ? defaultSlot({}) : []), renderItems(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34457
|
+
ref: refResizableSplitTip,
|
|
34458
|
+
class: ['vxe-split--resizable-split-tip', vertical ? 'is--vertical' : 'is--horizontal', immediate ? 'is-resize--immediate' : 'is-resize--lazy']
|
|
34459
|
+
}, showTip ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34460
|
+
class: 'vxe-split--resizable-split-tip-number'
|
|
34461
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34462
|
+
class: 'vxe-split--resizable-split-number-prev'
|
|
34463
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34464
|
+
class: 'vxe-split--resizable-split-number-next'
|
|
34465
|
+
})])] : [])]);
|
|
34349
34466
|
};
|
|
34350
34467
|
const itemFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
34351
34468
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.items ? props.items.length : -1, () => {
|