vxe-pc-ui 4.17.30 → 4.18.1
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 +209 -194
- 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/components.js +3 -0
- package/es/date-picker/src/date-picker.js +8 -17
- package/es/date-range-picker/src/date-range-picker.js +9 -18
- package/es/divider/index.js +12 -0
- package/es/divider/src/divider.js +73 -0
- package/es/divider/style.css +83 -0
- package/es/divider/style.min.css +1 -0
- package/es/empty/src/empty.js +5 -2
- 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 +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-divider/index.js +3 -0
- package/es/vxe-divider/style.css +83 -0
- package/es/vxe-divider/style.min.css +1 -0
- 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/components.js +13 -1
- package/lib/components.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/divider/index.js +19 -0
- package/lib/divider/index.min.js +1 -0
- package/lib/divider/src/divider.js +87 -0
- package/lib/divider/src/divider.min.js +1 -0
- package/lib/divider/style/index.js +1 -0
- package/lib/divider/style/style.css +83 -0
- package/lib/divider/style/style.min.css +1 -0
- package/lib/empty/src/empty.js +4 -1
- package/lib/empty/src/empty.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 +248 -204
- 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 +2 -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-divider/index.js +21 -0
- package/lib/vxe-divider/index.min.js +1 -0
- package/lib/vxe-divider/style/index.js +1 -0
- package/lib/vxe-divider/style/style.css +83 -0
- package/lib/vxe-divider/style/style.min.css +1 -0
- 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/components.ts +3 -0
- package/packages/date-picker/src/date-picker.ts +9 -17
- package/packages/date-range-picker/src/date-range-picker.ts +10 -18
- package/packages/divider/index.ts +16 -0
- package/packages/divider/src/divider.ts +93 -0
- package/packages/empty/src/empty.ts +5 -2
- 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/packages/ui/index.ts +1 -0
- package/styles/all.scss +1 -0
- package/styles/components/divider.scss +92 -0
- package/styles/components/slider.scss +14 -1
- package/styles/theme/base.scss +15 -0
- package/types/all.d.ts +6 -0
- package/types/components/divider.d.ts +75 -0
- package/types/ui/global-config.d.ts +2 -0
- /package/es/icon/{iconfont.1788500786360.ttf → iconfont.1788592140906.ttf} +0 -0
- /package/es/icon/{iconfont.1788500786360.woff → iconfont.1788592140906.woff} +0 -0
- /package/es/icon/{iconfont.1788500786360.woff2 → iconfont.1788592140906.woff2} +0 -0
- /package/es/{iconfont.1788500786360.ttf → iconfont.1788592140906.ttf} +0 -0
- /package/es/{iconfont.1788500786360.woff → iconfont.1788592140906.woff} +0 -0
- /package/es/{iconfont.1788500786360.woff2 → iconfont.1788592140906.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788500786360.ttf → iconfont.1788592140906.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788500786360.woff → iconfont.1788592140906.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788500786360.woff2 → iconfont.1788592140906.woff2} +0 -0
- /package/lib/{iconfont.1788500786360.ttf → iconfont.1788592140906.ttf} +0 -0
- /package/lib/{iconfont.1788500786360.woff → iconfont.1788592140906.woff} +0 -0
- /package/lib/{iconfont.1788500786360.woff2 → iconfont.1788592140906.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.1"}`;
|
|
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.1";
|
|
119
119
|
VxeUI.uiVersion = version;
|
|
120
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
121
121
|
function config(options) {
|
|
@@ -248,6 +248,7 @@ setConfig$1({
|
|
|
248
248
|
showClearButton: null,
|
|
249
249
|
showConfirmButton: null
|
|
250
250
|
},
|
|
251
|
+
divider: {},
|
|
251
252
|
drawer: {
|
|
252
253
|
// size: null,
|
|
253
254
|
// useHtml: false,
|
|
@@ -3389,6 +3390,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3389
3390
|
const { slots, emit } = context;
|
|
3390
3391
|
const $xeModal = inject('$xeModal', null);
|
|
3391
3392
|
const $xeDrawer = inject('$xeDrawer', null);
|
|
3393
|
+
const $xeGrid = inject('$xeGrid', null);
|
|
3392
3394
|
const $xeTable = inject('$xeTable', null);
|
|
3393
3395
|
const $xeTree = inject('$xeTree', null);
|
|
3394
3396
|
const $xeForm = inject('$xeForm', null);
|
|
@@ -3435,7 +3437,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3435
3437
|
if (XEUtils.isBoolean(globalTransfer)) {
|
|
3436
3438
|
return globalTransfer;
|
|
3437
3439
|
}
|
|
3438
|
-
if ($xeTable || $xeTree || $xeModal || $xeDrawer || $xeForm) {
|
|
3440
|
+
if ($xeGrid || $xeTable || $xeTree || $xeModal || $xeDrawer || $xeForm) {
|
|
3439
3441
|
return true;
|
|
3440
3442
|
}
|
|
3441
3443
|
}
|
|
@@ -3791,12 +3793,6 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3791
3793
|
return nextTick();
|
|
3792
3794
|
}
|
|
3793
3795
|
};
|
|
3794
|
-
const handleGlobalMousewheelEvent = (evnt) => {
|
|
3795
|
-
const panelElem = refBtnPanel.value;
|
|
3796
|
-
if (reactData.visiblePanel && !getEventTargetNode(evnt, panelElem).flag) {
|
|
3797
|
-
hidePanel();
|
|
3798
|
-
}
|
|
3799
|
-
};
|
|
3800
3796
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
3801
3797
|
const btnDisabled = computeBtnDisabled.value;
|
|
3802
3798
|
const { visiblePanel } = reactData;
|
|
@@ -3815,6 +3811,12 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3815
3811
|
updatePlacement();
|
|
3816
3812
|
}
|
|
3817
3813
|
};
|
|
3814
|
+
const handleGlobalScrollEvent = () => {
|
|
3815
|
+
const { visiblePanel } = reactData;
|
|
3816
|
+
if (visiblePanel) {
|
|
3817
|
+
updatePlacement();
|
|
3818
|
+
}
|
|
3819
|
+
};
|
|
3818
3820
|
Object.assign($xeButton, buttonMethods);
|
|
3819
3821
|
const renderVN = () => {
|
|
3820
3822
|
const { className, trigger, title, routerLink, type, destroyOnClose, name, loading, shadow, showDropdownIcon } = props;
|
|
@@ -3995,14 +3997,14 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3995
3997
|
if (props.type === 'text') {
|
|
3996
3998
|
warnLog$h('vxe.error.delProp', ['type=text', 'mode=text']);
|
|
3997
3999
|
}
|
|
3998
|
-
globalEvents.on($xeButton, 'mousewheel', handleGlobalMousewheelEvent);
|
|
3999
4000
|
globalEvents.on($xeButton, 'mousedown', handleGlobalMousedownEvent);
|
|
4000
4001
|
globalEvents.on($xeButton, 'resize', handleGlobalResizeEvent);
|
|
4002
|
+
globalEvents.on($xeButton, 'scroll', handleGlobalScrollEvent);
|
|
4001
4003
|
});
|
|
4002
4004
|
onUnmounted(() => {
|
|
4003
|
-
globalEvents.off($xeButton, 'mousewheel');
|
|
4004
4005
|
globalEvents.off($xeButton, 'mousedown');
|
|
4005
4006
|
globalEvents.off($xeButton, 'resize');
|
|
4007
|
+
globalEvents.off($xeButton, 'scroll');
|
|
4006
4008
|
});
|
|
4007
4009
|
return $xeButton;
|
|
4008
4010
|
},
|
|
@@ -12778,21 +12780,6 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
12778
12780
|
const { $event } = params;
|
|
12779
12781
|
hideOptionPanel($event);
|
|
12780
12782
|
};
|
|
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
12783
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
12797
12784
|
const { visiblePanel } = reactData;
|
|
12798
12785
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -12826,6 +12813,12 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
12826
12813
|
updatePlacement();
|
|
12827
12814
|
}
|
|
12828
12815
|
};
|
|
12816
|
+
const handleGlobalScrollEvent = () => {
|
|
12817
|
+
const { visiblePanel } = reactData;
|
|
12818
|
+
if (visiblePanel) {
|
|
12819
|
+
updatePlacement();
|
|
12820
|
+
}
|
|
12821
|
+
};
|
|
12829
12822
|
const handleFocusSearch = () => {
|
|
12830
12823
|
if (props.filterable) {
|
|
12831
12824
|
nextTick(() => {
|
|
@@ -13658,16 +13651,16 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
13658
13651
|
});
|
|
13659
13652
|
loadData(props.options || []);
|
|
13660
13653
|
onMounted(() => {
|
|
13661
|
-
globalEvents.on($xeCascader, 'mousewheel', handleGlobalMousewheelEvent);
|
|
13662
13654
|
globalEvents.on($xeCascader, 'mousedown', handleGlobalMousedownEvent);
|
|
13663
13655
|
globalEvents.on($xeCascader, 'blur', handleGlobalBlurEvent);
|
|
13664
13656
|
globalEvents.on($xeCascader, 'resize', handleGlobalResizeEvent);
|
|
13657
|
+
globalEvents.on($xeCascader, 'scroll', handleGlobalScrollEvent);
|
|
13665
13658
|
});
|
|
13666
13659
|
onUnmounted(() => {
|
|
13667
|
-
globalEvents.off($xeCascader, 'mousewheel');
|
|
13668
13660
|
globalEvents.off($xeCascader, 'mousedown');
|
|
13669
13661
|
globalEvents.off($xeCascader, 'blur');
|
|
13670
13662
|
globalEvents.off($xeCascader, 'resize');
|
|
13663
|
+
globalEvents.off($xeCascader, 'scroll');
|
|
13671
13664
|
XEUtils.assign(reactData, createReactData$l());
|
|
13672
13665
|
XEUtils.assign(internalData, createInternalData$k());
|
|
13673
13666
|
});
|
|
@@ -17021,21 +17014,6 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17021
17014
|
}
|
|
17022
17015
|
}
|
|
17023
17016
|
};
|
|
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
17017
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
17040
17018
|
const { visiblePanel } = reactData;
|
|
17041
17019
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -17069,6 +17047,12 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17069
17047
|
updatePlacement();
|
|
17070
17048
|
}
|
|
17071
17049
|
};
|
|
17050
|
+
const handleGlobalScrollEvent = () => {
|
|
17051
|
+
const { visiblePanel } = reactData;
|
|
17052
|
+
if (visiblePanel) {
|
|
17053
|
+
updatePlacement();
|
|
17054
|
+
}
|
|
17055
|
+
};
|
|
17072
17056
|
const dispatchEvent = (type, params, evnt) => {
|
|
17073
17057
|
emit(type, createEvent(evnt, { $colorPicker: $xeColorPicker }, params));
|
|
17074
17058
|
};
|
|
@@ -17472,16 +17456,16 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17472
17456
|
updateType();
|
|
17473
17457
|
});
|
|
17474
17458
|
onMounted(() => {
|
|
17475
|
-
globalEvents.on($xeColorPicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
17476
17459
|
globalEvents.on($xeColorPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
17477
17460
|
globalEvents.on($xeColorPicker, 'blur', handleGlobalBlurEvent);
|
|
17478
17461
|
globalEvents.on($xeColorPicker, 'resize', handleGlobalResizeEvent);
|
|
17462
|
+
globalEvents.on($xeColorPicker, 'scroll', handleGlobalScrollEvent);
|
|
17479
17463
|
});
|
|
17480
17464
|
onUnmounted(() => {
|
|
17481
|
-
globalEvents.off($xeColorPicker, 'mousewheel');
|
|
17482
17465
|
globalEvents.off($xeColorPicker, 'mousedown');
|
|
17483
17466
|
globalEvents.off($xeColorPicker, 'blur');
|
|
17484
17467
|
globalEvents.off($xeColorPicker, 'resize');
|
|
17468
|
+
globalEvents.off($xeColorPicker, 'scroll');
|
|
17485
17469
|
});
|
|
17486
17470
|
updateType();
|
|
17487
17471
|
provide('$xeColorPicker', $xeColorPicker);
|
|
@@ -21512,21 +21496,6 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21512
21496
|
}
|
|
21513
21497
|
}
|
|
21514
21498
|
};
|
|
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
21499
|
const handleGlobalBlurEvent = () => {
|
|
21531
21500
|
const { isActivated, visiblePanel } = reactData;
|
|
21532
21501
|
if (visiblePanel) {
|
|
@@ -21549,6 +21518,12 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21549
21518
|
updatePlacement();
|
|
21550
21519
|
}
|
|
21551
21520
|
};
|
|
21521
|
+
const handleGlobalScrollEvent = () => {
|
|
21522
|
+
const { visiblePanel } = reactData;
|
|
21523
|
+
if (visiblePanel) {
|
|
21524
|
+
updatePlacement();
|
|
21525
|
+
}
|
|
21526
|
+
};
|
|
21552
21527
|
// 弹出面板
|
|
21553
21528
|
const updateZindex = () => {
|
|
21554
21529
|
const popupOpts = computePopupOpts.value;
|
|
@@ -22022,11 +21997,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22022
21997
|
});
|
|
22023
21998
|
updateModelValue();
|
|
22024
21999
|
nextTick(() => {
|
|
22025
|
-
globalEvents.on($xeDatePicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
22026
22000
|
globalEvents.on($xeDatePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
22027
22001
|
globalEvents.on($xeDatePicker, 'keydown', handleGlobalKeydownEvent);
|
|
22028
22002
|
globalEvents.on($xeDatePicker, 'blur', handleGlobalBlurEvent);
|
|
22029
22003
|
globalEvents.on($xeDatePicker, 'resize', handleGlobalResizeEvent);
|
|
22004
|
+
globalEvents.on($xeDatePicker, 'scroll', handleGlobalScrollEvent);
|
|
22030
22005
|
});
|
|
22031
22006
|
onMounted(() => {
|
|
22032
22007
|
const { type, multiple, maskedConfig } = props;
|
|
@@ -22040,11 +22015,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22040
22015
|
}
|
|
22041
22016
|
});
|
|
22042
22017
|
onUnmounted(() => {
|
|
22043
|
-
globalEvents.off($xeDatePicker, 'mousewheel');
|
|
22044
22018
|
globalEvents.off($xeDatePicker, 'mousedown');
|
|
22045
22019
|
globalEvents.off($xeDatePicker, 'keydown');
|
|
22046
22020
|
globalEvents.off($xeDatePicker, 'blur');
|
|
22047
22021
|
globalEvents.off($xeDatePicker, 'resize');
|
|
22022
|
+
globalEvents.off($xeDatePicker, 'scroll');
|
|
22048
22023
|
XEUtils.assign(reactData, createReactData$h());
|
|
22049
22024
|
XEUtils.assign(internalData, createInternalData$g());
|
|
22050
22025
|
});
|
|
@@ -22974,22 +22949,6 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22974
22949
|
}
|
|
22975
22950
|
}
|
|
22976
22951
|
};
|
|
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
22952
|
const handleGlobalBlurEvent = () => {
|
|
22994
22953
|
const { visiblePanel, isActivated } = reactData;
|
|
22995
22954
|
if (visiblePanel) {
|
|
@@ -23012,6 +22971,12 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23012
22971
|
updatePlacement();
|
|
23013
22972
|
}
|
|
23014
22973
|
};
|
|
22974
|
+
const handleGlobalScrollEvent = () => {
|
|
22975
|
+
const { visiblePanel } = reactData;
|
|
22976
|
+
if (visiblePanel) {
|
|
22977
|
+
updatePlacement();
|
|
22978
|
+
}
|
|
22979
|
+
};
|
|
23015
22980
|
// 弹出面板
|
|
23016
22981
|
const updateZindex = () => {
|
|
23017
22982
|
const popupOpts = computePopupOpts.value;
|
|
@@ -23539,11 +23504,11 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23539
23504
|
});
|
|
23540
23505
|
updateModelValue(true);
|
|
23541
23506
|
nextTick(() => {
|
|
23542
|
-
globalEvents.on($xeDateRangePicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
23543
23507
|
globalEvents.on($xeDateRangePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
23544
23508
|
globalEvents.on($xeDateRangePicker, 'keydown', handleGlobalKeydownEvent);
|
|
23545
23509
|
globalEvents.on($xeDateRangePicker, 'blur', handleGlobalBlurEvent);
|
|
23546
23510
|
globalEvents.on($xeDateRangePicker, 'resize', handleGlobalResizeEvent);
|
|
23511
|
+
globalEvents.on($xeDateRangePicker, 'scroll', handleGlobalScrollEvent);
|
|
23547
23512
|
});
|
|
23548
23513
|
onDeactivated(() => {
|
|
23549
23514
|
checkValue();
|
|
@@ -23552,10 +23517,11 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23552
23517
|
checkValue();
|
|
23553
23518
|
});
|
|
23554
23519
|
onUnmounted(() => {
|
|
23555
|
-
globalEvents.off($xeDateRangePicker, 'mousewheel');
|
|
23556
23520
|
globalEvents.off($xeDateRangePicker, 'mousedown');
|
|
23521
|
+
globalEvents.off($xeDateRangePicker, 'keydown');
|
|
23557
23522
|
globalEvents.off($xeDateRangePicker, 'blur');
|
|
23558
23523
|
globalEvents.off($xeDateRangePicker, 'resize');
|
|
23524
|
+
globalEvents.off($xeDateRangePicker, 'scroll');
|
|
23559
23525
|
XEUtils.assign(reactData, createReactData$g());
|
|
23560
23526
|
XEUtils.assign(internalData, createInternalData$f());
|
|
23561
23527
|
});
|
|
@@ -23577,6 +23543,85 @@ dynamicApp.use(VxeDateRangePicker);
|
|
|
23577
23543
|
VxeUI.component(VxeDateRangePickerComponent);
|
|
23578
23544
|
const DateRangePicker = VxeDateRangePicker;
|
|
23579
23545
|
|
|
23546
|
+
var VxeDividerComponent = defineVxeComponent({
|
|
23547
|
+
name: 'VxeDivider',
|
|
23548
|
+
props: {
|
|
23549
|
+
vertical: {
|
|
23550
|
+
type: Boolean,
|
|
23551
|
+
default: () => getConfig$3().divider.vertical
|
|
23552
|
+
},
|
|
23553
|
+
titleContent: {
|
|
23554
|
+
type: String,
|
|
23555
|
+
default: () => getConfig$3().divider.titleContent
|
|
23556
|
+
},
|
|
23557
|
+
titleAlign: {
|
|
23558
|
+
type: String,
|
|
23559
|
+
default: () => getConfig$3().divider.titleAlign
|
|
23560
|
+
},
|
|
23561
|
+
size: {
|
|
23562
|
+
type: String,
|
|
23563
|
+
default: () => getConfig$3().divider.size || getConfig$3().size
|
|
23564
|
+
}
|
|
23565
|
+
},
|
|
23566
|
+
emits: [],
|
|
23567
|
+
setup(props, context) {
|
|
23568
|
+
const { emit, slots } = context;
|
|
23569
|
+
const xID = XEUtils.uniqueId();
|
|
23570
|
+
const refElem = ref();
|
|
23571
|
+
const { computeSize } = useSize(props);
|
|
23572
|
+
const refMaps = {
|
|
23573
|
+
refElem
|
|
23574
|
+
};
|
|
23575
|
+
const computeMaps = {};
|
|
23576
|
+
const $xeDivider = {
|
|
23577
|
+
xID,
|
|
23578
|
+
props,
|
|
23579
|
+
context,
|
|
23580
|
+
getRefMaps: () => refMaps,
|
|
23581
|
+
getComputeMaps: () => computeMaps
|
|
23582
|
+
};
|
|
23583
|
+
const dispatchEvent = (type, params, evnt) => {
|
|
23584
|
+
emit(type, createEvent(evnt, { $divider: $xeDivider }, params));
|
|
23585
|
+
};
|
|
23586
|
+
const dividerMethods = {
|
|
23587
|
+
dispatchEvent
|
|
23588
|
+
};
|
|
23589
|
+
const dividerPrivateMethods = {};
|
|
23590
|
+
Object.assign($xeDivider, dividerMethods, dividerPrivateMethods);
|
|
23591
|
+
const renderVN = () => {
|
|
23592
|
+
const { vertical, titleContent, titleAlign } = props;
|
|
23593
|
+
const vSize = computeSize.value;
|
|
23594
|
+
const titleSlot = slots.title;
|
|
23595
|
+
return h('div', {
|
|
23596
|
+
ref: refElem,
|
|
23597
|
+
class: ['vxe-divider', vertical ? 'is--vertical' : 'is--horizontal', `t--align-${titleAlign || 'center'}`, {
|
|
23598
|
+
[`size--${vSize}`]: vSize
|
|
23599
|
+
}]
|
|
23600
|
+
}, (titleContent || titleSlot) && !vertical
|
|
23601
|
+
? [
|
|
23602
|
+
h('span', {
|
|
23603
|
+
class: 'vxe-divider--content'
|
|
23604
|
+
}, titleSlot ? titleSlot({}) : titleContent)
|
|
23605
|
+
]
|
|
23606
|
+
: []);
|
|
23607
|
+
};
|
|
23608
|
+
$xeDivider.renderVN = renderVN;
|
|
23609
|
+
return $xeDivider;
|
|
23610
|
+
},
|
|
23611
|
+
render() {
|
|
23612
|
+
return this.renderVN();
|
|
23613
|
+
}
|
|
23614
|
+
});
|
|
23615
|
+
|
|
23616
|
+
const VxeDivider = Object.assign({}, VxeDividerComponent, {
|
|
23617
|
+
install(app) {
|
|
23618
|
+
app.component(VxeDividerComponent.name, VxeDividerComponent);
|
|
23619
|
+
}
|
|
23620
|
+
});
|
|
23621
|
+
dynamicApp.use(VxeDivider);
|
|
23622
|
+
VxeUI.component(VxeDividerComponent);
|
|
23623
|
+
const Divider = VxeDivider;
|
|
23624
|
+
|
|
23580
23625
|
const allActiveDrawers = [];
|
|
23581
23626
|
|
|
23582
23627
|
const VxeLoading = Object.assign({}, VxeLoadingComponent, {
|
|
@@ -24355,7 +24400,10 @@ var VxeEmptyComponent = defineVxeComponent({
|
|
|
24355
24400
|
imageUrl: String,
|
|
24356
24401
|
imageStyle: Object,
|
|
24357
24402
|
icon: String,
|
|
24358
|
-
status:
|
|
24403
|
+
status: {
|
|
24404
|
+
type: String,
|
|
24405
|
+
default: () => getConfig$3().empty.status
|
|
24406
|
+
},
|
|
24359
24407
|
content: [String, Number]
|
|
24360
24408
|
},
|
|
24361
24409
|
emits: [],
|
|
@@ -27098,21 +27146,6 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27098
27146
|
togglePanelEvent(evnt);
|
|
27099
27147
|
dispatchEvent('click', {}, evnt);
|
|
27100
27148
|
};
|
|
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
27149
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
27117
27150
|
const { visiblePanel } = reactData;
|
|
27118
27151
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -27188,6 +27221,18 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27188
27221
|
}
|
|
27189
27222
|
}
|
|
27190
27223
|
};
|
|
27224
|
+
const handleGlobalResizeEvent = () => {
|
|
27225
|
+
const { visiblePanel } = reactData;
|
|
27226
|
+
if (visiblePanel) {
|
|
27227
|
+
updatePlacement();
|
|
27228
|
+
}
|
|
27229
|
+
};
|
|
27230
|
+
const handleGlobalScrollEvent = () => {
|
|
27231
|
+
const { visiblePanel } = reactData;
|
|
27232
|
+
if (visiblePanel) {
|
|
27233
|
+
updatePlacement();
|
|
27234
|
+
}
|
|
27235
|
+
};
|
|
27191
27236
|
const dispatchEvent = (type, params, evnt) => {
|
|
27192
27237
|
emit(type, createEvent(evnt, { $iconPicker: $xeIconPicker }, params));
|
|
27193
27238
|
};
|
|
@@ -27447,16 +27492,19 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27447
27492
|
handleData();
|
|
27448
27493
|
});
|
|
27449
27494
|
onMounted(() => {
|
|
27450
|
-
globalEvents.on($xeIconPicker, 'mousewheel', handleGlobalMousewheelEvent);
|
|
27451
27495
|
globalEvents.on($xeIconPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
27452
27496
|
globalEvents.on($xeIconPicker, 'keydown', handleGlobalKeydownEvent);
|
|
27453
27497
|
globalEvents.on($xeIconPicker, 'blur', handleGlobalBlurEvent);
|
|
27498
|
+
globalEvents.on($xeIconPicker, 'resize', handleGlobalResizeEvent);
|
|
27499
|
+
globalEvents.on($xeIconPicker, 'scroll', handleGlobalScrollEvent);
|
|
27454
27500
|
});
|
|
27455
27501
|
onBeforeUnmount(() => {
|
|
27456
27502
|
globalEvents.off($xeIconPicker, 'mousewheel');
|
|
27457
27503
|
globalEvents.off($xeIconPicker, 'mousedown');
|
|
27458
27504
|
globalEvents.off($xeIconPicker, 'keydown');
|
|
27459
27505
|
globalEvents.off($xeIconPicker, 'blur');
|
|
27506
|
+
globalEvents.off($xeIconPicker, 'resize');
|
|
27507
|
+
globalEvents.off($xeIconPicker, 'scroll');
|
|
27460
27508
|
XEUtils.assign(reactData, createReactData$e());
|
|
27461
27509
|
XEUtils.assign(internalData, createInternalData$d());
|
|
27462
27510
|
});
|
|
@@ -32518,21 +32566,6 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32518
32566
|
}
|
|
32519
32567
|
reactData.reactFlag++;
|
|
32520
32568
|
};
|
|
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
32569
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
32537
32570
|
const { visiblePanel } = reactData;
|
|
32538
32571
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -32695,6 +32728,12 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32695
32728
|
updatePlacement();
|
|
32696
32729
|
}
|
|
32697
32730
|
};
|
|
32731
|
+
const handleGlobalScrollEvent = () => {
|
|
32732
|
+
const { visiblePanel } = reactData;
|
|
32733
|
+
if (visiblePanel) {
|
|
32734
|
+
updatePlacement();
|
|
32735
|
+
}
|
|
32736
|
+
};
|
|
32698
32737
|
const handleFocusSearch = () => {
|
|
32699
32738
|
if (props.filterable) {
|
|
32700
32739
|
nextTick(() => {
|
|
@@ -33499,18 +33538,18 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33499
33538
|
loadData(options);
|
|
33500
33539
|
}
|
|
33501
33540
|
});
|
|
33502
|
-
globalEvents.on($xeSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
33503
33541
|
globalEvents.on($xeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
33504
33542
|
globalEvents.on($xeSelect, 'keydown', handleGlobalKeydownEvent);
|
|
33505
33543
|
globalEvents.on($xeSelect, 'blur', handleGlobalBlurEvent);
|
|
33506
33544
|
globalEvents.on($xeSelect, 'resize', handleGlobalResizeEvent);
|
|
33545
|
+
globalEvents.on($xeSelect, 'scroll', handleGlobalScrollEvent);
|
|
33507
33546
|
});
|
|
33508
33547
|
onUnmounted(() => {
|
|
33509
|
-
globalEvents.off($xeSelect, 'mousewheel');
|
|
33510
33548
|
globalEvents.off($xeSelect, 'mousedown');
|
|
33511
33549
|
globalEvents.off($xeSelect, 'keydown');
|
|
33512
33550
|
globalEvents.off($xeSelect, 'blur');
|
|
33513
33551
|
globalEvents.off($xeSelect, 'resize');
|
|
33552
|
+
globalEvents.off($xeSelect, 'scroll');
|
|
33514
33553
|
XEUtils.assign(reactData, createReactData$9());
|
|
33515
33554
|
XEUtils.assign(internalData, createInternalData$8());
|
|
33516
33555
|
});
|
|
@@ -35525,26 +35564,6 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35525
35564
|
}
|
|
35526
35565
|
dispatchEvent('click', { $pulldown: $xePulldown }, evnt);
|
|
35527
35566
|
};
|
|
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
35567
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
35549
35568
|
const { trigger, disabled } = props;
|
|
35550
35569
|
const { visiblePanel } = reactData;
|
|
@@ -35583,6 +35602,12 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35583
35602
|
updatePlacement();
|
|
35584
35603
|
}
|
|
35585
35604
|
};
|
|
35605
|
+
const handleGlobalScrollEvent = () => {
|
|
35606
|
+
const { visiblePanel } = reactData;
|
|
35607
|
+
if (visiblePanel) {
|
|
35608
|
+
updatePlacement();
|
|
35609
|
+
}
|
|
35610
|
+
};
|
|
35586
35611
|
const dispatchEvent = (type, params, evnt) => {
|
|
35587
35612
|
emit(type, createEvent(evnt, { $pulldown: $xePulldown }, params));
|
|
35588
35613
|
};
|
|
@@ -35594,30 +35619,6 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35594
35619
|
hidePanel: hideOptionPanel
|
|
35595
35620
|
};
|
|
35596
35621
|
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
35622
|
const renderDefaultPanel = (options) => {
|
|
35622
35623
|
const optionSlot = slots.option;
|
|
35623
35624
|
return h('div', {
|
|
@@ -35702,6 +35703,30 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
35702
35703
|
])
|
|
35703
35704
|
]);
|
|
35704
35705
|
};
|
|
35706
|
+
watch(() => props.modelValue, (value) => {
|
|
35707
|
+
reactData.isActivated = !!value;
|
|
35708
|
+
if (value) {
|
|
35709
|
+
showPanel();
|
|
35710
|
+
}
|
|
35711
|
+
else {
|
|
35712
|
+
hideOptionPanel();
|
|
35713
|
+
}
|
|
35714
|
+
});
|
|
35715
|
+
nextTick(() => {
|
|
35716
|
+
if (props.modelValue) {
|
|
35717
|
+
showPanel();
|
|
35718
|
+
}
|
|
35719
|
+
globalEvents.on($xePulldown, 'mousedown', handleGlobalMousedownEvent);
|
|
35720
|
+
globalEvents.on($xePulldown, 'blur', handleGlobalBlurEvent);
|
|
35721
|
+
globalEvents.on($xePulldown, 'resize', handleGlobalResizeEvent);
|
|
35722
|
+
globalEvents.on($xePulldown, 'scroll', handleGlobalScrollEvent);
|
|
35723
|
+
});
|
|
35724
|
+
onUnmounted(() => {
|
|
35725
|
+
globalEvents.off($xePulldown, 'mousedown');
|
|
35726
|
+
globalEvents.off($xePulldown, 'blur');
|
|
35727
|
+
globalEvents.off($xePulldown, 'resize');
|
|
35728
|
+
globalEvents.off($xePulldown, 'scroll');
|
|
35729
|
+
});
|
|
35705
35730
|
$xePulldown.renderVN = renderVN;
|
|
35706
35731
|
return $xePulldown;
|
|
35707
35732
|
},
|
|
@@ -38135,6 +38160,10 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38135
38160
|
type: Boolean,
|
|
38136
38161
|
default: null
|
|
38137
38162
|
},
|
|
38163
|
+
status: {
|
|
38164
|
+
type: String,
|
|
38165
|
+
default: () => getConfig$3().slider.status
|
|
38166
|
+
},
|
|
38138
38167
|
immediate: {
|
|
38139
38168
|
type: Boolean,
|
|
38140
38169
|
default: () => getConfig$3().slider.immediate
|
|
@@ -38468,7 +38497,7 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38468
38497
|
const collapsePanePrivateMethods = {};
|
|
38469
38498
|
Object.assign($xeSlider, collapsePaneMethods, collapsePanePrivateMethods);
|
|
38470
38499
|
const renderVN = () => {
|
|
38471
|
-
const { vertical, range } = props;
|
|
38500
|
+
const { status, vertical, range } = props;
|
|
38472
38501
|
const vSize = computeSize.value;
|
|
38473
38502
|
const formReadonly = computeFormReadonly.value;
|
|
38474
38503
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -38476,6 +38505,7 @@ var VxeSliderComponent = defineVxeComponent({
|
|
|
38476
38505
|
ref: refElem,
|
|
38477
38506
|
class: ['vxe-slider', {
|
|
38478
38507
|
[`size--${vSize}`]: vSize,
|
|
38508
|
+
[`theme--${status}`]: status,
|
|
38479
38509
|
'is--vertical': vertical,
|
|
38480
38510
|
'is--readonly': formReadonly,
|
|
38481
38511
|
'is--disabled': isDisabled
|
|
@@ -39581,21 +39611,6 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39581
39611
|
clearValueEvent(evnt, null);
|
|
39582
39612
|
hideOptionPanel();
|
|
39583
39613
|
};
|
|
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
39614
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
39600
39615
|
const { visiblePanel } = reactData;
|
|
39601
39616
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -39629,6 +39644,12 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39629
39644
|
updatePlacement();
|
|
39630
39645
|
}
|
|
39631
39646
|
};
|
|
39647
|
+
const handleGlobalScrollEvent = () => {
|
|
39648
|
+
const { visiblePanel } = reactData;
|
|
39649
|
+
if (visiblePanel) {
|
|
39650
|
+
updatePlacement();
|
|
39651
|
+
}
|
|
39652
|
+
};
|
|
39632
39653
|
const focusEvent = (evnt) => {
|
|
39633
39654
|
const isDisabled = computeIsDisabled.value;
|
|
39634
39655
|
if (!isDisabled) {
|
|
@@ -39814,16 +39835,16 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
39814
39835
|
reactData.initialized = true;
|
|
39815
39836
|
}
|
|
39816
39837
|
}
|
|
39817
|
-
globalEvents.on($xeTableSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
39818
39838
|
globalEvents.on($xeTableSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
39819
39839
|
globalEvents.on($xeTableSelect, 'blur', handleGlobalBlurEvent);
|
|
39820
39840
|
globalEvents.on($xeTableSelect, 'resize', handleGlobalResizeEvent);
|
|
39841
|
+
globalEvents.on($xeTableSelect, 'scroll', handleGlobalScrollEvent);
|
|
39821
39842
|
});
|
|
39822
39843
|
onUnmounted(() => {
|
|
39823
|
-
globalEvents.off($xeTableSelect, 'mousewheel');
|
|
39824
39844
|
globalEvents.off($xeTableSelect, 'mousedown');
|
|
39825
39845
|
globalEvents.off($xeTableSelect, 'blur');
|
|
39826
39846
|
globalEvents.off($xeTableSelect, 'resize');
|
|
39847
|
+
globalEvents.off($xeTableSelect, 'scroll');
|
|
39827
39848
|
XEUtils.assign(reactData, createReactData$5());
|
|
39828
39849
|
XEUtils.assign(internalData, createInternalData$5());
|
|
39829
39850
|
});
|
|
@@ -46096,21 +46117,6 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
46096
46117
|
$tree.clearAllExpandNode();
|
|
46097
46118
|
}
|
|
46098
46119
|
};
|
|
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
46120
|
const handleGlobalMousedownEvent = (evnt) => {
|
|
46115
46121
|
const { visiblePanel } = reactData;
|
|
46116
46122
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -46144,6 +46150,12 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
46144
46150
|
updatePlacement();
|
|
46145
46151
|
}
|
|
46146
46152
|
};
|
|
46153
|
+
const handleGlobalScrollEvent = () => {
|
|
46154
|
+
const { visiblePanel } = reactData;
|
|
46155
|
+
if (visiblePanel) {
|
|
46156
|
+
updatePlacement();
|
|
46157
|
+
}
|
|
46158
|
+
};
|
|
46147
46159
|
const handleFocusSearch = () => {
|
|
46148
46160
|
if (props.filterable) {
|
|
46149
46161
|
nextTick(() => {
|
|
@@ -46514,16 +46526,16 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
46514
46526
|
if (XEUtils.isBoolean(props.autoClose)) {
|
|
46515
46527
|
warnLog$1('vxe.error.delProp', ['auto-close', 'checked-closable | clear-closable']);
|
|
46516
46528
|
}
|
|
46517
|
-
globalEvents.on($xeTreeSelect, 'mousewheel', handleGlobalMousewheelEvent);
|
|
46518
46529
|
globalEvents.on($xeTreeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
46519
46530
|
globalEvents.on($xeTreeSelect, 'blur', handleGlobalBlurEvent);
|
|
46520
46531
|
globalEvents.on($xeTreeSelect, 'resize', handleGlobalResizeEvent);
|
|
46532
|
+
globalEvents.on($xeTreeSelect, 'scroll', handleGlobalScrollEvent);
|
|
46521
46533
|
});
|
|
46522
46534
|
onBeforeUnmount(() => {
|
|
46523
|
-
globalEvents.off($xeTreeSelect, 'mousewheel');
|
|
46524
46535
|
globalEvents.off($xeTreeSelect, 'mousedown');
|
|
46525
46536
|
globalEvents.off($xeTreeSelect, 'blur');
|
|
46526
46537
|
globalEvents.off($xeTreeSelect, 'resize');
|
|
46538
|
+
globalEvents.off($xeTreeSelect, 'scroll');
|
|
46527
46539
|
XEUtils.assign(reactData, createReactData$1());
|
|
46528
46540
|
XEUtils.assign(internalData, createInternalData$1());
|
|
46529
46541
|
});
|
|
@@ -48844,6 +48856,7 @@ const components = [
|
|
|
48844
48856
|
VxeDatePanel,
|
|
48845
48857
|
VxeDatePicker,
|
|
48846
48858
|
VxeDateRangePicker,
|
|
48859
|
+
VxeDivider,
|
|
48847
48860
|
VxeDrawer,
|
|
48848
48861
|
VxeEmpty,
|
|
48849
48862
|
VxeForm,
|
|
@@ -48985,6 +48998,7 @@ var VxeUIExport = /*#__PURE__*/Object.freeze({
|
|
|
48985
48998
|
DatePanel: DatePanel,
|
|
48986
48999
|
DatePicker: DatePicker,
|
|
48987
49000
|
DateRangePicker: DateRangePicker,
|
|
49001
|
+
Divider: Divider,
|
|
48988
49002
|
Drawer: Drawer,
|
|
48989
49003
|
DrawerController: DrawerController,
|
|
48990
49004
|
Empty: Empty,
|
|
@@ -49081,6 +49095,7 @@ var VxeUIExport = /*#__PURE__*/Object.freeze({
|
|
|
49081
49095
|
VxeDatePanel: VxeDatePanel,
|
|
49082
49096
|
VxeDatePicker: VxeDatePicker,
|
|
49083
49097
|
VxeDateRangePicker: VxeDateRangePicker,
|
|
49098
|
+
VxeDivider: VxeDivider,
|
|
49084
49099
|
VxeDrawer: VxeDrawer,
|
|
49085
49100
|
VxeEmpty: VxeEmpty,
|
|
49086
49101
|
VxeForm: VxeForm,
|
|
@@ -49161,4 +49176,4 @@ var VxeUIExport = /*#__PURE__*/Object.freeze({
|
|
|
49161
49176
|
watermark: watermark
|
|
49162
49177
|
});
|
|
49163
49178
|
|
|
49164
|
-
export { Alert, Anchor, AnchorLink, Avatar, Backtop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonGroup, Calendar, Card, Carousel, CarouselItem, Cascader, Checkbox, CheckboxButton, CheckboxGroup, Col, Collapse, CollapsePane, ColorPicker, ContextMenu, ContextMenuController, Countdown, DatePanel, DatePicker, DateRangePicker, Drawer, DrawerController, Empty, Form, FormGather, FormGroup, FormItem, Icon, IconPicker, Image$1 as Image, ImageGroup, ImagePreview, Input, LayoutAside, LayoutBody, LayoutContainer, LayoutFooter, LayoutHeader, Link, List, Loading, LoadingController, Menu, Modal, ModalController, NoticeBar, NumberInput, Optgroup, Option, Pager, PasswordInput, Print, PrintPageBreak, Pulldown, Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, Slider, Space, Split, SplitPane, Splitter, SplitterPanel, Steps, Switch, TabPane, TableSelect, TableTransfer, Tabs, Tag, Text, TextEllipsis, Textarea, Timeline, TimelineItem, Tip, Tips, Tooltip, TooltipController, Tour, Transfer, Tree, TreeSelect, Upload, VxeAlert, VxeAnchor, VxeAnchorLink, VxeAvatar, VxeBacktop, VxeBadge, VxeBreadcrumb, VxeBreadcrumbItem, VxeButton, VxeButtonGroup, VxeCalendar, VxeCard, VxeCarousel, VxeCarouselItem, VxeCascader, VxeCheckbox, VxeCheckboxButton, VxeCheckboxGroup, VxeCol, VxeCollapse, VxeCollapsePane, VxeColorPicker, VxeContextMenu, VxeCountdown, VxeDatePanel, VxeDatePicker, VxeDateRangePicker, VxeDrawer, VxeEmpty, VxeForm, VxeFormGather, VxeFormGroup, VxeFormItem, VxeIcon, VxeIconPicker, VxeImage, VxeImageGroup, VxeImagePreview, VxeInput, VxeLayoutAside, VxeLayoutBody, VxeLayoutContainer, VxeLayoutFooter, VxeLayoutHeader, VxeLink, VxeList, VxeLoading, VxeMenu, VxeModal, VxeNoticeBar, VxeNumberInput, VxeOptgroup, VxeOption, VxePager, VxePasswordInput, VxePrint, VxePrintPageBreak, VxePulldown, VxeRadio, VxeRadioButton, VxeRadioGroup, VxeRate, VxeResult, VxeRow, VxeSegmented, VxeSelect, VxeSlider, VxeSpace, VxeSplit, VxeSplitPane, VxeSplitter, VxeSplitterPanel, VxeSteps, VxeSwitch, VxeTabPane, VxeTableSelect, VxeTableTransfer, VxeTabs, VxeTag, VxeText, VxeTextEllipsis, VxeTextarea, VxeTimeline, VxeTimelineItem, VxeTip, VxeTooltip, VxeTour, VxeTransfer, VxeTree, VxeTreeSelect, VxeUpload, VxeWatermark, Watermark, WatermarkController, config, VxeUIExport as default, drawer, install, loading, modal, print, readFile, saveFile, setup, version, watermark };
|
|
49179
|
+
export { Alert, Anchor, AnchorLink, Avatar, Backtop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonGroup, Calendar, Card, Carousel, CarouselItem, Cascader, Checkbox, CheckboxButton, CheckboxGroup, Col, Collapse, CollapsePane, ColorPicker, ContextMenu, ContextMenuController, Countdown, DatePanel, DatePicker, DateRangePicker, Divider, Drawer, DrawerController, Empty, Form, FormGather, FormGroup, FormItem, Icon, IconPicker, Image$1 as Image, ImageGroup, ImagePreview, Input, LayoutAside, LayoutBody, LayoutContainer, LayoutFooter, LayoutHeader, Link, List, Loading, LoadingController, Menu, Modal, ModalController, NoticeBar, NumberInput, Optgroup, Option, Pager, PasswordInput, Print, PrintPageBreak, Pulldown, Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, Slider, Space, Split, SplitPane, Splitter, SplitterPanel, Steps, Switch, TabPane, TableSelect, TableTransfer, Tabs, Tag, Text, TextEllipsis, Textarea, Timeline, TimelineItem, Tip, Tips, Tooltip, TooltipController, Tour, Transfer, Tree, TreeSelect, Upload, VxeAlert, VxeAnchor, VxeAnchorLink, VxeAvatar, VxeBacktop, VxeBadge, VxeBreadcrumb, VxeBreadcrumbItem, VxeButton, VxeButtonGroup, VxeCalendar, VxeCard, VxeCarousel, VxeCarouselItem, VxeCascader, VxeCheckbox, VxeCheckboxButton, VxeCheckboxGroup, VxeCol, VxeCollapse, VxeCollapsePane, VxeColorPicker, VxeContextMenu, VxeCountdown, VxeDatePanel, VxeDatePicker, VxeDateRangePicker, VxeDivider, VxeDrawer, VxeEmpty, VxeForm, VxeFormGather, VxeFormGroup, VxeFormItem, VxeIcon, VxeIconPicker, VxeImage, VxeImageGroup, VxeImagePreview, VxeInput, VxeLayoutAside, VxeLayoutBody, VxeLayoutContainer, VxeLayoutFooter, VxeLayoutHeader, VxeLink, VxeList, VxeLoading, VxeMenu, VxeModal, VxeNoticeBar, VxeNumberInput, VxeOptgroup, VxeOption, VxePager, VxePasswordInput, VxePrint, VxePrintPageBreak, VxePulldown, VxeRadio, VxeRadioButton, VxeRadioGroup, VxeRate, VxeResult, VxeRow, VxeSegmented, VxeSelect, VxeSlider, VxeSpace, VxeSplit, VxeSplitPane, VxeSplitter, VxeSplitterPanel, VxeSteps, VxeSwitch, VxeTabPane, VxeTableSelect, VxeTableTransfer, VxeTabs, VxeTag, VxeText, VxeTextEllipsis, VxeTextarea, VxeTimeline, VxeTimelineItem, VxeTip, VxeTooltip, VxeTour, VxeTransfer, VxeTree, VxeTreeSelect, VxeUpload, VxeWatermark, Watermark, WatermarkController, config, VxeUIExport as default, drawer, install, loading, modal, print, readFile, saveFile, setup, version, watermark };
|