vxe-pc-ui 4.17.30 → 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 +121 -192
- 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/pulldown/src/pulldown.js +30 -44
- package/es/select/src/select.js +8 -17
- package/es/slider/src/slider.js +6 -1
- package/es/slider/style.css +52 -6
- package/es/slider/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 +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-slider/style.css +52 -6
- package/es/vxe-slider/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 +142 -202
- package/lib/index.umd.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 +6 -0
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/slider/style/style.css +52 -6
- package/lib/slider/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 +1 -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-slider/style/style.css +52 -6
- package/lib/vxe-slider/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/pulldown/src/pulldown.ts +33 -46
- package/packages/select/src/select.ts +9 -17
- package/packages/slider/src/slider.ts +6 -1
- package/packages/table-select/src/table-select.ts +9 -17
- package/packages/tree-select/src/tree-select.ts +9 -17
- package/styles/components/slider.scss +14 -1
- /package/es/icon/{iconfont.1788500786360.ttf → iconfont.1788505334427.ttf} +0 -0
- /package/es/icon/{iconfont.1788500786360.woff → iconfont.1788505334427.woff} +0 -0
- /package/es/icon/{iconfont.1788500786360.woff2 → iconfont.1788505334427.woff2} +0 -0
- /package/es/{iconfont.1788500786360.ttf → iconfont.1788505334427.ttf} +0 -0
- /package/es/{iconfont.1788500786360.woff → iconfont.1788505334427.woff} +0 -0
- /package/es/{iconfont.1788500786360.woff2 → iconfont.1788505334427.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788500786360.ttf → iconfont.1788505334427.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788500786360.woff → iconfont.1788505334427.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788500786360.woff2 → iconfont.1788505334427.woff2} +0 -0
- /package/lib/{iconfont.1788500786360.ttf → iconfont.1788505334427.ttf} +0 -0
- /package/lib/{iconfont.1788500786360.woff → iconfont.1788505334427.woff} +0 -0
- /package/lib/{iconfont.1788500786360.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) {
|
|
@@ -3389,6 +3389,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3389
3389
|
const { slots, emit } = context;
|
|
3390
3390
|
const $xeModal = inject('$xeModal', null);
|
|
3391
3391
|
const $xeDrawer = inject('$xeDrawer', null);
|
|
3392
|
+
const $xeGrid = inject('$xeGrid', null);
|
|
3392
3393
|
const $xeTable = inject('$xeTable', null);
|
|
3393
3394
|
const $xeTree = inject('$xeTree', null);
|
|
3394
3395
|
const $xeForm = inject('$xeForm', null);
|
|
@@ -3435,7 +3436,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3435
3436
|
if (XEUtils.isBoolean(globalTransfer)) {
|
|
3436
3437
|
return globalTransfer;
|
|
3437
3438
|
}
|
|
3438
|
-
if ($xeTable || $xeTree || $xeModal || $xeDrawer || $xeForm) {
|
|
3439
|
+
if ($xeGrid || $xeTable || $xeTree || $xeModal || $xeDrawer || $xeForm) {
|
|
3439
3440
|
return true;
|
|
3440
3441
|
}
|
|
3441
3442
|
}
|
|
@@ -3791,12 +3792,6 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3791
3792
|
return nextTick();
|
|
3792
3793
|
}
|
|
3793
3794
|
};
|
|
3794
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
3795
|
-
const panelElem = refBtnPanel.value;
|
|
3796
|
-
if (reactData.visiblePanel && !getEventTargetNode(evnt, panelElem).flag) {
|
|
3797
|
-
hidePanel();
|
|
3798
|
-
}
|
|
3799
|
-
};
|
|
3800
3795
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
3801
3796
|
const btnDisabled = computeBtnDisabled.value;
|
|
3802
3797
|
const { visiblePanel } = reactData;
|
|
@@ -3815,6 +3810,12 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3815
3810
|
updatePlacement();
|
|
3816
3811
|
}
|
|
3817
3812
|
};
|
|
3813
|
+
const handleGlobalScrollEvent = () => {
|
|
3814
|
+
const { visiblePanel } = reactData;
|
|
3815
|
+
if (visiblePanel) {
|
|
3816
|
+
updatePlacement();
|
|
3817
|
+
}
|
|
3818
|
+
};
|
|
3818
3819
|
Object.assign($xeButton, buttonMethods);
|
|
3819
3820
|
const renderVN = () => {
|
|
3820
3821
|
const { className, trigger, title, routerLink, type, destroyOnClose, name, loading, shadow, showDropdownIcon } = props;
|
|
@@ -3995,14 +3996,14 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3995
3996
|
if (props.type === 'text') {
|
|
3996
3997
|
warnLog$h('vxe.error.delProp', ['type=text', 'mode=text']);
|
|
3997
3998
|
}
|
|
3998
|
-
globalEvents.on($xeButton, 'mousewheel', handleGlobalMousewheelEvent);
|
|
3999
3999
|
globalEvents.on($xeButton, 'mousedown', handleGlobalMousedownEvent);
|
|
4000
4000
|
globalEvents.on($xeButton, 'resize', handleGlobalResizeEvent);
|
|
4001
|
+
globalEvents.on($xeButton, 'scroll', handleGlobalScrollEvent);
|
|
4001
4002
|
});
|
|
4002
4003
|
onUnmounted(() => {
|
|
4003
|
-
globalEvents.off($xeButton, 'mousewheel');
|
|
4004
4004
|
globalEvents.off($xeButton, 'mousedown');
|
|
4005
4005
|
globalEvents.off($xeButton, 'resize');
|
|
4006
|
+
globalEvents.off($xeButton, 'scroll');
|
|
4006
4007
|
});
|
|
4007
4008
|
return $xeButton;
|
|
4008
4009
|
},
|
|
@@ -12778,21 +12779,6 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
12778
12779
|
const { $event } = params;
|
|
12779
12780
|
hideOptionPanel($event);
|
|
12780
12781
|
};
|
|
12781
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
12782
|
-
const { visiblePanel } = reactData;
|
|
12783
|
-
const isDisabled = computeIsDisabled.value;
|
|
12784
|
-
if (!isDisabled) {
|
|
12785
|
-
if (visiblePanel) {
|
|
12786
|
-
const panelElem = refOptionPanel.value;
|
|
12787
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
12788
|
-
updatePlacement();
|
|
12789
|
-
}
|
|
12790
|
-
else {
|
|
12791
|
-
hideOptionPanel(evnt);
|
|
12792
|
-
}
|
|
12793
|
-
}
|
|
12794
|
-
}
|
|
12795
|
-
};
|
|
12796
12782
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
12797
12783
|
const { visiblePanel } = reactData;
|
|
12798
12784
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -12826,6 +12812,12 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
12826
12812
|
updatePlacement();
|
|
12827
12813
|
}
|
|
12828
12814
|
};
|
|
12815
|
+
const handleGlobalScrollEvent = () => {
|
|
12816
|
+
const { visiblePanel } = reactData;
|
|
12817
|
+
if (visiblePanel) {
|
|
12818
|
+
updatePlacement();
|
|
12819
|
+
}
|
|
12820
|
+
};
|
|
12829
12821
|
const handleFocusSearch = () => {
|
|
12830
12822
|
if (props.filterable) {
|
|
12831
12823
|
nextTick(() => {
|
|
@@ -13658,16 +13650,16 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
13658
13650
|
});
|
|
13659
13651
|
loadData(props.options || []);
|
|
13660
13652
|
onMounted(() => {
|
|
13661
|
-
globalEvents.on($xeCascader, 'mousewheel', handleGlobalMousewheelEvent);
|
|
13662
13653
|
globalEvents.on($xeCascader, 'mousedown', handleGlobalMousedownEvent);
|
|
13663
13654
|
globalEvents.on($xeCascader, 'blur', handleGlobalBlurEvent);
|
|
13664
13655
|
globalEvents.on($xeCascader, 'resize', handleGlobalResizeEvent);
|
|
13656
|
+
globalEvents.on($xeCascader, 'scroll', handleGlobalScrollEvent);
|
|
13665
13657
|
});
|
|
13666
13658
|
onUnmounted(() => {
|
|
13667
|
-
globalEvents.off($xeCascader, 'mousewheel');
|
|
13668
13659
|
globalEvents.off($xeCascader, 'mousedown');
|
|
13669
13660
|
globalEvents.off($xeCascader, 'blur');
|
|
13670
13661
|
globalEvents.off($xeCascader, 'resize');
|
|
13662
|
+
globalEvents.off($xeCascader, 'scroll');
|
|
13671
13663
|
XEUtils.assign(reactData, createReactData$l());
|
|
13672
13664
|
XEUtils.assign(internalData, createInternalData$k());
|
|
13673
13665
|
});
|
|
@@ -17021,21 +17013,6 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17021
17013
|
}
|
|
17022
17014
|
}
|
|
17023
17015
|
};
|
|
17024
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
17025
|
-
const { visiblePanel } = reactData;
|
|
17026
|
-
const isDisabled = computeIsDisabled.value;
|
|
17027
|
-
if (!isDisabled) {
|
|
17028
|
-
if (visiblePanel) {
|
|
17029
|
-
const panelElem = refOptionPanel.value;
|
|
17030
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
17031
|
-
updatePlacement();
|
|
17032
|
-
}
|
|
17033
|
-
else {
|
|
17034
|
-
hideOptionPanel();
|
|
17035
|
-
}
|
|
17036
|
-
}
|
|
17037
|
-
}
|
|
17038
|
-
};
|
|
17039
17016
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
17040
17017
|
const { visiblePanel } = reactData;
|
|
17041
17018
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -17069,6 +17046,12 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17069
17046
|
updatePlacement();
|
|
17070
17047
|
}
|
|
17071
17048
|
};
|
|
17049
|
+
const handleGlobalScrollEvent = () => {
|
|
17050
|
+
const { visiblePanel } = reactData;
|
|
17051
|
+
if (visiblePanel) {
|
|
17052
|
+
updatePlacement();
|
|
17053
|
+
}
|
|
17054
|
+
};
|
|
17072
17055
|
const dispatchEvent = (type, params, evnt) => {
|
|
17073
17056
|
emit(type, createEvent(evnt, { $colorPicker: $xeColorPicker }, params));
|
|
17074
17057
|
};
|
|
@@ -17472,16 +17455,16 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17472
17455
|
updateType();
|
|
17473
17456
|
});
|
|
17474
17457
|
onMounted(() => {
|
|
17475
|
-
globalEvents.on($xeColorPicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
17476
17458
|
globalEvents.on($xeColorPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
17477
17459
|
globalEvents.on($xeColorPicker, 'blur', handleGlobalBlurEvent);
|
|
17478
17460
|
globalEvents.on($xeColorPicker, 'resize', handleGlobalResizeEvent);
|
|
17461
|
+
globalEvents.on($xeColorPicker, 'scroll', handleGlobalScrollEvent);
|
|
17479
17462
|
});
|
|
17480
17463
|
onUnmounted(() => {
|
|
17481
|
-
globalEvents.off($xeColorPicker, 'mousewheel');
|
|
17482
17464
|
globalEvents.off($xeColorPicker, 'mousedown');
|
|
17483
17465
|
globalEvents.off($xeColorPicker, 'blur');
|
|
17484
17466
|
globalEvents.off($xeColorPicker, 'resize');
|
|
17467
|
+
globalEvents.off($xeColorPicker, 'scroll');
|
|
17485
17468
|
});
|
|
17486
17469
|
updateType();
|
|
17487
17470
|
provide('$xeColorPicker', $xeColorPicker);
|
|
@@ -21512,21 +21495,6 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21512
21495
|
}
|
|
21513
21496
|
}
|
|
21514
21497
|
};
|
|
21515
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
21516
|
-
const { visiblePanel } = reactData;
|
|
21517
|
-
const isDisabled = computeIsDisabled.value;
|
|
21518
|
-
if (!isDisabled) {
|
|
21519
|
-
if (visiblePanel) {
|
|
21520
|
-
const panelWrapperElem = refPanelWrapper.value;
|
|
21521
|
-
if (getEventTargetNode(evnt, panelWrapperElem).flag) {
|
|
21522
|
-
updatePlacement();
|
|
21523
|
-
}
|
|
21524
|
-
else {
|
|
21525
|
-
hidePanel();
|
|
21526
|
-
}
|
|
21527
|
-
}
|
|
21528
|
-
}
|
|
21529
|
-
};
|
|
21530
21498
|
const handleGlobalBlurEvent = () => {
|
|
21531
21499
|
const { isActivated, visiblePanel } = reactData;
|
|
21532
21500
|
if (visiblePanel) {
|
|
@@ -21549,6 +21517,12 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21549
21517
|
updatePlacement();
|
|
21550
21518
|
}
|
|
21551
21519
|
};
|
|
21520
|
+
const handleGlobalScrollEvent = () => {
|
|
21521
|
+
const { visiblePanel } = reactData;
|
|
21522
|
+
if (visiblePanel) {
|
|
21523
|
+
updatePlacement();
|
|
21524
|
+
}
|
|
21525
|
+
};
|
|
21552
21526
|
// 弹出面板
|
|
21553
21527
|
const updateZindex = () => {
|
|
21554
21528
|
const popupOpts = computePopupOpts.value;
|
|
@@ -22022,11 +21996,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22022
21996
|
});
|
|
22023
21997
|
updateModelValue();
|
|
22024
21998
|
nextTick(() => {
|
|
22025
|
-
globalEvents.on($xeDatePicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
22026
21999
|
globalEvents.on($xeDatePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
22027
22000
|
globalEvents.on($xeDatePicker, 'keydown', handleGlobalKeydownEvent);
|
|
22028
22001
|
globalEvents.on($xeDatePicker, 'blur', handleGlobalBlurEvent);
|
|
22029
22002
|
globalEvents.on($xeDatePicker, 'resize', handleGlobalResizeEvent);
|
|
22003
|
+
globalEvents.on($xeDatePicker, 'scroll', handleGlobalScrollEvent);
|
|
22030
22004
|
});
|
|
22031
22005
|
onMounted(() => {
|
|
22032
22006
|
const { type, multiple, maskedConfig } = props;
|
|
@@ -22040,11 +22014,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22040
22014
|
}
|
|
22041
22015
|
});
|
|
22042
22016
|
onUnmounted(() => {
|
|
22043
|
-
globalEvents.off($xeDatePicker, 'mousewheel');
|
|
22044
22017
|
globalEvents.off($xeDatePicker, 'mousedown');
|
|
22045
22018
|
globalEvents.off($xeDatePicker, 'keydown');
|
|
22046
22019
|
globalEvents.off($xeDatePicker, 'blur');
|
|
22047
22020
|
globalEvents.off($xeDatePicker, 'resize');
|
|
22021
|
+
globalEvents.off($xeDatePicker, 'scroll');
|
|
22048
22022
|
XEUtils.assign(reactData, createReactData$h());
|
|
22049
22023
|
XEUtils.assign(internalData, createInternalData$g());
|
|
22050
22024
|
});
|
|
@@ -22974,22 +22948,6 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22974
22948
|
}
|
|
22975
22949
|
}
|
|
22976
22950
|
};
|
|
22977
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
22978
|
-
const { visiblePanel } = reactData;
|
|
22979
|
-
const isDisabled = computeIsDisabled.value;
|
|
22980
|
-
if (!isDisabled) {
|
|
22981
|
-
if (visiblePanel) {
|
|
22982
|
-
const panelWrapperElem = refPanelWrapper.value;
|
|
22983
|
-
if (getEventTargetNode(evnt, panelWrapperElem).flag) {
|
|
22984
|
-
updatePlacement();
|
|
22985
|
-
}
|
|
22986
|
-
else {
|
|
22987
|
-
checkValue();
|
|
22988
|
-
hidePanel();
|
|
22989
|
-
}
|
|
22990
|
-
}
|
|
22991
|
-
}
|
|
22992
|
-
};
|
|
22993
22951
|
const handleGlobalBlurEvent = () => {
|
|
22994
22952
|
const { visiblePanel, isActivated } = reactData;
|
|
22995
22953
|
if (visiblePanel) {
|
|
@@ -23012,6 +22970,12 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23012
22970
|
updatePlacement();
|
|
23013
22971
|
}
|
|
23014
22972
|
};
|
|
22973
|
+
const handleGlobalScrollEvent = () => {
|
|
22974
|
+
const { visiblePanel } = reactData;
|
|
22975
|
+
if (visiblePanel) {
|
|
22976
|
+
updatePlacement();
|
|
22977
|
+
}
|
|
22978
|
+
};
|
|
23015
22979
|
// 弹出面板
|
|
23016
22980
|
const updateZindex = () => {
|
|
23017
22981
|
const popupOpts = computePopupOpts.value;
|
|
@@ -23539,11 +23503,11 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23539
23503
|
});
|
|
23540
23504
|
updateModelValue(true);
|
|
23541
23505
|
nextTick(() => {
|
|
23542
|
-
globalEvents.on($xeDateRangePicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
23543
23506
|
globalEvents.on($xeDateRangePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
23544
23507
|
globalEvents.on($xeDateRangePicker, 'keydown', handleGlobalKeydownEvent);
|
|
23545
23508
|
globalEvents.on($xeDateRangePicker, 'blur', handleGlobalBlurEvent);
|
|
23546
23509
|
globalEvents.on($xeDateRangePicker, 'resize', handleGlobalResizeEvent);
|
|
23510
|
+
globalEvents.on($xeDateRangePicker, 'scroll', handleGlobalScrollEvent);
|
|
23547
23511
|
});
|
|
23548
23512
|
onDeactivated(() => {
|
|
23549
23513
|
checkValue();
|
|
@@ -23552,10 +23516,11 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23552
23516
|
checkValue();
|
|
23553
23517
|
});
|
|
23554
23518
|
onUnmounted(() => {
|
|
23555
|
-
globalEvents.off($xeDateRangePicker, 'mousewheel');
|
|
23556
23519
|
globalEvents.off($xeDateRangePicker, 'mousedown');
|
|
23520
|
+
globalEvents.off($xeDateRangePicker, 'keydown');
|
|
23557
23521
|
globalEvents.off($xeDateRangePicker, 'blur');
|
|
23558
23522
|
globalEvents.off($xeDateRangePicker, 'resize');
|
|
23523
|
+
globalEvents.off($xeDateRangePicker, 'scroll');
|
|
23559
23524
|
XEUtils.assign(reactData, createReactData$g());
|
|
23560
23525
|
XEUtils.assign(internalData, createInternalData$f());
|
|
23561
23526
|
});
|
|
@@ -27098,21 +27063,6 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27098
27063
|
togglePanelEvent(evnt);
|
|
27099
27064
|
dispatchEvent('click', {}, evnt);
|
|
27100
27065
|
};
|
|
27101
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
27102
|
-
const { visiblePanel } = reactData;
|
|
27103
|
-
const isDisabled = computeIsDisabled.value;
|
|
27104
|
-
if (!isDisabled) {
|
|
27105
|
-
if (visiblePanel) {
|
|
27106
|
-
const panelElem = refOptionPanel.value;
|
|
27107
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
27108
|
-
updatePlacement();
|
|
27109
|
-
}
|
|
27110
|
-
else {
|
|
27111
|
-
hideOptionPanel();
|
|
27112
|
-
}
|
|
27113
|
-
}
|
|
27114
|
-
}
|
|
27115
|
-
};
|
|
27116
27066
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
27117
27067
|
const { visiblePanel } = reactData;
|
|
27118
27068
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -27188,6 +27138,18 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27188
27138
|
}
|
|
27189
27139
|
}
|
|
27190
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
|
+
};
|
|
27191
27153
|
const dispatchEvent = (type, params, evnt) => {
|
|
27192
27154
|
emit(type, createEvent(evnt, { $iconPicker: $xeIconPicker }, params));
|
|
27193
27155
|
};
|
|
@@ -27447,16 +27409,19 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27447
27409
|
handleData();
|
|
27448
27410
|
});
|
|
27449
27411
|
onMounted(() => {
|
|
27450
|
-
globalEvents.on($xeIconPicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
27451
27412
|
globalEvents.on($xeIconPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
27452
27413
|
globalEvents.on($xeIconPicker, 'keydown', handleGlobalKeydownEvent);
|
|
27453
27414
|
globalEvents.on($xeIconPicker, 'blur', handleGlobalBlurEvent);
|
|
27415
|
+
globalEvents.on($xeIconPicker, 'resize', handleGlobalResizeEvent);
|
|
27416
|
+
globalEvents.on($xeIconPicker, 'scroll', handleGlobalScrollEvent);
|
|
27454
27417
|
});
|
|
27455
27418
|
onBeforeUnmount(() => {
|
|
27456
27419
|
globalEvents.off($xeIconPicker, 'mousewheel');
|
|
27457
27420
|
globalEvents.off($xeIconPicker, 'mousedown');
|
|
27458
27421
|
globalEvents.off($xeIconPicker, 'keydown');
|
|
27459
27422
|
globalEvents.off($xeIconPicker, 'blur');
|
|
27423
|
+
globalEvents.off($xeIconPicker, 'resize');
|
|
27424
|
+
globalEvents.off($xeIconPicker, 'scroll');
|
|
27460
27425
|
XEUtils.assign(reactData, createReactData$e());
|
|
27461
27426
|
XEUtils.assign(internalData, createInternalData$d());
|
|
27462
27427
|
});
|
|
@@ -32518,21 +32483,6 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32518
32483
|
}
|
|
32519
32484
|
reactData.reactFlag++;
|
|
32520
32485
|
};
|
|
32521
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
32522
|
-
const { visiblePanel } = reactData;
|
|
32523
|
-
const isDisabled = computeIsDisabled.value;
|
|
32524
|
-
if (!isDisabled) {
|
|
32525
|
-
if (visiblePanel) {
|
|
32526
|
-
const panelElem = refOptionPanel.value;
|
|
32527
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
32528
|
-
updatePlacement();
|
|
32529
|
-
}
|
|
32530
|
-
else {
|
|
32531
|
-
hideOptionPanel(evnt);
|
|
32532
|
-
}
|
|
32533
|
-
}
|
|
32534
|
-
}
|
|
32535
|
-
};
|
|
32536
32486
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
32537
32487
|
const { visiblePanel } = reactData;
|
|
32538
32488
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -32695,6 +32645,12 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32695
32645
|
updatePlacement();
|
|
32696
32646
|
}
|
|
32697
32647
|
};
|
|
32648
|
+
const handleGlobalScrollEvent = () => {
|
|
32649
|
+
const { visiblePanel } = reactData;
|
|
32650
|
+
if (visiblePanel) {
|
|
32651
|
+
updatePlacement();
|
|
32652
|
+
}
|
|
32653
|
+
};
|
|
32698
32654
|
const handleFocusSearch = () => {
|
|
32699
32655
|
if (props.filterable) {
|
|
32700
32656
|
nextTick(() => {
|
|
@@ -33499,18 +33455,18 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33499
33455
|
loadData(options);
|
|
33500
33456
|
}
|
|
33501
33457
|
});
|
|
33502
|
-
globalEvents.on($xeSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
33503
33458
|
globalEvents.on($xeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
33504
33459
|
globalEvents.on($xeSelect, 'keydown', handleGlobalKeydownEvent);
|
|
33505
33460
|
globalEvents.on($xeSelect, 'blur', handleGlobalBlurEvent);
|
|
33506
33461
|
globalEvents.on($xeSelect, 'resize', handleGlobalResizeEvent);
|
|
33462
|
+
globalEvents.on($xeSelect, 'scroll', handleGlobalScrollEvent);
|
|
33507
33463
|
});
|
|
33508
33464
|
onUnmounted(() => {
|
|
33509
|
-
globalEvents.off($xeSelect, 'mousewheel');
|
|
33510
33465
|
globalEvents.off($xeSelect, 'mousedown');
|
|
33511
33466
|
globalEvents.off($xeSelect, 'keydown');
|
|
33512
33467
|
globalEvents.off($xeSelect, 'blur');
|
|
33513
33468
|
globalEvents.off($xeSelect, 'resize');
|
|
33469
|
+
globalEvents.off($xeSelect, 'scroll');
|
|
33514
33470
|
XEUtils.assign(reactData, createReactData$9());
|
|
33515
33471
|
XEUtils.assign(internalData, createInternalData$8());
|
|
33516
33472
|
});
|
|
@@ -35525,26 +35481,6 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35525
35481
|
}
|
|
35526
35482
|
dispatchEvent('click', { $pulldown: $xePulldown }, evnt);
|
|
35527
35483
|
};
|
|
35528
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
35529
|
-
const { trigger, disabled } = props;
|
|
35530
|
-
const { visiblePanel } = reactData;
|
|
35531
|
-
const panelElem = refPulldownPanel.value;
|
|
35532
|
-
const popupOpts = computePopupOpts.value;
|
|
35533
|
-
const currTrigger = trigger || popupOpts.trigger;
|
|
35534
|
-
if (!disabled) {
|
|
35535
|
-
if (visiblePanel) {
|
|
35536
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
35537
|
-
updatePlacement();
|
|
35538
|
-
}
|
|
35539
|
-
else {
|
|
35540
|
-
if (currTrigger !== 'manual') {
|
|
35541
|
-
hideOptionPanel();
|
|
35542
|
-
dispatchEvent('hide-panel', {}, evnt);
|
|
35543
|
-
}
|
|
35544
|
-
}
|
|
35545
|
-
}
|
|
35546
|
-
}
|
|
35547
|
-
};
|
|
35548
35484
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
35549
35485
|
const { trigger, disabled } = props;
|
|
35550
35486
|
const { visiblePanel } = reactData;
|
|
@@ -35583,6 +35519,12 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35583
35519
|
updatePlacement();
|
|
35584
35520
|
}
|
|
35585
35521
|
};
|
|
35522
|
+
const handleGlobalScrollEvent = () => {
|
|
35523
|
+
const { visiblePanel } = reactData;
|
|
35524
|
+
if (visiblePanel) {
|
|
35525
|
+
updatePlacement();
|
|
35526
|
+
}
|
|
35527
|
+
};
|
|
35586
35528
|
const dispatchEvent = (type, params, evnt) => {
|
|
35587
35529
|
emit(type, createEvent(evnt, { $pulldown: $xePulldown }, params));
|
|
35588
35530
|
};
|
|
@@ -35594,30 +35536,6 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35594
35536
|
hidePanel: hideOptionPanel
|
|
35595
35537
|
};
|
|
35596
35538
|
Object.assign($xePulldown, pulldownMethods);
|
|
35597
|
-
watch(() => props.modelValue, (value) => {
|
|
35598
|
-
reactData.isActivated = !!value;
|
|
35599
|
-
if (value) {
|
|
35600
|
-
showPanel();
|
|
35601
|
-
}
|
|
35602
|
-
else {
|
|
35603
|
-
hideOptionPanel();
|
|
35604
|
-
}
|
|
35605
|
-
});
|
|
35606
|
-
nextTick(() => {
|
|
35607
|
-
if (props.modelValue) {
|
|
35608
|
-
showPanel();
|
|
35609
|
-
}
|
|
35610
|
-
globalEvents.on($xePulldown, 'mousewheel', handleGlobalMousewheelEvent);
|
|
35611
|
-
globalEvents.on($xePulldown, 'mousedown', handleGlobalMousedownEvent);
|
|
35612
|
-
globalEvents.on($xePulldown, 'blur', handleGlobalBlurEvent);
|
|
35613
|
-
globalEvents.on($xePulldown, 'resize', handleGlobalResizeEvent);
|
|
35614
|
-
});
|
|
35615
|
-
onUnmounted(() => {
|
|
35616
|
-
globalEvents.off($xePulldown, 'mousewheel');
|
|
35617
|
-
globalEvents.off($xePulldown, 'mousedown');
|
|
35618
|
-
globalEvents.off($xePulldown, 'blur');
|
|
35619
|
-
globalEvents.off($xePulldown, 'resize');
|
|
35620
|
-
});
|
|
35621
35539
|
const renderDefaultPanel = (options) => {
|
|
35622
35540
|
const optionSlot = slots.option;
|
|
35623
35541
|
return h('div', {
|
|
@@ -35702,6 +35620,30 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35702
35620
|
])
|
|
35703
35621
|
]);
|
|
35704
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
|
+
});
|
|
35705
35647
|
$xePulldown.renderVN = renderVN;
|
|
35706
35648
|
return $xePulldown;
|
|
35707
35649
|
},
|
|
@@ -38135,6 +38077,10 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38135
38077
|
type: Boolean,
|
|
38136
38078
|
default: null
|
|
38137
38079
|
},
|
|
38080
|
+
status: {
|
|
38081
|
+
type: String,
|
|
38082
|
+
default: () => getConfig$3().slider.status
|
|
38083
|
+
},
|
|
38138
38084
|
immediate: {
|
|
38139
38085
|
type: Boolean,
|
|
38140
38086
|
default: () => getConfig$3().slider.immediate
|
|
@@ -38468,7 +38414,7 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38468
38414
|
const collapsePanePrivateMethods = {};
|
|
38469
38415
|
Object.assign($xeSlider, collapsePaneMethods, collapsePanePrivateMethods);
|
|
38470
38416
|
const renderVN = () => {
|
|
38471
|
-
const { vertical, range } = props;
|
|
38417
|
+
const { status, vertical, range } = props;
|
|
38472
38418
|
const vSize = computeSize.value;
|
|
38473
38419
|
const formReadonly = computeFormReadonly.value;
|
|
38474
38420
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -38476,6 +38422,7 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38476
38422
|
ref: refElem,
|
|
38477
38423
|
class: ['vxe-slider', {
|
|
38478
38424
|
[`size--${vSize}`]: vSize,
|
|
38425
|
+
[`theme--${status}`]: status,
|
|
38479
38426
|
'is--vertical': vertical,
|
|
38480
38427
|
'is--readonly': formReadonly,
|
|
38481
38428
|
'is--disabled': isDisabled
|
|
@@ -39581,21 +39528,6 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39581
39528
|
clearValueEvent(evnt, null);
|
|
39582
39529
|
hideOptionPanel();
|
|
39583
39530
|
};
|
|
39584
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
39585
|
-
const { visiblePanel } = reactData;
|
|
39586
|
-
const isDisabled = computeIsDisabled.value;
|
|
39587
|
-
if (!isDisabled) {
|
|
39588
|
-
if (visiblePanel) {
|
|
39589
|
-
const panelElem = refOptionPanel.value;
|
|
39590
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
39591
|
-
updatePlacement();
|
|
39592
|
-
}
|
|
39593
|
-
else {
|
|
39594
|
-
hideOptionPanel();
|
|
39595
|
-
}
|
|
39596
|
-
}
|
|
39597
|
-
}
|
|
39598
|
-
};
|
|
39599
39531
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
39600
39532
|
const { visiblePanel } = reactData;
|
|
39601
39533
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -39629,6 +39561,12 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39629
39561
|
updatePlacement();
|
|
39630
39562
|
}
|
|
39631
39563
|
};
|
|
39564
|
+
const handleGlobalScrollEvent = () => {
|
|
39565
|
+
const { visiblePanel } = reactData;
|
|
39566
|
+
if (visiblePanel) {
|
|
39567
|
+
updatePlacement();
|
|
39568
|
+
}
|
|
39569
|
+
};
|
|
39632
39570
|
const focusEvent = (evnt) => {
|
|
39633
39571
|
const isDisabled = computeIsDisabled.value;
|
|
39634
39572
|
if (!isDisabled) {
|
|
@@ -39814,16 +39752,16 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39814
39752
|
reactData.initialized = true;
|
|
39815
39753
|
}
|
|
39816
39754
|
}
|
|
39817
|
-
globalEvents.on($xeTableSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
39818
39755
|
globalEvents.on($xeTableSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
39819
39756
|
globalEvents.on($xeTableSelect, 'blur', handleGlobalBlurEvent);
|
|
39820
39757
|
globalEvents.on($xeTableSelect, 'resize', handleGlobalResizeEvent);
|
|
39758
|
+
globalEvents.on($xeTableSelect, 'scroll', handleGlobalScrollEvent);
|
|
39821
39759
|
});
|
|
39822
39760
|
onUnmounted(() => {
|
|
39823
|
-
globalEvents.off($xeTableSelect, 'mousewheel');
|
|
39824
39761
|
globalEvents.off($xeTableSelect, 'mousedown');
|
|
39825
39762
|
globalEvents.off($xeTableSelect, 'blur');
|
|
39826
39763
|
globalEvents.off($xeTableSelect, 'resize');
|
|
39764
|
+
globalEvents.off($xeTableSelect, 'scroll');
|
|
39827
39765
|
XEUtils.assign(reactData, createReactData$5());
|
|
39828
39766
|
XEUtils.assign(internalData, createInternalData$5());
|
|
39829
39767
|
});
|
|
@@ -46096,21 +46034,6 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
46096
46034
|
$tree.clearAllExpandNode();
|
|
46097
46035
|
}
|
|
46098
46036
|
};
|
|
46099
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
46100
|
-
const { visiblePanel } = reactData;
|
|
46101
|
-
const isDisabled = computeIsDisabled.value;
|
|
46102
|
-
if (!isDisabled) {
|
|
46103
|
-
if (visiblePanel) {
|
|
46104
|
-
const panelElem = refOptionPanel.value;
|
|
46105
|
-
if (getEventTargetNode(evnt, panelElem).flag) {
|
|
46106
|
-
updatePlacement();
|
|
46107
|
-
}
|
|
46108
|
-
else {
|
|
46109
|
-
hideOptionPanel(evnt);
|
|
46110
|
-
}
|
|
46111
|
-
}
|
|
46112
|
-
}
|
|
46113
|
-
};
|
|
46114
46037
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
46115
46038
|
const { visiblePanel } = reactData;
|
|
46116
46039
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -46144,6 +46067,12 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
46144
46067
|
updatePlacement();
|
|
46145
46068
|
}
|
|
46146
46069
|
};
|
|
46070
|
+
const handleGlobalScrollEvent = () => {
|
|
46071
|
+
const { visiblePanel } = reactData;
|
|
46072
|
+
if (visiblePanel) {
|
|
46073
|
+
updatePlacement();
|
|
46074
|
+
}
|
|
46075
|
+
};
|
|
46147
46076
|
const handleFocusSearch = () => {
|
|
46148
46077
|
if (props.filterable) {
|
|
46149
46078
|
nextTick(() => {
|
|
@@ -46514,16 +46443,16 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
46514
46443
|
if (XEUtils.isBoolean(props.autoClose)) {
|
|
46515
46444
|
warnLog$1('vxe.error.delProp', ['auto-close', 'checked-closable | clear-closable']);
|
|
46516
46445
|
}
|
|
46517
|
-
globalEvents.on($xeTreeSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
46518
46446
|
globalEvents.on($xeTreeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
46519
46447
|
globalEvents.on($xeTreeSelect, 'blur', handleGlobalBlurEvent);
|
|
46520
46448
|
globalEvents.on($xeTreeSelect, 'resize', handleGlobalResizeEvent);
|
|
46449
|
+
globalEvents.on($xeTreeSelect, 'scroll', handleGlobalScrollEvent);
|
|
46521
46450
|
});
|
|
46522
46451
|
onBeforeUnmount(() => {
|
|
46523
|
-
globalEvents.off($xeTreeSelect, 'mousewheel');
|
|
46524
46452
|
globalEvents.off($xeTreeSelect, 'mousedown');
|
|
46525
46453
|
globalEvents.off($xeTreeSelect, 'blur');
|
|
46526
46454
|
globalEvents.off($xeTreeSelect, 'resize');
|
|
46455
|
+
globalEvents.off($xeTreeSelect, 'scroll');
|
|
46527
46456
|
XEUtils.assign(reactData, createReactData$1());
|
|
46528
46457
|
XEUtils.assign(internalData, createInternalData$1());
|
|
46529
46458
|
});
|