vxe-pc-ui 4.17.29 → 4.18.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/all.esm.js +239 -201
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/button/src/button.js +10 -9
- package/es/cascader/src/cascader.js +8 -17
- package/es/color-picker/src/color-picker.js +8 -17
- package/es/date-picker/src/date-picker.js +8 -17
- package/es/date-range-picker/src/date-range-picker.js +9 -18
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +16 -16
- package/es/number-input/src/number-input.js +1 -1
- package/es/pulldown/src/pulldown.js +30 -44
- package/es/select/src/select.js +8 -17
- package/es/slider/src/slider.js +77 -3
- package/es/slider/style.css +53 -6
- package/es/slider/style.min.css +1 -1
- package/es/space/src/space.js +43 -5
- package/es/space/style.css +7 -0
- package/es/space/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +8 -17
- package/es/tree-select/src/tree-select.js +8 -17
- package/es/ui/index.js +5 -2
- package/es/ui/src/dom.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-slider/style.css +53 -6
- package/es/vxe-slider/style.min.css +1 -1
- package/es/vxe-space/style.css +7 -0
- package/es/vxe-space/style.min.css +1 -1
- package/lib/button/src/button.js +12 -9
- package/lib/button/src/button.min.js +1 -1
- package/lib/cascader/src/cascader.js +10 -18
- package/lib/cascader/src/cascader.min.js +1 -1
- package/lib/color-picker/src/color-picker.js +10 -18
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +10 -18
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +11 -19
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +20 -17
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +282 -211
- package/lib/index.umd.min.js +1 -1
- package/lib/number-input/src/number-input.js +1 -1
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +31 -47
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/select/src/select.js +10 -18
- package/lib/select/src/select.min.js +1 -1
- package/lib/slider/src/slider.js +88 -1
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/slider/style/style.css +53 -6
- package/lib/slider/style/style.min.css +1 -1
- package/lib/space/src/space.js +51 -5
- package/lib/space/src/space.min.js +1 -1
- package/lib/space/style/style.css +7 -0
- package/lib/space/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +10 -18
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +10 -18
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +5 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +1 -1
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-slider/style/style.css +53 -6
- package/lib/vxe-slider/style/style.min.css +1 -1
- package/lib/vxe-space/style/style.css +7 -0
- package/lib/vxe-space/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.ts +12 -10
- package/packages/cascader/src/cascader.ts +9 -17
- package/packages/color-picker/src/color-picker.ts +9 -17
- package/packages/date-picker/src/date-picker.ts +9 -17
- package/packages/date-range-picker/src/date-range-picker.ts +10 -18
- package/packages/icon-picker/src/icon-picker.ts +18 -16
- package/packages/number-input/src/number-input.ts +1 -1
- package/packages/pulldown/src/pulldown.ts +33 -46
- package/packages/select/src/select.ts +9 -17
- package/packages/slider/src/slider.ts +84 -3
- package/packages/space/src/space.ts +43 -5
- package/packages/table-select/src/table-select.ts +9 -17
- package/packages/tree-select/src/tree-select.ts +9 -17
- package/packages/ui/index.ts +4 -1
- package/packages/ui/src/dom.ts +1 -1
- package/styles/components/slider.scss +15 -1
- package/styles/components/space.scss +9 -0
- package/types/components/number-input.d.ts +1 -1
- package/types/components/slider.d.ts +12 -0
- package/types/components/space.d.ts +10 -0
- /package/es/icon/{iconfont.1788486194527.ttf → iconfont.1788505334427.ttf} +0 -0
- /package/es/icon/{iconfont.1788486194527.woff → iconfont.1788505334427.woff} +0 -0
- /package/es/icon/{iconfont.1788486194527.woff2 → iconfont.1788505334427.woff2} +0 -0
- /package/es/{iconfont.1788486194527.ttf → iconfont.1788505334427.ttf} +0 -0
- /package/es/{iconfont.1788486194527.woff → iconfont.1788505334427.woff} +0 -0
- /package/es/{iconfont.1788486194527.woff2 → iconfont.1788505334427.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788486194527.ttf → iconfont.1788505334427.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788486194527.woff → iconfont.1788505334427.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788486194527.woff2 → iconfont.1788505334427.woff2} +0 -0
- /package/lib/{iconfont.1788486194527.ttf → iconfont.1788505334427.ttf} +0 -0
- /package/lib/{iconfont.1788486194527.woff → iconfont.1788505334427.woff} +0 -0
- /package/lib/{iconfont.1788486194527.woff2 → iconfont.1788505334427.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -101,7 +101,7 @@ function checkDynamic() {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
const { log } = VxeUI;
|
|
104
|
-
const uiVersion = `ui v${"4.
|
|
104
|
+
const uiVersion = `ui v${"4.18.0"}`;
|
|
105
105
|
function createComponentLog(name) {
|
|
106
106
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
107
107
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -115,7 +115,7 @@ function createComponentLog(name) {
|
|
|
115
115
|
const warnLog$i = log.create('warn', uiVersion);
|
|
116
116
|
log.create('error', uiVersion);
|
|
117
117
|
|
|
118
|
-
const version = "4.
|
|
118
|
+
const version = "4.18.0";
|
|
119
119
|
VxeUI.uiVersion = version;
|
|
120
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
121
121
|
function config(options) {
|
|
@@ -495,7 +495,10 @@ setConfig$1({
|
|
|
495
495
|
splitterPanel: {},
|
|
496
496
|
slider: {
|
|
497
497
|
max: 100,
|
|
498
|
-
min: 0
|
|
498
|
+
min: 0,
|
|
499
|
+
tooltipConfig: {
|
|
500
|
+
enterDelay: 0
|
|
501
|
+
}
|
|
499
502
|
},
|
|
500
503
|
space: {},
|
|
501
504
|
steps: {},
|
|
@@ -2037,7 +2040,7 @@ function updatePanelPlacement(targetElem, panelElem, options) {
|
|
|
2037
2040
|
const targetTop = targetRect.top;
|
|
2038
2041
|
minWidth = targetElem.offsetWidth;
|
|
2039
2042
|
if (teleportTo) {
|
|
2040
|
-
left = defaultLeft || (targetLeft);
|
|
2043
|
+
left = defaultLeft || (targetLeft - (panelWidth - targetWidth) / 2);
|
|
2041
2044
|
top = defaultTop || (targetTop + targetHeight);
|
|
2042
2045
|
if (placement === 'top') {
|
|
2043
2046
|
panelPlacement = 'top';
|
|
@@ -3386,6 +3389,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3386
3389
|
const { slots, emit } = context;
|
|
3387
3390
|
const $xeModal = inject('$xeModal', null);
|
|
3388
3391
|
const $xeDrawer = inject('$xeDrawer', null);
|
|
3392
|
+
const $xeGrid = inject('$xeGrid', null);
|
|
3389
3393
|
const $xeTable = inject('$xeTable', null);
|
|
3390
3394
|
const $xeTree = inject('$xeTree', null);
|
|
3391
3395
|
const $xeForm = inject('$xeForm', null);
|
|
@@ -3432,7 +3436,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3432
3436
|
if (XEUtils.isBoolean(globalTransfer)) {
|
|
3433
3437
|
return globalTransfer;
|
|
3434
3438
|
}
|
|
3435
|
-
if ($xeTable || $xeTree || $xeModal || $xeDrawer || $xeForm) {
|
|
3439
|
+
if ($xeGrid || $xeTable || $xeTree || $xeModal || $xeDrawer || $xeForm) {
|
|
3436
3440
|
return true;
|
|
3437
3441
|
}
|
|
3438
3442
|
}
|
|
@@ -3788,12 +3792,6 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3788
3792
|
return nextTick();
|
|
3789
3793
|
}
|
|
3790
3794
|
};
|
|
3791
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
3792
|
-
const panelElem = refBtnPanel.value;
|
|
3793
|
-
if (reactData.visiblePanel && !getEventTargetNode(evnt, panelElem).flag) {
|
|
3794
|
-
hidePanel();
|
|
3795
|
-
}
|
|
3796
|
-
};
|
|
3797
3795
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
3798
3796
|
const btnDisabled = computeBtnDisabled.value;
|
|
3799
3797
|
const { visiblePanel } = reactData;
|
|
@@ -3812,6 +3810,12 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3812
3810
|
updatePlacement();
|
|
3813
3811
|
}
|
|
3814
3812
|
};
|
|
3813
|
+
const handleGlobalScrollEvent = () => {
|
|
3814
|
+
const { visiblePanel } = reactData;
|
|
3815
|
+
if (visiblePanel) {
|
|
3816
|
+
updatePlacement();
|
|
3817
|
+
}
|
|
3818
|
+
};
|
|
3815
3819
|
Object.assign($xeButton, buttonMethods);
|
|
3816
3820
|
const renderVN = () => {
|
|
3817
3821
|
const { className, trigger, title, routerLink, type, destroyOnClose, name, loading, shadow, showDropdownIcon } = props;
|
|
@@ -3992,14 +3996,14 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3992
3996
|
if (props.type === 'text') {
|
|
3993
3997
|
warnLog$h('vxe.error.delProp', ['type=text', 'mode=text']);
|
|
3994
3998
|
}
|
|
3995
|
-
globalEvents.on($xeButton, 'mousewheel', handleGlobalMousewheelEvent);
|
|
3996
3999
|
globalEvents.on($xeButton, 'mousedown', handleGlobalMousedownEvent);
|
|
3997
4000
|
globalEvents.on($xeButton, 'resize', handleGlobalResizeEvent);
|
|
4001
|
+
globalEvents.on($xeButton, 'scroll', handleGlobalScrollEvent);
|
|
3998
4002
|
});
|
|
3999
4003
|
onUnmounted(() => {
|
|
4000
|
-
globalEvents.off($xeButton, 'mousewheel');
|
|
4001
4004
|
globalEvents.off($xeButton, 'mousedown');
|
|
4002
4005
|
globalEvents.off($xeButton, 'resize');
|
|
4006
|
+
globalEvents.off($xeButton, 'scroll');
|
|
4003
4007
|
});
|
|
4004
4008
|
return $xeButton;
|
|
4005
4009
|
},
|
|
@@ -12775,21 +12779,6 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
12775
12779
|
const { $event } = params;
|
|
12776
12780
|
hideOptionPanel($event);
|
|
12777
12781
|
};
|
|
12778
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
12779
|
-
const { visiblePanel } = reactData;
|
|
12780
|
-
const isDisabled = computeIsDisabled.value;
|
|
12781
|
-
if (!isDisabled) {
|
|
12782
|
-
if (visiblePanel) {
|
|
12783
|
-
const panelElem = refOptionPanel.value;
|
|
12784
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
12785
|
-
updatePlacement();
|
|
12786
|
-
}
|
|
12787
|
-
else {
|
|
12788
|
-
hideOptionPanel(evnt);
|
|
12789
|
-
}
|
|
12790
|
-
}
|
|
12791
|
-
}
|
|
12792
|
-
};
|
|
12793
12782
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
12794
12783
|
const { visiblePanel } = reactData;
|
|
12795
12784
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -12823,6 +12812,12 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
12823
12812
|
updatePlacement();
|
|
12824
12813
|
}
|
|
12825
12814
|
};
|
|
12815
|
+
const handleGlobalScrollEvent = () => {
|
|
12816
|
+
const { visiblePanel } = reactData;
|
|
12817
|
+
if (visiblePanel) {
|
|
12818
|
+
updatePlacement();
|
|
12819
|
+
}
|
|
12820
|
+
};
|
|
12826
12821
|
const handleFocusSearch = () => {
|
|
12827
12822
|
if (props.filterable) {
|
|
12828
12823
|
nextTick(() => {
|
|
@@ -13655,16 +13650,16 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
13655
13650
|
});
|
|
13656
13651
|
loadData(props.options || []);
|
|
13657
13652
|
onMounted(() => {
|
|
13658
|
-
globalEvents.on($xeCascader, 'mousewheel', handleGlobalMousewheelEvent);
|
|
13659
13653
|
globalEvents.on($xeCascader, 'mousedown', handleGlobalMousedownEvent);
|
|
13660
13654
|
globalEvents.on($xeCascader, 'blur', handleGlobalBlurEvent);
|
|
13661
13655
|
globalEvents.on($xeCascader, 'resize', handleGlobalResizeEvent);
|
|
13656
|
+
globalEvents.on($xeCascader, 'scroll', handleGlobalScrollEvent);
|
|
13662
13657
|
});
|
|
13663
13658
|
onUnmounted(() => {
|
|
13664
|
-
globalEvents.off($xeCascader, 'mousewheel');
|
|
13665
13659
|
globalEvents.off($xeCascader, 'mousedown');
|
|
13666
13660
|
globalEvents.off($xeCascader, 'blur');
|
|
13667
13661
|
globalEvents.off($xeCascader, 'resize');
|
|
13662
|
+
globalEvents.off($xeCascader, 'scroll');
|
|
13668
13663
|
XEUtils.assign(reactData, createReactData$l());
|
|
13669
13664
|
XEUtils.assign(internalData, createInternalData$k());
|
|
13670
13665
|
});
|
|
@@ -15920,7 +15915,7 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
15920
15915
|
const inputElem = refInputTarget.value;
|
|
15921
15916
|
const content = getText(contentMethod
|
|
15922
15917
|
? contentMethod({
|
|
15923
|
-
$
|
|
15918
|
+
$numberInput: $xeNumberInput,
|
|
15924
15919
|
type,
|
|
15925
15920
|
inputValue: inputElem.value,
|
|
15926
15921
|
value: inputValue || '',
|
|
@@ -17018,21 +17013,6 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17018
17013
|
}
|
|
17019
17014
|
}
|
|
17020
17015
|
};
|
|
17021
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
17022
|
-
const { visiblePanel } = reactData;
|
|
17023
|
-
const isDisabled = computeIsDisabled.value;
|
|
17024
|
-
if (!isDisabled) {
|
|
17025
|
-
if (visiblePanel) {
|
|
17026
|
-
const panelElem = refOptionPanel.value;
|
|
17027
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
17028
|
-
updatePlacement();
|
|
17029
|
-
}
|
|
17030
|
-
else {
|
|
17031
|
-
hideOptionPanel();
|
|
17032
|
-
}
|
|
17033
|
-
}
|
|
17034
|
-
}
|
|
17035
|
-
};
|
|
17036
17016
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
17037
17017
|
const { visiblePanel } = reactData;
|
|
17038
17018
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -17066,6 +17046,12 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17066
17046
|
updatePlacement();
|
|
17067
17047
|
}
|
|
17068
17048
|
};
|
|
17049
|
+
const handleGlobalScrollEvent = () => {
|
|
17050
|
+
const { visiblePanel } = reactData;
|
|
17051
|
+
if (visiblePanel) {
|
|
17052
|
+
updatePlacement();
|
|
17053
|
+
}
|
|
17054
|
+
};
|
|
17069
17055
|
const dispatchEvent = (type, params, evnt) => {
|
|
17070
17056
|
emit(type, createEvent(evnt, { $colorPicker: $xeColorPicker }, params));
|
|
17071
17057
|
};
|
|
@@ -17469,16 +17455,16 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17469
17455
|
updateType();
|
|
17470
17456
|
});
|
|
17471
17457
|
onMounted(() => {
|
|
17472
|
-
globalEvents.on($xeColorPicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
17473
17458
|
globalEvents.on($xeColorPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
17474
17459
|
globalEvents.on($xeColorPicker, 'blur', handleGlobalBlurEvent);
|
|
17475
17460
|
globalEvents.on($xeColorPicker, 'resize', handleGlobalResizeEvent);
|
|
17461
|
+
globalEvents.on($xeColorPicker, 'scroll', handleGlobalScrollEvent);
|
|
17476
17462
|
});
|
|
17477
17463
|
onUnmounted(() => {
|
|
17478
|
-
globalEvents.off($xeColorPicker, 'mousewheel');
|
|
17479
17464
|
globalEvents.off($xeColorPicker, 'mousedown');
|
|
17480
17465
|
globalEvents.off($xeColorPicker, 'blur');
|
|
17481
17466
|
globalEvents.off($xeColorPicker, 'resize');
|
|
17467
|
+
globalEvents.off($xeColorPicker, 'scroll');
|
|
17482
17468
|
});
|
|
17483
17469
|
updateType();
|
|
17484
17470
|
provide('$xeColorPicker', $xeColorPicker);
|
|
@@ -21509,21 +21495,6 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21509
21495
|
}
|
|
21510
21496
|
}
|
|
21511
21497
|
};
|
|
21512
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
21513
|
-
const { visiblePanel } = reactData;
|
|
21514
|
-
const isDisabled = computeIsDisabled.value;
|
|
21515
|
-
if (!isDisabled) {
|
|
21516
|
-
if (visiblePanel) {
|
|
21517
|
-
const panelWrapperElem = refPanelWrapper.value;
|
|
21518
|
-
if (getEventTargetNode(evnt, panelWrapperElem).flag) {
|
|
21519
|
-
updatePlacement();
|
|
21520
|
-
}
|
|
21521
|
-
else {
|
|
21522
|
-
hidePanel();
|
|
21523
|
-
}
|
|
21524
|
-
}
|
|
21525
|
-
}
|
|
21526
|
-
};
|
|
21527
21498
|
const handleGlobalBlurEvent = () => {
|
|
21528
21499
|
const { isActivated, visiblePanel } = reactData;
|
|
21529
21500
|
if (visiblePanel) {
|
|
@@ -21546,6 +21517,12 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21546
21517
|
updatePlacement();
|
|
21547
21518
|
}
|
|
21548
21519
|
};
|
|
21520
|
+
const handleGlobalScrollEvent = () => {
|
|
21521
|
+
const { visiblePanel } = reactData;
|
|
21522
|
+
if (visiblePanel) {
|
|
21523
|
+
updatePlacement();
|
|
21524
|
+
}
|
|
21525
|
+
};
|
|
21549
21526
|
// 弹出面板
|
|
21550
21527
|
const updateZindex = () => {
|
|
21551
21528
|
const popupOpts = computePopupOpts.value;
|
|
@@ -22019,11 +21996,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22019
21996
|
});
|
|
22020
21997
|
updateModelValue();
|
|
22021
21998
|
nextTick(() => {
|
|
22022
|
-
globalEvents.on($xeDatePicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
22023
21999
|
globalEvents.on($xeDatePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
22024
22000
|
globalEvents.on($xeDatePicker, 'keydown', handleGlobalKeydownEvent);
|
|
22025
22001
|
globalEvents.on($xeDatePicker, 'blur', handleGlobalBlurEvent);
|
|
22026
22002
|
globalEvents.on($xeDatePicker, 'resize', handleGlobalResizeEvent);
|
|
22003
|
+
globalEvents.on($xeDatePicker, 'scroll', handleGlobalScrollEvent);
|
|
22027
22004
|
});
|
|
22028
22005
|
onMounted(() => {
|
|
22029
22006
|
const { type, multiple, maskedConfig } = props;
|
|
@@ -22037,11 +22014,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22037
22014
|
}
|
|
22038
22015
|
});
|
|
22039
22016
|
onUnmounted(() => {
|
|
22040
|
-
globalEvents.off($xeDatePicker, 'mousewheel');
|
|
22041
22017
|
globalEvents.off($xeDatePicker, 'mousedown');
|
|
22042
22018
|
globalEvents.off($xeDatePicker, 'keydown');
|
|
22043
22019
|
globalEvents.off($xeDatePicker, 'blur');
|
|
22044
22020
|
globalEvents.off($xeDatePicker, 'resize');
|
|
22021
|
+
globalEvents.off($xeDatePicker, 'scroll');
|
|
22045
22022
|
XEUtils.assign(reactData, createReactData$h());
|
|
22046
22023
|
XEUtils.assign(internalData, createInternalData$g());
|
|
22047
22024
|
});
|
|
@@ -22971,22 +22948,6 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22971
22948
|
}
|
|
22972
22949
|
}
|
|
22973
22950
|
};
|
|
22974
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
22975
|
-
const { visiblePanel } = reactData;
|
|
22976
|
-
const isDisabled = computeIsDisabled.value;
|
|
22977
|
-
if (!isDisabled) {
|
|
22978
|
-
if (visiblePanel) {
|
|
22979
|
-
const panelWrapperElem = refPanelWrapper.value;
|
|
22980
|
-
if (getEventTargetNode(evnt, panelWrapperElem).flag) {
|
|
22981
|
-
updatePlacement();
|
|
22982
|
-
}
|
|
22983
|
-
else {
|
|
22984
|
-
checkValue();
|
|
22985
|
-
hidePanel();
|
|
22986
|
-
}
|
|
22987
|
-
}
|
|
22988
|
-
}
|
|
22989
|
-
};
|
|
22990
22951
|
const handleGlobalBlurEvent = () => {
|
|
22991
22952
|
const { visiblePanel, isActivated } = reactData;
|
|
22992
22953
|
if (visiblePanel) {
|
|
@@ -23009,6 +22970,12 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23009
22970
|
updatePlacement();
|
|
23010
22971
|
}
|
|
23011
22972
|
};
|
|
22973
|
+
const handleGlobalScrollEvent = () => {
|
|
22974
|
+
const { visiblePanel } = reactData;
|
|
22975
|
+
if (visiblePanel) {
|
|
22976
|
+
updatePlacement();
|
|
22977
|
+
}
|
|
22978
|
+
};
|
|
23012
22979
|
// 弹出面板
|
|
23013
22980
|
const updateZindex = () => {
|
|
23014
22981
|
const popupOpts = computePopupOpts.value;
|
|
@@ -23536,11 +23503,11 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23536
23503
|
});
|
|
23537
23504
|
updateModelValue(true);
|
|
23538
23505
|
nextTick(() => {
|
|
23539
|
-
globalEvents.on($xeDateRangePicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
23540
23506
|
globalEvents.on($xeDateRangePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
23541
23507
|
globalEvents.on($xeDateRangePicker, 'keydown', handleGlobalKeydownEvent);
|
|
23542
23508
|
globalEvents.on($xeDateRangePicker, 'blur', handleGlobalBlurEvent);
|
|
23543
23509
|
globalEvents.on($xeDateRangePicker, 'resize', handleGlobalResizeEvent);
|
|
23510
|
+
globalEvents.on($xeDateRangePicker, 'scroll', handleGlobalScrollEvent);
|
|
23544
23511
|
});
|
|
23545
23512
|
onDeactivated(() => {
|
|
23546
23513
|
checkValue();
|
|
@@ -23549,10 +23516,11 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23549
23516
|
checkValue();
|
|
23550
23517
|
});
|
|
23551
23518
|
onUnmounted(() => {
|
|
23552
|
-
globalEvents.off($xeDateRangePicker, 'mousewheel');
|
|
23553
23519
|
globalEvents.off($xeDateRangePicker, 'mousedown');
|
|
23520
|
+
globalEvents.off($xeDateRangePicker, 'keydown');
|
|
23554
23521
|
globalEvents.off($xeDateRangePicker, 'blur');
|
|
23555
23522
|
globalEvents.off($xeDateRangePicker, 'resize');
|
|
23523
|
+
globalEvents.off($xeDateRangePicker, 'scroll');
|
|
23556
23524
|
XEUtils.assign(reactData, createReactData$g());
|
|
23557
23525
|
XEUtils.assign(internalData, createInternalData$f());
|
|
23558
23526
|
});
|
|
@@ -27095,21 +27063,6 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27095
27063
|
togglePanelEvent(evnt);
|
|
27096
27064
|
dispatchEvent('click', {}, evnt);
|
|
27097
27065
|
};
|
|
27098
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
27099
|
-
const { visiblePanel } = reactData;
|
|
27100
|
-
const isDisabled = computeIsDisabled.value;
|
|
27101
|
-
if (!isDisabled) {
|
|
27102
|
-
if (visiblePanel) {
|
|
27103
|
-
const panelElem = refOptionPanel.value;
|
|
27104
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
27105
|
-
updatePlacement();
|
|
27106
|
-
}
|
|
27107
|
-
else {
|
|
27108
|
-
hideOptionPanel();
|
|
27109
|
-
}
|
|
27110
|
-
}
|
|
27111
|
-
}
|
|
27112
|
-
};
|
|
27113
27066
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
27114
27067
|
const { visiblePanel } = reactData;
|
|
27115
27068
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -27185,6 +27138,18 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27185
27138
|
}
|
|
27186
27139
|
}
|
|
27187
27140
|
};
|
|
27141
|
+
const handleGlobalResizeEvent = () => {
|
|
27142
|
+
const { visiblePanel } = reactData;
|
|
27143
|
+
if (visiblePanel) {
|
|
27144
|
+
updatePlacement();
|
|
27145
|
+
}
|
|
27146
|
+
};
|
|
27147
|
+
const handleGlobalScrollEvent = () => {
|
|
27148
|
+
const { visiblePanel } = reactData;
|
|
27149
|
+
if (visiblePanel) {
|
|
27150
|
+
updatePlacement();
|
|
27151
|
+
}
|
|
27152
|
+
};
|
|
27188
27153
|
const dispatchEvent = (type, params, evnt) => {
|
|
27189
27154
|
emit(type, createEvent(evnt, { $iconPicker: $xeIconPicker }, params));
|
|
27190
27155
|
};
|
|
@@ -27444,16 +27409,19 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27444
27409
|
handleData();
|
|
27445
27410
|
});
|
|
27446
27411
|
onMounted(() => {
|
|
27447
|
-
globalEvents.on($xeIconPicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
27448
27412
|
globalEvents.on($xeIconPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
27449
27413
|
globalEvents.on($xeIconPicker, 'keydown', handleGlobalKeydownEvent);
|
|
27450
27414
|
globalEvents.on($xeIconPicker, 'blur', handleGlobalBlurEvent);
|
|
27415
|
+
globalEvents.on($xeIconPicker, 'resize', handleGlobalResizeEvent);
|
|
27416
|
+
globalEvents.on($xeIconPicker, 'scroll', handleGlobalScrollEvent);
|
|
27451
27417
|
});
|
|
27452
27418
|
onBeforeUnmount(() => {
|
|
27453
27419
|
globalEvents.off($xeIconPicker, 'mousewheel');
|
|
27454
27420
|
globalEvents.off($xeIconPicker, 'mousedown');
|
|
27455
27421
|
globalEvents.off($xeIconPicker, 'keydown');
|
|
27456
27422
|
globalEvents.off($xeIconPicker, 'blur');
|
|
27423
|
+
globalEvents.off($xeIconPicker, 'resize');
|
|
27424
|
+
globalEvents.off($xeIconPicker, 'scroll');
|
|
27457
27425
|
XEUtils.assign(reactData, createReactData$e());
|
|
27458
27426
|
XEUtils.assign(internalData, createInternalData$d());
|
|
27459
27427
|
});
|
|
@@ -32515,21 +32483,6 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32515
32483
|
}
|
|
32516
32484
|
reactData.reactFlag++;
|
|
32517
32485
|
};
|
|
32518
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
32519
|
-
const { visiblePanel } = reactData;
|
|
32520
|
-
const isDisabled = computeIsDisabled.value;
|
|
32521
|
-
if (!isDisabled) {
|
|
32522
|
-
if (visiblePanel) {
|
|
32523
|
-
const panelElem = refOptionPanel.value;
|
|
32524
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
32525
|
-
updatePlacement();
|
|
32526
|
-
}
|
|
32527
|
-
else {
|
|
32528
|
-
hideOptionPanel(evnt);
|
|
32529
|
-
}
|
|
32530
|
-
}
|
|
32531
|
-
}
|
|
32532
|
-
};
|
|
32533
32486
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
32534
32487
|
const { visiblePanel } = reactData;
|
|
32535
32488
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -32692,6 +32645,12 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32692
32645
|
updatePlacement();
|
|
32693
32646
|
}
|
|
32694
32647
|
};
|
|
32648
|
+
const handleGlobalScrollEvent = () => {
|
|
32649
|
+
const { visiblePanel } = reactData;
|
|
32650
|
+
if (visiblePanel) {
|
|
32651
|
+
updatePlacement();
|
|
32652
|
+
}
|
|
32653
|
+
};
|
|
32695
32654
|
const handleFocusSearch = () => {
|
|
32696
32655
|
if (props.filterable) {
|
|
32697
32656
|
nextTick(() => {
|
|
@@ -33496,18 +33455,18 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33496
33455
|
loadData(options);
|
|
33497
33456
|
}
|
|
33498
33457
|
});
|
|
33499
|
-
globalEvents.on($xeSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
33500
33458
|
globalEvents.on($xeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
33501
33459
|
globalEvents.on($xeSelect, 'keydown', handleGlobalKeydownEvent);
|
|
33502
33460
|
globalEvents.on($xeSelect, 'blur', handleGlobalBlurEvent);
|
|
33503
33461
|
globalEvents.on($xeSelect, 'resize', handleGlobalResizeEvent);
|
|
33462
|
+
globalEvents.on($xeSelect, 'scroll', handleGlobalScrollEvent);
|
|
33504
33463
|
});
|
|
33505
33464
|
onUnmounted(() => {
|
|
33506
|
-
globalEvents.off($xeSelect, 'mousewheel');
|
|
33507
33465
|
globalEvents.off($xeSelect, 'mousedown');
|
|
33508
33466
|
globalEvents.off($xeSelect, 'keydown');
|
|
33509
33467
|
globalEvents.off($xeSelect, 'blur');
|
|
33510
33468
|
globalEvents.off($xeSelect, 'resize');
|
|
33469
|
+
globalEvents.off($xeSelect, 'scroll');
|
|
33511
33470
|
XEUtils.assign(reactData, createReactData$9());
|
|
33512
33471
|
XEUtils.assign(internalData, createInternalData$8());
|
|
33513
33472
|
});
|
|
@@ -35522,26 +35481,6 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35522
35481
|
}
|
|
35523
35482
|
dispatchEvent('click', { $pulldown: $xePulldown }, evnt);
|
|
35524
35483
|
};
|
|
35525
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
35526
|
-
const { trigger, disabled } = props;
|
|
35527
|
-
const { visiblePanel } = reactData;
|
|
35528
|
-
const panelElem = refPulldownPanel.value;
|
|
35529
|
-
const popupOpts = computePopupOpts.value;
|
|
35530
|
-
const currTrigger = trigger || popupOpts.trigger;
|
|
35531
|
-
if (!disabled) {
|
|
35532
|
-
if (visiblePanel) {
|
|
35533
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
35534
|
-
updatePlacement();
|
|
35535
|
-
}
|
|
35536
|
-
else {
|
|
35537
|
-
if (currTrigger !== 'manual') {
|
|
35538
|
-
hideOptionPanel();
|
|
35539
|
-
dispatchEvent('hide-panel', {}, evnt);
|
|
35540
|
-
}
|
|
35541
|
-
}
|
|
35542
|
-
}
|
|
35543
|
-
}
|
|
35544
|
-
};
|
|
35545
35484
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
35546
35485
|
const { trigger, disabled } = props;
|
|
35547
35486
|
const { visiblePanel } = reactData;
|
|
@@ -35580,6 +35519,12 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35580
35519
|
updatePlacement();
|
|
35581
35520
|
}
|
|
35582
35521
|
};
|
|
35522
|
+
const handleGlobalScrollEvent = () => {
|
|
35523
|
+
const { visiblePanel } = reactData;
|
|
35524
|
+
if (visiblePanel) {
|
|
35525
|
+
updatePlacement();
|
|
35526
|
+
}
|
|
35527
|
+
};
|
|
35583
35528
|
const dispatchEvent = (type, params, evnt) => {
|
|
35584
35529
|
emit(type, createEvent(evnt, { $pulldown: $xePulldown }, params));
|
|
35585
35530
|
};
|
|
@@ -35591,30 +35536,6 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35591
35536
|
hidePanel: hideOptionPanel
|
|
35592
35537
|
};
|
|
35593
35538
|
Object.assign($xePulldown, pulldownMethods);
|
|
35594
|
-
watch(() => props.modelValue, (value) => {
|
|
35595
|
-
reactData.isActivated = !!value;
|
|
35596
|
-
if (value) {
|
|
35597
|
-
showPanel();
|
|
35598
|
-
}
|
|
35599
|
-
else {
|
|
35600
|
-
hideOptionPanel();
|
|
35601
|
-
}
|
|
35602
|
-
});
|
|
35603
|
-
nextTick(() => {
|
|
35604
|
-
if (props.modelValue) {
|
|
35605
|
-
showPanel();
|
|
35606
|
-
}
|
|
35607
|
-
globalEvents.on($xePulldown, 'mousewheel', handleGlobalMousewheelEvent);
|
|
35608
|
-
globalEvents.on($xePulldown, 'mousedown', handleGlobalMousedownEvent);
|
|
35609
|
-
globalEvents.on($xePulldown, 'blur', handleGlobalBlurEvent);
|
|
35610
|
-
globalEvents.on($xePulldown, 'resize', handleGlobalResizeEvent);
|
|
35611
|
-
});
|
|
35612
|
-
onUnmounted(() => {
|
|
35613
|
-
globalEvents.off($xePulldown, 'mousewheel');
|
|
35614
|
-
globalEvents.off($xePulldown, 'mousedown');
|
|
35615
|
-
globalEvents.off($xePulldown, 'blur');
|
|
35616
|
-
globalEvents.off($xePulldown, 'resize');
|
|
35617
|
-
});
|
|
35618
35539
|
const renderDefaultPanel = (options) => {
|
|
35619
35540
|
const optionSlot = slots.option;
|
|
35620
35541
|
return h('div', {
|
|
@@ -35699,6 +35620,30 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35699
35620
|
])
|
|
35700
35621
|
]);
|
|
35701
35622
|
};
|
|
35623
|
+
watch(() => props.modelValue, (value) => {
|
|
35624
|
+
reactData.isActivated = !!value;
|
|
35625
|
+
if (value) {
|
|
35626
|
+
showPanel();
|
|
35627
|
+
}
|
|
35628
|
+
else {
|
|
35629
|
+
hideOptionPanel();
|
|
35630
|
+
}
|
|
35631
|
+
});
|
|
35632
|
+
nextTick(() => {
|
|
35633
|
+
if (props.modelValue) {
|
|
35634
|
+
showPanel();
|
|
35635
|
+
}
|
|
35636
|
+
globalEvents.on($xePulldown, 'mousedown', handleGlobalMousedownEvent);
|
|
35637
|
+
globalEvents.on($xePulldown, 'blur', handleGlobalBlurEvent);
|
|
35638
|
+
globalEvents.on($xePulldown, 'resize', handleGlobalResizeEvent);
|
|
35639
|
+
globalEvents.on($xePulldown, 'scroll', handleGlobalScrollEvent);
|
|
35640
|
+
});
|
|
35641
|
+
onUnmounted(() => {
|
|
35642
|
+
globalEvents.off($xePulldown, 'mousedown');
|
|
35643
|
+
globalEvents.off($xePulldown, 'blur');
|
|
35644
|
+
globalEvents.off($xePulldown, 'resize');
|
|
35645
|
+
globalEvents.off($xePulldown, 'scroll');
|
|
35646
|
+
});
|
|
35702
35647
|
$xePulldown.renderVN = renderVN;
|
|
35703
35648
|
return $xePulldown;
|
|
35704
35649
|
},
|
|
@@ -38087,6 +38032,8 @@ const SplitPane = VxeSplitPane;
|
|
|
38087
38032
|
function createInternalData$6() {
|
|
38088
38033
|
return {
|
|
38089
38034
|
// _isUp: false,
|
|
38035
|
+
isDragStatus: false,
|
|
38036
|
+
isBtnActive: false,
|
|
38090
38037
|
currValue: 0,
|
|
38091
38038
|
startValue: 0,
|
|
38092
38039
|
endValue: 0
|
|
@@ -38130,10 +38077,19 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38130
38077
|
type: Boolean,
|
|
38131
38078
|
default: null
|
|
38132
38079
|
},
|
|
38080
|
+
status: {
|
|
38081
|
+
type: String,
|
|
38082
|
+
default: () => getConfig$3().slider.status
|
|
38083
|
+
},
|
|
38133
38084
|
immediate: {
|
|
38134
38085
|
type: Boolean,
|
|
38135
38086
|
default: () => getConfig$3().slider.immediate
|
|
38136
|
-
}
|
|
38087
|
+
},
|
|
38088
|
+
showTooltip: {
|
|
38089
|
+
type: Boolean,
|
|
38090
|
+
default: () => getConfig$3().slider.showTooltip
|
|
38091
|
+
},
|
|
38092
|
+
tooltipConfig: Object
|
|
38137
38093
|
},
|
|
38138
38094
|
emits: [
|
|
38139
38095
|
'update:modelValue',
|
|
@@ -38190,6 +38146,9 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38190
38146
|
const { range, startValue, endValue } = props;
|
|
38191
38147
|
return range ? `${startValue || ''}${endValue || ''}` : '';
|
|
38192
38148
|
});
|
|
38149
|
+
const computeTooltipOpts = computed(() => {
|
|
38150
|
+
return Object.assign({}, getConfig$3().slider.tooltipConfig, props.tooltipConfig);
|
|
38151
|
+
});
|
|
38193
38152
|
const computeMaps = {};
|
|
38194
38153
|
const $xeSlider = {
|
|
38195
38154
|
xID,
|
|
@@ -38342,6 +38301,38 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38342
38301
|
const raw = minNum + ratio * (maxNum - minNum);
|
|
38343
38302
|
return Math.floor(raw);
|
|
38344
38303
|
};
|
|
38304
|
+
const handleShowTip = (btnElem) => {
|
|
38305
|
+
const { showTooltip } = props;
|
|
38306
|
+
if (showTooltip) {
|
|
38307
|
+
if (VxeUI.tooltip) {
|
|
38308
|
+
const { currValue } = internalData;
|
|
38309
|
+
const tooltipOpts = computeTooltipOpts.value;
|
|
38310
|
+
const { contentMethod } = tooltipOpts;
|
|
38311
|
+
const content = getText(contentMethod
|
|
38312
|
+
? contentMethod({
|
|
38313
|
+
$slider: $xeSlider,
|
|
38314
|
+
value: currValue
|
|
38315
|
+
})
|
|
38316
|
+
: '' + currValue);
|
|
38317
|
+
if (content) {
|
|
38318
|
+
VxeUI.tooltip.open(btnElem, Object.assign({}, Object.assign(Object.assign({}, tooltipOpts), { content }), {
|
|
38319
|
+
contentMethod: undefined
|
|
38320
|
+
}));
|
|
38321
|
+
}
|
|
38322
|
+
else {
|
|
38323
|
+
VxeUI.tooltip.close();
|
|
38324
|
+
}
|
|
38325
|
+
}
|
|
38326
|
+
}
|
|
38327
|
+
};
|
|
38328
|
+
const handleHideTip = () => {
|
|
38329
|
+
const { showTooltip } = props;
|
|
38330
|
+
if (showTooltip) {
|
|
38331
|
+
if (VxeUI.tooltip) {
|
|
38332
|
+
VxeUI.tooltip.close();
|
|
38333
|
+
}
|
|
38334
|
+
}
|
|
38335
|
+
};
|
|
38345
38336
|
const handleBtnMousedownEvent = (evnt) => {
|
|
38346
38337
|
const { range, immediate } = props;
|
|
38347
38338
|
const btnElem = evnt.currentTarget;
|
|
@@ -38353,6 +38344,7 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38353
38344
|
evnt.preventDefault();
|
|
38354
38345
|
const el = refElem.value;
|
|
38355
38346
|
const barElem = refBarElem.value;
|
|
38347
|
+
internalData.isDragStatus = true;
|
|
38356
38348
|
if (el && barElem) {
|
|
38357
38349
|
const btnType = btnElem.getAttribute('data-type');
|
|
38358
38350
|
const barRect = barElem.getBoundingClientRect();
|
|
@@ -38379,10 +38371,12 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38379
38371
|
changeEvent(evnt);
|
|
38380
38372
|
}
|
|
38381
38373
|
updateTrackStyle();
|
|
38374
|
+
handleShowTip(btnElem);
|
|
38382
38375
|
};
|
|
38383
38376
|
document.onmouseup = (evnt) => {
|
|
38384
38377
|
document.onmousemove = null;
|
|
38385
38378
|
document.onmouseup = null;
|
|
38379
|
+
internalData.isDragStatus = false;
|
|
38386
38380
|
dispatchEvent('track-dragend', {
|
|
38387
38381
|
currentValue: internalData.currValue,
|
|
38388
38382
|
startValue: internalData.startValue,
|
|
@@ -38390,18 +38384,37 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38390
38384
|
}, evnt);
|
|
38391
38385
|
changeEvent(evnt);
|
|
38392
38386
|
updateTrackStyle();
|
|
38387
|
+
if (!internalData.isBtnActive) {
|
|
38388
|
+
handleHideTip();
|
|
38389
|
+
}
|
|
38393
38390
|
};
|
|
38394
38391
|
dispatchEvent('track-dragstart', {
|
|
38395
38392
|
currentValue: internalData.currValue,
|
|
38396
38393
|
startValue: internalData.startValue,
|
|
38397
38394
|
endValue: internalData.endValue
|
|
38398
38395
|
}, evnt);
|
|
38396
|
+
internalData.isDragStatus = false;
|
|
38397
|
+
}
|
|
38398
|
+
};
|
|
38399
|
+
const handleBtnMouseenterEvent = (evnt) => {
|
|
38400
|
+
const { startValue, endValue } = internalData;
|
|
38401
|
+
const btnElem = evnt.currentTarget;
|
|
38402
|
+
const btnType = btnElem.getAttribute('data-type');
|
|
38403
|
+
internalData.currValue = btnType === '1' ? startValue : endValue;
|
|
38404
|
+
internalData.isBtnActive = true;
|
|
38405
|
+
handleShowTip(btnElem);
|
|
38406
|
+
};
|
|
38407
|
+
const handleBtnMouseleaveEvent = () => {
|
|
38408
|
+
const { isDragStatus } = internalData;
|
|
38409
|
+
internalData.isBtnActive = false;
|
|
38410
|
+
if (!isDragStatus) {
|
|
38411
|
+
handleHideTip();
|
|
38399
38412
|
}
|
|
38400
38413
|
};
|
|
38401
38414
|
const collapsePanePrivateMethods = {};
|
|
38402
38415
|
Object.assign($xeSlider, collapsePaneMethods, collapsePanePrivateMethods);
|
|
38403
38416
|
const renderVN = () => {
|
|
38404
|
-
const { vertical, range } = props;
|
|
38417
|
+
const { status, vertical, range } = props;
|
|
38405
38418
|
const vSize = computeSize.value;
|
|
38406
38419
|
const formReadonly = computeFormReadonly.value;
|
|
38407
38420
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -38409,6 +38422,7 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38409
38422
|
ref: refElem,
|
|
38410
38423
|
class: ['vxe-slider', {
|
|
38411
38424
|
[`size--${vSize}`]: vSize,
|
|
38425
|
+
[`theme--${status}`]: status,
|
|
38412
38426
|
'is--vertical': vertical,
|
|
38413
38427
|
'is--readonly': formReadonly,
|
|
38414
38428
|
'is--disabled': isDisabled
|
|
@@ -38431,6 +38445,8 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38431
38445
|
ref: refStartBtnElem,
|
|
38432
38446
|
class: 'vxe-slider--bar-btn',
|
|
38433
38447
|
'data-type': '1',
|
|
38448
|
+
onMouseenter: handleBtnMouseenterEvent,
|
|
38449
|
+
onMouseleave: handleBtnMouseleaveEvent,
|
|
38434
38450
|
onMousedown: handleBtnMousedownEvent
|
|
38435
38451
|
}),
|
|
38436
38452
|
formReadonly
|
|
@@ -38439,6 +38455,8 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38439
38455
|
ref: refEndBtnElem,
|
|
38440
38456
|
class: 'vxe-slider--bar-btn',
|
|
38441
38457
|
'data-type': '2',
|
|
38458
|
+
onMouseenter: handleBtnMouseenterEvent,
|
|
38459
|
+
onMouseleave: handleBtnMouseleaveEvent,
|
|
38442
38460
|
onMousedown: handleBtnMousedownEvent
|
|
38443
38461
|
})
|
|
38444
38462
|
])
|
|
@@ -38514,6 +38532,26 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38514
38532
|
align: {
|
|
38515
38533
|
type: String,
|
|
38516
38534
|
default: () => getConfig$3().space.align
|
|
38535
|
+
},
|
|
38536
|
+
fill: {
|
|
38537
|
+
type: Boolean,
|
|
38538
|
+
default: () => getConfig$3().space.fill
|
|
38539
|
+
},
|
|
38540
|
+
itemWidth: {
|
|
38541
|
+
type: [String, Number],
|
|
38542
|
+
default: () => getConfig$3().space.itemWidth
|
|
38543
|
+
},
|
|
38544
|
+
itemMinWidth: {
|
|
38545
|
+
type: [String, Number],
|
|
38546
|
+
default: () => getConfig$3().space.itemMinWidth
|
|
38547
|
+
},
|
|
38548
|
+
itemMaxWidth: {
|
|
38549
|
+
type: [String, Number],
|
|
38550
|
+
default: () => getConfig$3().space.itemMaxWidth
|
|
38551
|
+
},
|
|
38552
|
+
separatorWidth: {
|
|
38553
|
+
type: [String, Number],
|
|
38554
|
+
default: () => getConfig$3().space.separatorWidth
|
|
38517
38555
|
}
|
|
38518
38556
|
},
|
|
38519
38557
|
emits: [],
|
|
@@ -38576,20 +38614,36 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38576
38614
|
const spacePrivateMethods = {};
|
|
38577
38615
|
Object.assign($xeSpace, spaceMethods, spacePrivateMethods);
|
|
38578
38616
|
const renderItems = () => {
|
|
38579
|
-
const { separator, itemClassName } = props;
|
|
38617
|
+
const { separator, itemClassName, itemWidth, itemMinWidth, itemMaxWidth, separatorWidth } = props;
|
|
38580
38618
|
const itemVNs = [];
|
|
38581
38619
|
const defaultSlot = slots.default;
|
|
38582
38620
|
const separatorSlot = slots.separator;
|
|
38621
|
+
const srStys = {};
|
|
38622
|
+
if (separatorWidth) {
|
|
38623
|
+
srStys.width = toCssUnit(itemWidth);
|
|
38624
|
+
}
|
|
38625
|
+
const itemStys = {};
|
|
38626
|
+
if (itemWidth) {
|
|
38627
|
+
itemStys.width = toCssUnit(itemWidth);
|
|
38628
|
+
}
|
|
38629
|
+
if (itemMinWidth) {
|
|
38630
|
+
itemStys.minWidth = toCssUnit(itemMinWidth);
|
|
38631
|
+
}
|
|
38632
|
+
if (itemMaxWidth) {
|
|
38633
|
+
itemStys.maxWidth = toCssUnit(itemMaxWidth);
|
|
38634
|
+
}
|
|
38583
38635
|
if (defaultSlot) {
|
|
38584
38636
|
XEUtils.each(defaultSlot({}), (itemVN, index, items) => {
|
|
38585
38637
|
itemVNs.push(h('div', {
|
|
38586
38638
|
key: 'i' + index,
|
|
38587
|
-
class: ['vxe-space--item', getPropClass(itemClassName, { index })]
|
|
38639
|
+
class: ['vxe-space--item', getPropClass(itemClassName, { index })],
|
|
38640
|
+
style: itemStys
|
|
38588
38641
|
}, [itemVN]));
|
|
38589
38642
|
if ((separator || separatorSlot) && index < items.length - 1) {
|
|
38590
38643
|
itemVNs.push(h('div', {
|
|
38591
38644
|
key: 's' + index,
|
|
38592
|
-
class: 'vxe-space--separator'
|
|
38645
|
+
class: 'vxe-space--separator',
|
|
38646
|
+
style: srStys
|
|
38593
38647
|
}, separatorSlot ? separatorSlot({}) : ('' + separator)));
|
|
38594
38648
|
}
|
|
38595
38649
|
});
|
|
@@ -38597,7 +38651,7 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38597
38651
|
return itemVNs;
|
|
38598
38652
|
};
|
|
38599
38653
|
const renderVN = () => {
|
|
38600
|
-
const { vertical, wrap, className } = props;
|
|
38654
|
+
const { vertical, wrap, className, fill, itemWidth, itemMinWidth, itemMaxWidth } = props;
|
|
38601
38655
|
const wrapperStyle = computeWrapperStyle.value;
|
|
38602
38656
|
const vSize = computeSize.value;
|
|
38603
38657
|
return h('div', {
|
|
@@ -38605,7 +38659,9 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38605
38659
|
class: ['vxe-space', getPropClass(className, {}), {
|
|
38606
38660
|
[`size--${vSize}`]: vSize,
|
|
38607
38661
|
'is--wrap': wrap,
|
|
38608
|
-
'is--vertical': vertical
|
|
38662
|
+
'is--vertical': vertical,
|
|
38663
|
+
'is--fill': fill,
|
|
38664
|
+
'is--width': itemWidth || itemMinWidth || itemMaxWidth
|
|
38609
38665
|
}],
|
|
38610
38666
|
style: wrapperStyle
|
|
38611
38667
|
}, renderItems());
|
|
@@ -39472,21 +39528,6 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39472
39528
|
clearValueEvent(evnt, null);
|
|
39473
39529
|
hideOptionPanel();
|
|
39474
39530
|
};
|
|
39475
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
39476
|
-
const { visiblePanel } = reactData;
|
|
39477
|
-
const isDisabled = computeIsDisabled.value;
|
|
39478
|
-
if (!isDisabled) {
|
|
39479
|
-
if (visiblePanel) {
|
|
39480
|
-
const panelElem = refOptionPanel.value;
|
|
39481
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
39482
|
-
updatePlacement();
|
|
39483
|
-
}
|
|
39484
|
-
else {
|
|
39485
|
-
hideOptionPanel();
|
|
39486
|
-
}
|
|
39487
|
-
}
|
|
39488
|
-
}
|
|
39489
|
-
};
|
|
39490
39531
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
39491
39532
|
const { visiblePanel } = reactData;
|
|
39492
39533
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -39520,6 +39561,12 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39520
39561
|
updatePlacement();
|
|
39521
39562
|
}
|
|
39522
39563
|
};
|
|
39564
|
+
const handleGlobalScrollEvent = () => {
|
|
39565
|
+
const { visiblePanel } = reactData;
|
|
39566
|
+
if (visiblePanel) {
|
|
39567
|
+
updatePlacement();
|
|
39568
|
+
}
|
|
39569
|
+
};
|
|
39523
39570
|
const focusEvent = (evnt) => {
|
|
39524
39571
|
const isDisabled = computeIsDisabled.value;
|
|
39525
39572
|
if (!isDisabled) {
|
|
@@ -39705,16 +39752,16 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39705
39752
|
reactData.initialized = true;
|
|
39706
39753
|
}
|
|
39707
39754
|
}
|
|
39708
|
-
globalEvents.on($xeTableSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
39709
39755
|
globalEvents.on($xeTableSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
39710
39756
|
globalEvents.on($xeTableSelect, 'blur', handleGlobalBlurEvent);
|
|
39711
39757
|
globalEvents.on($xeTableSelect, 'resize', handleGlobalResizeEvent);
|
|
39758
|
+
globalEvents.on($xeTableSelect, 'scroll', handleGlobalScrollEvent);
|
|
39712
39759
|
});
|
|
39713
39760
|
onUnmounted(() => {
|
|
39714
|
-
globalEvents.off($xeTableSelect, 'mousewheel');
|
|
39715
39761
|
globalEvents.off($xeTableSelect, 'mousedown');
|
|
39716
39762
|
globalEvents.off($xeTableSelect, 'blur');
|
|
39717
39763
|
globalEvents.off($xeTableSelect, 'resize');
|
|
39764
|
+
globalEvents.off($xeTableSelect, 'scroll');
|
|
39718
39765
|
XEUtils.assign(reactData, createReactData$5());
|
|
39719
39766
|
XEUtils.assign(internalData, createInternalData$5());
|
|
39720
39767
|
});
|
|
@@ -45987,21 +46034,6 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
45987
46034
|
$tree.clearAllExpandNode();
|
|
45988
46035
|
}
|
|
45989
46036
|
};
|
|
45990
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
45991
|
-
const { visiblePanel } = reactData;
|
|
45992
|
-
const isDisabled = computeIsDisabled.value;
|
|
45993
|
-
if (!isDisabled) {
|
|
45994
|
-
if (visiblePanel) {
|
|
45995
|
-
const panelElem = refOptionPanel.value;
|
|
45996
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
45997
|
-
updatePlacement();
|
|
45998
|
-
}
|
|
45999
|
-
else {
|
|
46000
|
-
hideOptionPanel(evnt);
|
|
46001
|
-
}
|
|
46002
|
-
}
|
|
46003
|
-
}
|
|
46004
|
-
};
|
|
46005
46037
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
46006
46038
|
const { visiblePanel } = reactData;
|
|
46007
46039
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -46035,6 +46067,12 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
46035
46067
|
updatePlacement();
|
|
46036
46068
|
}
|
|
46037
46069
|
};
|
|
46070
|
+
const handleGlobalScrollEvent = () => {
|
|
46071
|
+
const { visiblePanel } = reactData;
|
|
46072
|
+
if (visiblePanel) {
|
|
46073
|
+
updatePlacement();
|
|
46074
|
+
}
|
|
46075
|
+
};
|
|
46038
46076
|
const handleFocusSearch = () => {
|
|
46039
46077
|
if (props.filterable) {
|
|
46040
46078
|
nextTick(() => {
|
|
@@ -46405,16 +46443,16 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
46405
46443
|
if (XEUtils.isBoolean(props.autoClose)) {
|
|
46406
46444
|
warnLog$1('vxe.error.delProp', ['auto-close', 'checked-closable | clear-closable']);
|
|
46407
46445
|
}
|
|
46408
|
-
globalEvents.on($xeTreeSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
46409
46446
|
globalEvents.on($xeTreeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
46410
46447
|
globalEvents.on($xeTreeSelect, 'blur', handleGlobalBlurEvent);
|
|
46411
46448
|
globalEvents.on($xeTreeSelect, 'resize', handleGlobalResizeEvent);
|
|
46449
|
+
globalEvents.on($xeTreeSelect, 'scroll', handleGlobalScrollEvent);
|
|
46412
46450
|
});
|
|
46413
46451
|
onBeforeUnmount(() => {
|
|
46414
|
-
globalEvents.off($xeTreeSelect, 'mousewheel');
|
|
46415
46452
|
globalEvents.off($xeTreeSelect, 'mousedown');
|
|
46416
46453
|
globalEvents.off($xeTreeSelect, 'blur');
|
|
46417
46454
|
globalEvents.off($xeTreeSelect, 'resize');
|
|
46455
|
+
globalEvents.off($xeTreeSelect, 'scroll');
|
|
46418
46456
|
XEUtils.assign(reactData, createReactData$1());
|
|
46419
46457
|
XEUtils.assign(internalData, createInternalData$1());
|
|
46420
46458
|
});
|