vxe-pc-ui 4.19.5 → 4.19.7
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 +332 -293
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/layout-aside/style.css +4 -1
- package/es/layout-aside/style.min.css +1 -1
- package/es/layout-body/style.css +4 -1
- package/es/layout-body/style.min.css +1 -1
- package/es/row/src/col.js +39 -18
- package/es/row/src/row.js +34 -16
- package/es/row/style.css +101 -24
- package/es/row/style.min.css +1 -1
- package/es/scrollbar/src/scrollbar.js +6 -4
- package/es/space/style.css +1 -0
- package/es/space/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/style.css +4 -0
- package/es/tabs/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-layout-aside/style.css +4 -1
- package/es/vxe-layout-aside/style.min.css +1 -1
- package/es/vxe-layout-body/style.css +4 -1
- package/es/vxe-layout-body/style.min.css +1 -1
- package/es/vxe-row/style.css +101 -24
- package/es/vxe-row/style.min.css +1 -1
- package/es/vxe-space/style.css +1 -0
- package/es/vxe-space/style.min.css +1 -1
- package/es/vxe-tabs/style.css +4 -0
- package/es/vxe-tabs/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +89 -36
- package/lib/index.umd.min.js +1 -1
- package/lib/layout-aside/style/style.css +4 -1
- package/lib/layout-aside/style/style.min.css +1 -1
- package/lib/layout-body/style/style.css +4 -1
- package/lib/layout-body/style/style.min.css +1 -1
- package/lib/row/src/col.js +43 -17
- package/lib/row/src/col.min.js +1 -1
- package/lib/row/src/row.js +38 -14
- package/lib/row/src/row.min.js +1 -1
- package/lib/row/style/style.css +101 -24
- package/lib/row/style/style.min.css +1 -1
- package/lib/scrollbar/src/scrollbar.js +6 -3
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/space/style/style.css +1 -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/tabs/style/style.css +4 -0
- package/lib/tabs/style/style.min.css +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-layout-aside/style/style.css +4 -1
- package/lib/vxe-layout-aside/style/style.min.css +1 -1
- package/lib/vxe-layout-body/style/style.css +4 -1
- package/lib/vxe-layout-body/style/style.min.css +1 -1
- package/lib/vxe-row/style/style.css +101 -24
- package/lib/vxe-row/style/style.min.css +1 -1
- package/lib/vxe-space/style/style.css +1 -0
- package/lib/vxe-space/style/style.min.css +1 -1
- package/lib/vxe-tabs/style/style.css +4 -0
- package/lib/vxe-tabs/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/row/src/col.ts +41 -18
- package/packages/row/src/row.ts +36 -17
- package/packages/scrollbar/src/scrollbar.ts +7 -4
- package/styles/components/layout-aside.scss +10 -1
- package/styles/components/layout-body.scss +10 -1
- package/styles/components/row.scss +21 -3
- package/styles/components/space.scss +1 -0
- package/styles/components/tabs.scss +4 -0
- package/types/components/row.d.ts +2 -0
- /package/es/icon/{iconfont.1791695434923.ttf → iconfont.1791794447472.ttf} +0 -0
- /package/es/icon/{iconfont.1791695434923.woff → iconfont.1791794447472.woff} +0 -0
- /package/es/icon/{iconfont.1791695434923.woff2 → iconfont.1791794447472.woff2} +0 -0
- /package/es/{iconfont.1791695434923.ttf → iconfont.1791794447472.ttf} +0 -0
- /package/es/{iconfont.1791695434923.woff → iconfont.1791794447472.woff} +0 -0
- /package/es/{iconfont.1791695434923.woff2 → iconfont.1791794447472.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791695434923.ttf → iconfont.1791794447472.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791695434923.woff → iconfont.1791794447472.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791695434923.woff2 → iconfont.1791794447472.woff2} +0 -0
- /package/lib/{iconfont.1791695434923.ttf → iconfont.1791794447472.ttf} +0 -0
- /package/lib/{iconfont.1791695434923.woff → iconfont.1791794447472.woff} +0 -0
- /package/lib/{iconfont.1791695434923.woff2 → iconfont.1791794447472.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as core from '@vxe-ui/core';
|
|
2
|
-
import { VxeUI, setConfig as setConfig$1, setIcon, getConfig as getConfig$4, createEvent as createEvent$1, getIcon as getIcon$2, renderEmptyElement as renderEmptyElement$1, useSize, globalEvents, usePermission, permission, renderer, getI18n as getI18n$2, globalResize as globalResize$1, menus as menus$3, GLOBAL_EVENT_KEYS, getSlotVNs as getSlotVNs$1, commands, formats, getComponent, validators } from '@vxe-ui/core';
|
|
2
|
+
import { VxeUI, setConfig as setConfig$1, setIcon, getConfig as getConfig$4, createEvent as createEvent$1, getIcon as getIcon$2, renderEmptyElement as renderEmptyElement$1, useSize, globalEvents as globalEvents$1, usePermission, permission, renderer, getI18n as getI18n$2, globalResize as globalResize$1, menus as menus$3, GLOBAL_EVENT_KEYS, getSlotVNs as getSlotVNs$1, commands, formats, getComponent, validators } from '@vxe-ui/core';
|
|
3
3
|
export * from '@vxe-ui/core';
|
|
4
4
|
import { defineComponent, ref, reactive, h, createCommentVNode, createApp, inject, computed, watch, onMounted, onUnmounted, provide, nextTick, onBeforeUnmount, resolveComponent, Teleport, onActivated, onDeactivated, TransitionGroup } from 'vue';
|
|
5
5
|
import XEUtils from 'xe-utils';
|
|
@@ -101,7 +101,7 @@ function checkDynamic() {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
const { log } = VxeUI;
|
|
104
|
-
const uiVersion = `ui v${"4.19.
|
|
104
|
+
const uiVersion = `ui v${"4.19.7"}`;
|
|
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}` : '';
|
|
@@ -112,18 +112,18 @@ function createComponentLog(name) {
|
|
|
112
112
|
errLog: log.create('error', versionInfo + '] [' + name)
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
const warnLog$
|
|
115
|
+
const warnLog$j = log.create('warn', uiVersion);
|
|
116
116
|
log.create('error', uiVersion);
|
|
117
117
|
|
|
118
|
-
const version = "4.19.
|
|
118
|
+
const version = "4.19.7";
|
|
119
119
|
VxeUI.uiVersion = version;
|
|
120
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
121
121
|
function config(options) {
|
|
122
|
-
warnLog$
|
|
122
|
+
warnLog$j('vxe.error.delFunc', ['config', 'setConfig']);
|
|
123
123
|
return setConfig$1(options);
|
|
124
124
|
}
|
|
125
125
|
function setup(options) {
|
|
126
|
-
warnLog$
|
|
126
|
+
warnLog$j('vxe.error.delFunc', ['setup', 'setConfig']);
|
|
127
127
|
return setConfig$1(options);
|
|
128
128
|
}
|
|
129
129
|
VxeUI.config = config;
|
|
@@ -3192,8 +3192,8 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
3192
3192
|
}
|
|
3193
3193
|
}
|
|
3194
3194
|
});
|
|
3195
|
-
globalEvents.on($xeTooltip, 'blur', handleGlobalBlurEvent);
|
|
3196
|
-
globalEvents.on($xeTooltip, 'scroll', handleGlobalScrollEvent);
|
|
3195
|
+
globalEvents$1.on($xeTooltip, 'blur', handleGlobalBlurEvent);
|
|
3196
|
+
globalEvents$1.on($xeTooltip, 'scroll', handleGlobalScrollEvent);
|
|
3197
3197
|
});
|
|
3198
3198
|
onBeforeUnmount(() => {
|
|
3199
3199
|
const { target } = reactData;
|
|
@@ -3213,8 +3213,8 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
3213
3213
|
parentNode.removeChild(panelElem);
|
|
3214
3214
|
}
|
|
3215
3215
|
}
|
|
3216
|
-
globalEvents.off($xeTooltip, 'blur');
|
|
3217
|
-
globalEvents.off($xeTooltip, 'scroll');
|
|
3216
|
+
globalEvents$1.off($xeTooltip, 'blur');
|
|
3217
|
+
globalEvents$1.off($xeTooltip, 'scroll');
|
|
3218
3218
|
XEUtils.assign(reactData, createReactData$p());
|
|
3219
3219
|
XEUtils.assign(internalData, createInternalData$o());
|
|
3220
3220
|
});
|
|
@@ -3290,7 +3290,7 @@ VxeUI.component(VxeTooltipComponent);
|
|
|
3290
3290
|
VxeUI.tooltip = TooltipController;
|
|
3291
3291
|
const Tooltip = VxeTooltip;
|
|
3292
3292
|
|
|
3293
|
-
const { warnLog: warnLog$
|
|
3293
|
+
const { warnLog: warnLog$i } = createComponentLog('button');
|
|
3294
3294
|
const VxeButtonComponent = defineVxeComponent({
|
|
3295
3295
|
name: 'VxeButton',
|
|
3296
3296
|
props: {
|
|
@@ -4019,16 +4019,16 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
4019
4019
|
$xeButton.renderVN = renderVN;
|
|
4020
4020
|
onMounted(() => {
|
|
4021
4021
|
if (props.type === 'text') {
|
|
4022
|
-
warnLog$
|
|
4022
|
+
warnLog$i('vxe.error.delProp', ['type=text', 'mode=text']);
|
|
4023
4023
|
}
|
|
4024
|
-
globalEvents.on($xeButton, 'mousedown', handleGlobalMousedownEvent);
|
|
4025
|
-
globalEvents.on($xeButton, 'resize', handleGlobalResizeEvent);
|
|
4026
|
-
globalEvents.on($xeButton, 'scroll', handleGlobalScrollEvent);
|
|
4024
|
+
globalEvents$1.on($xeButton, 'mousedown', handleGlobalMousedownEvent);
|
|
4025
|
+
globalEvents$1.on($xeButton, 'resize', handleGlobalResizeEvent);
|
|
4026
|
+
globalEvents$1.on($xeButton, 'scroll', handleGlobalScrollEvent);
|
|
4027
4027
|
});
|
|
4028
4028
|
onUnmounted(() => {
|
|
4029
|
-
globalEvents.off($xeButton, 'mousedown');
|
|
4030
|
-
globalEvents.off($xeButton, 'resize');
|
|
4031
|
-
globalEvents.off($xeButton, 'scroll');
|
|
4029
|
+
globalEvents$1.off($xeButton, 'mousedown');
|
|
4030
|
+
globalEvents$1.off($xeButton, 'resize');
|
|
4031
|
+
globalEvents$1.off($xeButton, 'scroll');
|
|
4032
4032
|
});
|
|
4033
4033
|
return $xeButton;
|
|
4034
4034
|
},
|
|
@@ -4046,7 +4046,7 @@ dynamicApp.use(VxeButton);
|
|
|
4046
4046
|
VxeUI.component(VxeButtonComponent);
|
|
4047
4047
|
const Button = VxeButton;
|
|
4048
4048
|
|
|
4049
|
-
const { errLog: errLog$
|
|
4049
|
+
const { errLog: errLog$l } = createComponentLog('backtop');
|
|
4050
4050
|
function createInternalData$n() {
|
|
4051
4051
|
return {
|
|
4052
4052
|
targetEl: null
|
|
@@ -4224,7 +4224,7 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
4224
4224
|
const { target } = props;
|
|
4225
4225
|
if (!target) {
|
|
4226
4226
|
removeScrollEvent();
|
|
4227
|
-
errLog$
|
|
4227
|
+
errLog$l('vxe.error.reqProp', ['target']);
|
|
4228
4228
|
return;
|
|
4229
4229
|
}
|
|
4230
4230
|
if (XEUtils.isString(target)) {
|
|
@@ -4965,7 +4965,7 @@ const getNextMonth = (date) => {
|
|
|
4965
4965
|
return date;
|
|
4966
4966
|
};
|
|
4967
4967
|
|
|
4968
|
-
const { errLog: errLog$
|
|
4968
|
+
const { errLog: errLog$k } = createComponentLog('calendar');
|
|
4969
4969
|
const { menus: menus$2, getConfig: getConfig$3, getI18n: getI18n$1 } = VxeUI;
|
|
4970
4970
|
var VxeCalendarComponent = defineVxeComponent({
|
|
4971
4971
|
name: 'VxeCalendar',
|
|
@@ -6231,7 +6231,7 @@ var VxeCalendarComponent = defineVxeComponent({
|
|
|
6231
6231
|
const { menuConfig } = props;
|
|
6232
6232
|
const VxeUIContextMenu = VxeUI.getComponent('VxeContextMenu');
|
|
6233
6233
|
if (menuConfig && !VxeUIContextMenu) {
|
|
6234
|
-
errLog$
|
|
6234
|
+
errLog$k('vxe.error.reqComp', ['vxe-context-menu']);
|
|
6235
6235
|
}
|
|
6236
6236
|
dateOpenPanel();
|
|
6237
6237
|
});
|
|
@@ -7079,7 +7079,7 @@ function getItemCacheObj$1(item) {
|
|
|
7079
7079
|
};
|
|
7080
7080
|
}
|
|
7081
7081
|
|
|
7082
|
-
const { warnLog: warnLog$
|
|
7082
|
+
const { warnLog: warnLog$h, errLog: errLog$j } = createComponentLog('tree');
|
|
7083
7083
|
function getRowKeyByField(row, keyField) {
|
|
7084
7084
|
return row ? ('' + (row[keyField] || '')) : '';
|
|
7085
7085
|
}
|
|
@@ -8334,7 +8334,7 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8334
8334
|
const { fullData, rowMaps, removeRowMaps, insertRowMaps } = internalData;
|
|
8335
8335
|
const keyField = computeKeyField.value;
|
|
8336
8336
|
if (!keyField) {
|
|
8337
|
-
errLog$
|
|
8337
|
+
errLog$j('vxe.error.reqSupportProp', ['insert() | insertAt() | insertNextAt()', 'row-config.keyField']);
|
|
8338
8338
|
return Promise.resolve({ row: null, rows: [] });
|
|
8339
8339
|
}
|
|
8340
8340
|
if (!XEUtils.isArray(records)) {
|
|
@@ -8373,7 +8373,7 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8373
8373
|
fullData.splice(targetIndex, 0, ...newRecords);
|
|
8374
8374
|
}
|
|
8375
8375
|
else {
|
|
8376
|
-
warnLog$
|
|
8376
|
+
warnLog$h('vxe.error.unableInsert');
|
|
8377
8377
|
insertListRow(newRecords, true);
|
|
8378
8378
|
}
|
|
8379
8379
|
}
|
|
@@ -8521,7 +8521,7 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8521
8521
|
const { fullData, insertRowMaps, removeRowMaps } = internalData;
|
|
8522
8522
|
const keyField = computeKeyField.value;
|
|
8523
8523
|
if (!keyField) {
|
|
8524
|
-
errLog$
|
|
8524
|
+
errLog$j('vxe.error.reqSupportProp', ['insert() | insertAt() | insertNextAt()', 'row-config.keyField']);
|
|
8525
8525
|
return Promise.resolve({ row: null, rows: [] });
|
|
8526
8526
|
}
|
|
8527
8527
|
let delList = [];
|
|
@@ -9131,20 +9131,20 @@ var VxeListComponent = defineVxeComponent({
|
|
|
9131
9131
|
const keyField = computeKeyField.value;
|
|
9132
9132
|
if (!keyField) {
|
|
9133
9133
|
if (showSeq) {
|
|
9134
|
-
errLog$
|
|
9134
|
+
errLog$j('vxe.error.reqSupportProp', ['show-seq', 'row-config.keyField']);
|
|
9135
9135
|
}
|
|
9136
9136
|
if (showRadio) {
|
|
9137
|
-
errLog$
|
|
9137
|
+
errLog$j('vxe.error.reqSupportProp', ['show-radio', 'row-config.keyField']);
|
|
9138
9138
|
}
|
|
9139
9139
|
if (showCheckbox) {
|
|
9140
|
-
errLog$
|
|
9140
|
+
errLog$j('vxe.error.reqSupportProp', ['show-checkbox', 'row-config.keyField']);
|
|
9141
9141
|
}
|
|
9142
9142
|
if (isDrag) {
|
|
9143
|
-
errLog$
|
|
9143
|
+
errLog$j('vxe.error.reqSupportProp', ['drag-config', 'row-config.keyField']);
|
|
9144
9144
|
}
|
|
9145
9145
|
}
|
|
9146
9146
|
if (useKey && !keyField) {
|
|
9147
|
-
errLog$
|
|
9147
|
+
errLog$j('vxe.error.reqSupportProp', ['row-config.useKey', 'row-config.keyField']);
|
|
9148
9148
|
}
|
|
9149
9149
|
if (props.autoResize) {
|
|
9150
9150
|
const el = refElem.value;
|
|
@@ -9156,14 +9156,14 @@ var VxeListComponent = defineVxeComponent({
|
|
|
9156
9156
|
internalData.resizeObserver = resizeObserver;
|
|
9157
9157
|
}
|
|
9158
9158
|
recalculate();
|
|
9159
|
-
globalEvents.on($xeList, 'resize', recalculate);
|
|
9159
|
+
globalEvents$1.on($xeList, 'resize', recalculate);
|
|
9160
9160
|
});
|
|
9161
9161
|
onBeforeUnmount(() => {
|
|
9162
9162
|
const { resizeObserver } = internalData;
|
|
9163
9163
|
if (resizeObserver) {
|
|
9164
9164
|
resizeObserver.disconnect();
|
|
9165
9165
|
}
|
|
9166
|
-
globalEvents.off($xeList, 'resize');
|
|
9166
|
+
globalEvents$1.off($xeList, 'resize');
|
|
9167
9167
|
XEUtils.assign(reactData, createReactData$n());
|
|
9168
9168
|
XEUtils.assign(internalData, createInternalData$m());
|
|
9169
9169
|
});
|
|
@@ -9206,7 +9206,7 @@ function toFloatValueFixed(inputValue, type, digitsValue, roundingMode) {
|
|
|
9206
9206
|
}
|
|
9207
9207
|
}
|
|
9208
9208
|
|
|
9209
|
-
const { warnLog: warnLog$
|
|
9209
|
+
const { warnLog: warnLog$g } = createComponentLog('input');
|
|
9210
9210
|
var VxeInputComponent = defineVxeComponent({
|
|
9211
9211
|
name: 'VxeInput',
|
|
9212
9212
|
props: {
|
|
@@ -10399,8 +10399,8 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
10399
10399
|
dispatchEvent('prev-number', { value: reactData.inputValue }, evnt);
|
|
10400
10400
|
};
|
|
10401
10401
|
const numberKeydownEvent = (evnt) => {
|
|
10402
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
10403
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
10402
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
10403
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
10404
10404
|
if (isUpArrow || isDwArrow) {
|
|
10405
10405
|
evnt.preventDefault();
|
|
10406
10406
|
if (isUpArrow) {
|
|
@@ -10419,11 +10419,11 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
10419
10419
|
const isShiftKey = evnt.shiftKey;
|
|
10420
10420
|
const isAltKey = evnt.altKey;
|
|
10421
10421
|
const keyCode = evnt.keyCode;
|
|
10422
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
10423
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
10424
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
10422
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
10423
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
10424
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
10425
10425
|
if (!isControlKey && !isShiftKey && !isAltKey) {
|
|
10426
|
-
if (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || (type === 'integer' && keyCode === 110) || ((!exponential || keyCode !== 69) && (keyCode >= 65 && keyCode <= 90)) || (keyCode >= 186 && keyCode <= 188) || keyCode >= 191) {
|
|
10426
|
+
if (globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || (type === 'integer' && keyCode === 110) || ((!exponential || keyCode !== 69) && (keyCode >= 65 && keyCode <= 90)) || (keyCode >= 186 && keyCode <= 188) || keyCode >= 191) {
|
|
10427
10427
|
evnt.preventDefault();
|
|
10428
10428
|
}
|
|
10429
10429
|
}
|
|
@@ -10783,10 +10783,10 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
10783
10783
|
const { isActivated, datePanelValue, datePanelType } = reactData;
|
|
10784
10784
|
if (isActivated) {
|
|
10785
10785
|
evnt.preventDefault();
|
|
10786
|
-
const isLeftArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
10787
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
10788
|
-
const isRightArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
10789
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
10786
|
+
const isLeftArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
10787
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
10788
|
+
const isRightArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
10789
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
10790
10790
|
if (datePanelType === 'year') {
|
|
10791
10791
|
let offsetYear = XEUtils.getWhatYear(datePanelValue || Date.now(), 0, 'first');
|
|
10792
10792
|
if (isLeftArrow) {
|
|
@@ -10857,7 +10857,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
10857
10857
|
const datePgOffsetEvent = (evnt) => {
|
|
10858
10858
|
const { isActivated } = reactData;
|
|
10859
10859
|
if (isActivated) {
|
|
10860
|
-
const isPgUp = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_UP);
|
|
10860
|
+
const isPgUp = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_UP);
|
|
10861
10861
|
evnt.preventDefault();
|
|
10862
10862
|
if (isPgUp) {
|
|
10863
10863
|
datePrevEvent(evnt);
|
|
@@ -11043,16 +11043,16 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11043
11043
|
const isDisabled = computeIsDisabled.value;
|
|
11044
11044
|
const isDatePickerType = computeIsDatePickerType.value;
|
|
11045
11045
|
if (!isDisabled) {
|
|
11046
|
-
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
11047
|
-
const isDel = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
11048
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
11049
|
-
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
11050
|
-
const isLeftArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
11051
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
11052
|
-
const isRightArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
11053
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
11054
|
-
const isPgUp = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_UP);
|
|
11055
|
-
const isPgDn = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_DOWN);
|
|
11046
|
+
const isTab = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
11047
|
+
const isDel = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
11048
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
11049
|
+
const isEnter = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
11050
|
+
const isLeftArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
11051
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
11052
|
+
const isRightArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
11053
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
11054
|
+
const isPgUp = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_UP);
|
|
11055
|
+
const isPgDn = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_DOWN);
|
|
11056
11056
|
const operArrow = isLeftArrow || isUpArrow || isRightArrow || isDwArrow;
|
|
11057
11057
|
let isActivated = reactData.isActivated;
|
|
11058
11058
|
if (isTab) {
|
|
@@ -11911,22 +11911,22 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11911
11911
|
onMounted(() => {
|
|
11912
11912
|
const { type } = props;
|
|
11913
11913
|
if (['date', 'time', 'datetime', 'week', 'month', 'quarter', 'year'].includes(type)) {
|
|
11914
|
-
warnLog$
|
|
11914
|
+
warnLog$g('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, `<vxe-date-picker type="${type}" ... />`]);
|
|
11915
11915
|
}
|
|
11916
11916
|
else if (['number', 'integer', 'float'].includes(type)) {
|
|
11917
|
-
warnLog$
|
|
11917
|
+
warnLog$g('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, `<vxe-number-input type="${type}" ... />`]);
|
|
11918
11918
|
}
|
|
11919
11919
|
else if (['password'].includes(type)) {
|
|
11920
|
-
warnLog$
|
|
11920
|
+
warnLog$g('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, '<vxe-password-input ... />']);
|
|
11921
11921
|
}
|
|
11922
11922
|
const inputElem = refInputTarget.value;
|
|
11923
11923
|
if (inputElem) {
|
|
11924
11924
|
inputElem.addEventListener('wheel', wheelEvent, { passive: false });
|
|
11925
11925
|
}
|
|
11926
|
-
globalEvents.on($xeInput, 'mousewheel', handleGlobalMousewheelEvent);
|
|
11927
|
-
globalEvents.on($xeInput, 'mousedown', handleGlobalMousedownEvent);
|
|
11928
|
-
globalEvents.on($xeInput, 'keydown', handleGlobalKeydownEvent);
|
|
11929
|
-
globalEvents.on($xeInput, 'blur', handleGlobalBlurEvent);
|
|
11926
|
+
globalEvents$1.on($xeInput, 'mousewheel', handleGlobalMousewheelEvent);
|
|
11927
|
+
globalEvents$1.on($xeInput, 'mousedown', handleGlobalMousedownEvent);
|
|
11928
|
+
globalEvents$1.on($xeInput, 'keydown', handleGlobalKeydownEvent);
|
|
11929
|
+
globalEvents$1.on($xeInput, 'blur', handleGlobalBlurEvent);
|
|
11930
11930
|
updateDomValue();
|
|
11931
11931
|
});
|
|
11932
11932
|
onBeforeUnmount(() => {
|
|
@@ -11936,10 +11936,10 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11936
11936
|
if (inputElem) {
|
|
11937
11937
|
inputElem.removeEventListener('wheel', wheelEvent);
|
|
11938
11938
|
}
|
|
11939
|
-
globalEvents.off($xeInput, 'mousewheel');
|
|
11940
|
-
globalEvents.off($xeInput, 'mousedown');
|
|
11941
|
-
globalEvents.off($xeInput, 'keydown');
|
|
11942
|
-
globalEvents.off($xeInput, 'blur');
|
|
11939
|
+
globalEvents$1.off($xeInput, 'mousewheel');
|
|
11940
|
+
globalEvents$1.off($xeInput, 'mousedown');
|
|
11941
|
+
globalEvents$1.off($xeInput, 'keydown');
|
|
11942
|
+
globalEvents$1.off($xeInput, 'blur');
|
|
11943
11943
|
});
|
|
11944
11944
|
initValue();
|
|
11945
11945
|
$xeInput.renderVN = renderVN;
|
|
@@ -13708,16 +13708,16 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
13708
13708
|
});
|
|
13709
13709
|
loadData(props.options || []);
|
|
13710
13710
|
onMounted(() => {
|
|
13711
|
-
globalEvents.on($xeCascader, 'mousedown', handleGlobalMousedownEvent);
|
|
13712
|
-
globalEvents.on($xeCascader, 'blur', handleGlobalBlurEvent);
|
|
13713
|
-
globalEvents.on($xeCascader, 'resize', handleGlobalResizeEvent);
|
|
13714
|
-
globalEvents.on($xeCascader, 'scroll', handleGlobalScrollEvent);
|
|
13711
|
+
globalEvents$1.on($xeCascader, 'mousedown', handleGlobalMousedownEvent);
|
|
13712
|
+
globalEvents$1.on($xeCascader, 'blur', handleGlobalBlurEvent);
|
|
13713
|
+
globalEvents$1.on($xeCascader, 'resize', handleGlobalResizeEvent);
|
|
13714
|
+
globalEvents$1.on($xeCascader, 'scroll', handleGlobalScrollEvent);
|
|
13715
13715
|
});
|
|
13716
13716
|
onUnmounted(() => {
|
|
13717
|
-
globalEvents.off($xeCascader, 'mousedown');
|
|
13718
|
-
globalEvents.off($xeCascader, 'blur');
|
|
13719
|
-
globalEvents.off($xeCascader, 'resize');
|
|
13720
|
-
globalEvents.off($xeCascader, 'scroll');
|
|
13717
|
+
globalEvents$1.off($xeCascader, 'mousedown');
|
|
13718
|
+
globalEvents$1.off($xeCascader, 'blur');
|
|
13719
|
+
globalEvents$1.off($xeCascader, 'resize');
|
|
13720
|
+
globalEvents$1.off($xeCascader, 'scroll');
|
|
13721
13721
|
XEUtils.assign(reactData, createReactData$m());
|
|
13722
13722
|
XEUtils.assign(internalData, createInternalData$l());
|
|
13723
13723
|
});
|
|
@@ -13739,7 +13739,7 @@ dynamicApp.use(VxeCascader);
|
|
|
13739
13739
|
VxeUI.component(VxeCascaderComponent);
|
|
13740
13740
|
const Cascader = VxeCascader;
|
|
13741
13741
|
|
|
13742
|
-
const { warnLog: warnLog$
|
|
13742
|
+
const { warnLog: warnLog$f } = createComponentLog('checkbox');
|
|
13743
13743
|
var VxeCheckboxComponent = defineVxeComponent({
|
|
13744
13744
|
name: 'VxeCheckbox',
|
|
13745
13745
|
props: {
|
|
@@ -13900,7 +13900,7 @@ var VxeCheckboxComponent = defineVxeComponent({
|
|
|
13900
13900
|
};
|
|
13901
13901
|
onMounted(() => {
|
|
13902
13902
|
if (props.label !== null) {
|
|
13903
|
-
warnLog$
|
|
13903
|
+
warnLog$f('vxe.error.delProp', ['label', 'checked-value']);
|
|
13904
13904
|
}
|
|
13905
13905
|
});
|
|
13906
13906
|
$xeCheckbox.renderVN = renderVN;
|
|
@@ -13920,7 +13920,7 @@ dynamicApp.use(VxeCheckbox);
|
|
|
13920
13920
|
VxeUI.component(VxeCheckboxComponent);
|
|
13921
13921
|
const Checkbox = VxeCheckbox;
|
|
13922
13922
|
|
|
13923
|
-
const { warnLog: warnLog$
|
|
13923
|
+
const { warnLog: warnLog$e } = createComponentLog('checkbox-button');
|
|
13924
13924
|
var VxeCheckboxButtonComponent = defineVxeComponent({
|
|
13925
13925
|
name: 'VxeCheckboxButton',
|
|
13926
13926
|
props: {
|
|
@@ -14106,7 +14106,7 @@ var VxeCheckboxButtonComponent = defineVxeComponent({
|
|
|
14106
14106
|
};
|
|
14107
14107
|
onMounted(() => {
|
|
14108
14108
|
if (props.label !== null) {
|
|
14109
|
-
warnLog$
|
|
14109
|
+
warnLog$e('vxe.error.delProp', ['label', 'checked-value']);
|
|
14110
14110
|
}
|
|
14111
14111
|
});
|
|
14112
14112
|
$xeCheckboxButton.renderVN = renderVN;
|
|
@@ -14362,6 +14362,7 @@ dynamicApp.use(VxeCheckboxGroup);
|
|
|
14362
14362
|
VxeUI.component(VxeCheckboxGroupComponent);
|
|
14363
14363
|
const CheckboxGroup = VxeCheckboxGroup;
|
|
14364
14364
|
|
|
14365
|
+
const { errLog: errLog$i } = createComponentLog('col');
|
|
14365
14366
|
var VxeColComponent = defineVxeComponent({
|
|
14366
14367
|
name: 'VxeCol',
|
|
14367
14368
|
props: {
|
|
@@ -14402,27 +14403,33 @@ var VxeColComponent = defineVxeComponent({
|
|
|
14402
14403
|
const { width } = props;
|
|
14403
14404
|
const rowGutter = computeRowGutter.value;
|
|
14404
14405
|
const rowVertical = computeRowVertical.value;
|
|
14406
|
+
let gridLayout = false;
|
|
14407
|
+
if ($xeRow) {
|
|
14408
|
+
gridLayout = !!$xeRow.props.gridLayout;
|
|
14409
|
+
}
|
|
14405
14410
|
const style = {};
|
|
14406
|
-
if (
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14411
|
+
if (!gridLayout) {
|
|
14412
|
+
if (rowGutter) {
|
|
14413
|
+
let [lrGutter, tbGutter] = XEUtils.isArray(rowGutter) ? rowGutter : [rowGutter];
|
|
14414
|
+
if (rowVertical) {
|
|
14415
|
+
tbGutter = lrGutter;
|
|
14416
|
+
lrGutter = '';
|
|
14417
|
+
}
|
|
14418
|
+
if (lrGutter) {
|
|
14419
|
+
const padding = XEUtils.isNumber(lrGutter) ? toCssUnit(lrGutter / 2) : `calc(${toCssUnit(lrGutter)} / 2)`;
|
|
14420
|
+
style.paddingLeft = padding;
|
|
14421
|
+
style.paddingRight = padding;
|
|
14422
|
+
}
|
|
14423
|
+
if (tbGutter) {
|
|
14424
|
+
const padding = XEUtils.isNumber(tbGutter) ? toCssUnit(tbGutter / 2) : `calc(${toCssUnit(tbGutter)} / 2)`;
|
|
14425
|
+
style.paddingTop = padding;
|
|
14426
|
+
style.paddingBottom = padding;
|
|
14427
|
+
}
|
|
14416
14428
|
}
|
|
14417
|
-
if (
|
|
14418
|
-
|
|
14419
|
-
style.paddingTop = padding;
|
|
14420
|
-
style.paddingBottom = padding;
|
|
14429
|
+
if (width) {
|
|
14430
|
+
style.width = toCssUnit(width);
|
|
14421
14431
|
}
|
|
14422
14432
|
}
|
|
14423
|
-
if (width) {
|
|
14424
|
-
style.width = toCssUnit(width);
|
|
14425
|
-
}
|
|
14426
14433
|
return style;
|
|
14427
14434
|
});
|
|
14428
14435
|
const computeMaps = {};
|
|
@@ -14461,6 +14468,19 @@ var VxeColComponent = defineVxeComponent({
|
|
|
14461
14468
|
}, defaultSlot ? defaultSlot({}) : [])
|
|
14462
14469
|
]);
|
|
14463
14470
|
};
|
|
14471
|
+
onMounted(() => {
|
|
14472
|
+
const { width, fill } = props;
|
|
14473
|
+
if ($xeRow) {
|
|
14474
|
+
if ($xeRow.props.gridLayout) {
|
|
14475
|
+
if (width) {
|
|
14476
|
+
errLog$i('vxe.error.notSupportProp', ['grid-layout', `width=${width}`, 'width=null']);
|
|
14477
|
+
}
|
|
14478
|
+
if (fill) {
|
|
14479
|
+
errLog$i('vxe.error.notSupportProp', ['grid-layout', `fill=${fill}`, 'fill=false']);
|
|
14480
|
+
}
|
|
14481
|
+
}
|
|
14482
|
+
}
|
|
14483
|
+
});
|
|
14464
14484
|
$xeCol.renderVN = renderVN;
|
|
14465
14485
|
return $xeCol;
|
|
14466
14486
|
},
|
|
@@ -15959,8 +15979,8 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
15959
15979
|
dispatchEvent('prev-number', { value: reactData.inputValue }, evnt);
|
|
15960
15980
|
};
|
|
15961
15981
|
const numberKeydownEvent = (evnt) => {
|
|
15962
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
15963
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
15982
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
15983
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
15964
15984
|
if (isUpArrow || isDwArrow) {
|
|
15965
15985
|
evnt.preventDefault();
|
|
15966
15986
|
if (isUpArrow) {
|
|
@@ -16018,11 +16038,11 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16018
16038
|
const isAltKey = evnt.altKey;
|
|
16019
16039
|
const key = evnt.key;
|
|
16020
16040
|
const keyCode = evnt.keyCode;
|
|
16021
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
16022
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
16023
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
16041
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
16042
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
16043
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
16024
16044
|
if (!isControlKey && !isShiftKey && !isAltKey) {
|
|
16025
|
-
if (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) ||
|
|
16045
|
+
if (globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) ||
|
|
16026
16046
|
(!negative && key === '-') ||
|
|
16027
16047
|
(type === 'integer' && key === '.') ||
|
|
16028
16048
|
((!exponential || keyCode !== 69) && (keyCode >= 65 && keyCode <= 90)) ||
|
|
@@ -16166,8 +16186,8 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16166
16186
|
const isDisabled = computeIsDisabled.value;
|
|
16167
16187
|
const inputReadonly = computeInputReadonly.value;
|
|
16168
16188
|
if (!isDisabled && !inputReadonly) {
|
|
16169
|
-
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
16170
|
-
const isDel = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
16189
|
+
const isTab = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
16190
|
+
const isDel = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
16171
16191
|
let isActivated = reactData.isActivated;
|
|
16172
16192
|
if (isTab) {
|
|
16173
16193
|
if (isActivated) {
|
|
@@ -16469,9 +16489,9 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16469
16489
|
if (targetElem) {
|
|
16470
16490
|
targetElem.addEventListener('wheel', wheelEvent, { passive: false });
|
|
16471
16491
|
}
|
|
16472
|
-
globalEvents.on($xeNumberInput, 'mousedown', handleGlobalMousedownEvent);
|
|
16473
|
-
globalEvents.on($xeNumberInput, 'keydown', handleGlobalKeydownEvent);
|
|
16474
|
-
globalEvents.on($xeNumberInput, 'blur', handleGlobalBlurEvent);
|
|
16492
|
+
globalEvents$1.on($xeNumberInput, 'mousedown', handleGlobalMousedownEvent);
|
|
16493
|
+
globalEvents$1.on($xeNumberInput, 'keydown', handleGlobalKeydownEvent);
|
|
16494
|
+
globalEvents$1.on($xeNumberInput, 'blur', handleGlobalBlurEvent);
|
|
16475
16495
|
});
|
|
16476
16496
|
onBeforeUnmount(() => {
|
|
16477
16497
|
reactData.isFocus = false;
|
|
@@ -16481,9 +16501,9 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16481
16501
|
if (targetElem) {
|
|
16482
16502
|
targetElem.removeEventListener('wheel', wheelEvent);
|
|
16483
16503
|
}
|
|
16484
|
-
globalEvents.off($xeNumberInput, 'mousedown');
|
|
16485
|
-
globalEvents.off($xeNumberInput, 'keydown');
|
|
16486
|
-
globalEvents.off($xeNumberInput, 'blur');
|
|
16504
|
+
globalEvents$1.off($xeNumberInput, 'mousedown');
|
|
16505
|
+
globalEvents$1.off($xeNumberInput, 'keydown');
|
|
16506
|
+
globalEvents$1.off($xeNumberInput, 'blur');
|
|
16487
16507
|
});
|
|
16488
16508
|
initValue();
|
|
16489
16509
|
return $xeNumberInput;
|
|
@@ -17543,16 +17563,16 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17543
17563
|
updateType();
|
|
17544
17564
|
});
|
|
17545
17565
|
onMounted(() => {
|
|
17546
|
-
globalEvents.on($xeColorPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
17547
|
-
globalEvents.on($xeColorPicker, 'blur', handleGlobalBlurEvent);
|
|
17548
|
-
globalEvents.on($xeColorPicker, 'resize', handleGlobalResizeEvent);
|
|
17549
|
-
globalEvents.on($xeColorPicker, 'scroll', handleGlobalScrollEvent);
|
|
17566
|
+
globalEvents$1.on($xeColorPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
17567
|
+
globalEvents$1.on($xeColorPicker, 'blur', handleGlobalBlurEvent);
|
|
17568
|
+
globalEvents$1.on($xeColorPicker, 'resize', handleGlobalResizeEvent);
|
|
17569
|
+
globalEvents$1.on($xeColorPicker, 'scroll', handleGlobalScrollEvent);
|
|
17550
17570
|
});
|
|
17551
17571
|
onUnmounted(() => {
|
|
17552
|
-
globalEvents.off($xeColorPicker, 'mousedown');
|
|
17553
|
-
globalEvents.off($xeColorPicker, 'blur');
|
|
17554
|
-
globalEvents.off($xeColorPicker, 'resize');
|
|
17555
|
-
globalEvents.off($xeColorPicker, 'scroll');
|
|
17572
|
+
globalEvents$1.off($xeColorPicker, 'mousedown');
|
|
17573
|
+
globalEvents$1.off($xeColorPicker, 'blur');
|
|
17574
|
+
globalEvents$1.off($xeColorPicker, 'resize');
|
|
17575
|
+
globalEvents$1.off($xeColorPicker, 'scroll');
|
|
17556
17576
|
});
|
|
17557
17577
|
updateType();
|
|
17558
17578
|
provide('$xeColorPicker', $xeColorPicker);
|
|
@@ -17950,12 +17970,12 @@ var VxeContextMenuComponent = defineVxeComponent({
|
|
|
17950
17970
|
const { visible, activeOption, activeChildOption } = reactData;
|
|
17951
17971
|
const allFirstMenuList = computeAllFirstMenuList.value;
|
|
17952
17972
|
if (visible) {
|
|
17953
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
17954
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
17955
|
-
const isLeftArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
17956
|
-
const isRightArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
17957
|
-
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
17958
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
17973
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
17974
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
17975
|
+
const isLeftArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
17976
|
+
const isRightArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
17977
|
+
const isEnter = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
17978
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
17959
17979
|
if (isEsc) {
|
|
17960
17980
|
closeMenu();
|
|
17961
17981
|
return;
|
|
@@ -18188,20 +18208,20 @@ var VxeContextMenuComponent = defineVxeComponent({
|
|
|
18188
18208
|
});
|
|
18189
18209
|
handleVisible();
|
|
18190
18210
|
onMounted(() => {
|
|
18191
|
-
globalEvents.on($xeContextMenu, 'mousewheel', handleGlobalMousewheelEvent);
|
|
18192
|
-
globalEvents.on($xeContextMenu, 'keydown', handleGlobalKeydownEvent);
|
|
18193
|
-
globalEvents.on($xeContextMenu, 'mousedown', handleGlobalMousedownEvent);
|
|
18194
|
-
globalEvents.on($xeContextMenu, 'blur', handleGlobalBlurEvent);
|
|
18211
|
+
globalEvents$1.on($xeContextMenu, 'mousewheel', handleGlobalMousewheelEvent);
|
|
18212
|
+
globalEvents$1.on($xeContextMenu, 'keydown', handleGlobalKeydownEvent);
|
|
18213
|
+
globalEvents$1.on($xeContextMenu, 'mousedown', handleGlobalMousedownEvent);
|
|
18214
|
+
globalEvents$1.on($xeContextMenu, 'blur', handleGlobalBlurEvent);
|
|
18195
18215
|
});
|
|
18196
18216
|
onBeforeUnmount(() => {
|
|
18197
18217
|
const { leaveTime } = internalData;
|
|
18198
18218
|
if (leaveTime) {
|
|
18199
18219
|
clearTimeout(leaveTime);
|
|
18200
18220
|
}
|
|
18201
|
-
globalEvents.off($xeContextMenu, 'mousewheel');
|
|
18202
|
-
globalEvents.off($xeContextMenu, 'keydown');
|
|
18203
|
-
globalEvents.off($xeContextMenu, 'mousedown');
|
|
18204
|
-
globalEvents.off($xeContextMenu, 'blur');
|
|
18221
|
+
globalEvents$1.off($xeContextMenu, 'mousewheel');
|
|
18222
|
+
globalEvents$1.off($xeContextMenu, 'keydown');
|
|
18223
|
+
globalEvents$1.off($xeContextMenu, 'mousedown');
|
|
18224
|
+
globalEvents$1.off($xeContextMenu, 'blur');
|
|
18205
18225
|
XEUtils.assign(reactData, createReactData$j());
|
|
18206
18226
|
XEUtils.assign(internalData, createInternalData$i());
|
|
18207
18227
|
});
|
|
@@ -20525,7 +20545,7 @@ dynamicApp.use(VxeDatePanel);
|
|
|
20525
20545
|
VxeUI.component(VxeDatePanelComponent);
|
|
20526
20546
|
const DatePanel = VxeDatePanel;
|
|
20527
20547
|
|
|
20528
|
-
const { warnLog: warnLog$
|
|
20548
|
+
const { warnLog: warnLog$d, errLog: errLog$f } = createComponentLog('date-picker');
|
|
20529
20549
|
const defaultMaskPlaceholder = '_';
|
|
20530
20550
|
const maskedTypes = ['year', 'month', 'date', 'datetime', 'time'];
|
|
20531
20551
|
const inputMaskedKeys = ['y', 'M', 'd', 'H', 'm', 'n', 's'];
|
|
@@ -21266,8 +21286,8 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21266
21286
|
}
|
|
21267
21287
|
evnt.preventDefault();
|
|
21268
21288
|
const eKey = evnt.key;
|
|
21269
|
-
const isDeleleKey = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
21270
|
-
const isBackspaceKey = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.BACKSPACE);
|
|
21289
|
+
const isDeleleKey = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
21290
|
+
const isBackspaceKey = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.BACKSPACE);
|
|
21271
21291
|
const isNumKey = eKey >= '0' && eKey <= '9';
|
|
21272
21292
|
const numKey = isNumKey ? evnt.key : '';
|
|
21273
21293
|
if (!(isDeleleKey || isBackspaceKey || isNumKey)) {
|
|
@@ -21536,11 +21556,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21536
21556
|
const { type, editable, maskedConfig } = props;
|
|
21537
21557
|
const { visiblePanel } = reactData;
|
|
21538
21558
|
const maskedOpts = computeMaskedOpts.value;
|
|
21539
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
21540
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
21541
|
-
const isLtArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
21542
|
-
const isRtArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
21543
|
-
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
21559
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
21560
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
21561
|
+
const isLtArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
21562
|
+
const isRtArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
21563
|
+
const isEnter = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
21544
21564
|
if (editable) {
|
|
21545
21565
|
if (isEnter) {
|
|
21546
21566
|
const { inputLabel } = internalData;
|
|
@@ -21613,8 +21633,8 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21613
21633
|
const { isActivated, visiblePanel } = reactData;
|
|
21614
21634
|
const isDisabled = computeIsDisabled.value;
|
|
21615
21635
|
if (!isDisabled) {
|
|
21616
|
-
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
21617
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
21636
|
+
const isTab = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
21637
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
21618
21638
|
if (isTab) {
|
|
21619
21639
|
if (isActivated) {
|
|
21620
21640
|
reactData.isActivated = false;
|
|
@@ -22130,11 +22150,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22130
22150
|
});
|
|
22131
22151
|
updateModelValue();
|
|
22132
22152
|
nextTick(() => {
|
|
22133
|
-
globalEvents.on($xeDatePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
22134
|
-
globalEvents.on($xeDatePicker, 'keydown', handleGlobalKeydownEvent);
|
|
22135
|
-
globalEvents.on($xeDatePicker, 'blur', handleGlobalBlurEvent);
|
|
22136
|
-
globalEvents.on($xeDatePicker, 'resize', handleGlobalResizeEvent);
|
|
22137
|
-
globalEvents.on($xeDatePicker, 'scroll', handleGlobalScrollEvent);
|
|
22153
|
+
globalEvents$1.on($xeDatePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
22154
|
+
globalEvents$1.on($xeDatePicker, 'keydown', handleGlobalKeydownEvent);
|
|
22155
|
+
globalEvents$1.on($xeDatePicker, 'blur', handleGlobalBlurEvent);
|
|
22156
|
+
globalEvents$1.on($xeDatePicker, 'resize', handleGlobalResizeEvent);
|
|
22157
|
+
globalEvents$1.on($xeDatePicker, 'scroll', handleGlobalScrollEvent);
|
|
22138
22158
|
});
|
|
22139
22159
|
onMounted(() => {
|
|
22140
22160
|
const { type, multiple, maskedConfig } = props;
|
|
@@ -22143,16 +22163,16 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22143
22163
|
errLog$f('vxe.error.notSupportProp', ['multiple', 'masked-config.enabled=true', 'masked-config.enabled=false']);
|
|
22144
22164
|
}
|
|
22145
22165
|
if (!maskedTypes.includes(type)) {
|
|
22146
|
-
warnLog$
|
|
22166
|
+
warnLog$d('vxe.error.notSupportProp', ['masked-config.enabled=true', `type=${type}`, `type=${maskedTypes.join('|')}`]);
|
|
22147
22167
|
}
|
|
22148
22168
|
}
|
|
22149
22169
|
});
|
|
22150
22170
|
onUnmounted(() => {
|
|
22151
|
-
globalEvents.off($xeDatePicker, 'mousedown');
|
|
22152
|
-
globalEvents.off($xeDatePicker, 'keydown');
|
|
22153
|
-
globalEvents.off($xeDatePicker, 'blur');
|
|
22154
|
-
globalEvents.off($xeDatePicker, 'resize');
|
|
22155
|
-
globalEvents.off($xeDatePicker, 'scroll');
|
|
22171
|
+
globalEvents$1.off($xeDatePicker, 'mousedown');
|
|
22172
|
+
globalEvents$1.off($xeDatePicker, 'keydown');
|
|
22173
|
+
globalEvents$1.off($xeDatePicker, 'blur');
|
|
22174
|
+
globalEvents$1.off($xeDatePicker, 'resize');
|
|
22175
|
+
globalEvents$1.off($xeDatePicker, 'scroll');
|
|
22156
22176
|
XEUtils.assign(reactData, createReactData$i());
|
|
22157
22177
|
XEUtils.assign(internalData, createInternalData$h());
|
|
22158
22178
|
});
|
|
@@ -23084,8 +23104,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23084
23104
|
const { visiblePanel } = reactData;
|
|
23085
23105
|
const isDisabled = computeIsDisabled.value;
|
|
23086
23106
|
if (!isDisabled) {
|
|
23087
|
-
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
23088
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
23107
|
+
const isTab = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
23108
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
23089
23109
|
if (isTab) {
|
|
23090
23110
|
reactData.isActivated = false;
|
|
23091
23111
|
}
|
|
@@ -23654,11 +23674,11 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23654
23674
|
});
|
|
23655
23675
|
updateModelValue(true);
|
|
23656
23676
|
nextTick(() => {
|
|
23657
|
-
globalEvents.on($xeDateRangePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
23658
|
-
globalEvents.on($xeDateRangePicker, 'keydown', handleGlobalKeydownEvent);
|
|
23659
|
-
globalEvents.on($xeDateRangePicker, 'blur', handleGlobalBlurEvent);
|
|
23660
|
-
globalEvents.on($xeDateRangePicker, 'resize', handleGlobalResizeEvent);
|
|
23661
|
-
globalEvents.on($xeDateRangePicker, 'scroll', handleGlobalScrollEvent);
|
|
23677
|
+
globalEvents$1.on($xeDateRangePicker, 'mousedown', handleGlobalMousedownEvent);
|
|
23678
|
+
globalEvents$1.on($xeDateRangePicker, 'keydown', handleGlobalKeydownEvent);
|
|
23679
|
+
globalEvents$1.on($xeDateRangePicker, 'blur', handleGlobalBlurEvent);
|
|
23680
|
+
globalEvents$1.on($xeDateRangePicker, 'resize', handleGlobalResizeEvent);
|
|
23681
|
+
globalEvents$1.on($xeDateRangePicker, 'scroll', handleGlobalScrollEvent);
|
|
23662
23682
|
});
|
|
23663
23683
|
onDeactivated(() => {
|
|
23664
23684
|
checkValue();
|
|
@@ -23667,11 +23687,11 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23667
23687
|
checkValue();
|
|
23668
23688
|
});
|
|
23669
23689
|
onUnmounted(() => {
|
|
23670
|
-
globalEvents.off($xeDateRangePicker, 'mousedown');
|
|
23671
|
-
globalEvents.off($xeDateRangePicker, 'keydown');
|
|
23672
|
-
globalEvents.off($xeDateRangePicker, 'blur');
|
|
23673
|
-
globalEvents.off($xeDateRangePicker, 'resize');
|
|
23674
|
-
globalEvents.off($xeDateRangePicker, 'scroll');
|
|
23690
|
+
globalEvents$1.off($xeDateRangePicker, 'mousedown');
|
|
23691
|
+
globalEvents$1.off($xeDateRangePicker, 'keydown');
|
|
23692
|
+
globalEvents$1.off($xeDateRangePicker, 'blur');
|
|
23693
|
+
globalEvents$1.off($xeDateRangePicker, 'resize');
|
|
23694
|
+
globalEvents$1.off($xeDateRangePicker, 'scroll');
|
|
23675
23695
|
XEUtils.assign(reactData, createReactData$h());
|
|
23676
23696
|
XEUtils.assign(internalData, createInternalData$g());
|
|
23677
23697
|
});
|
|
@@ -24119,7 +24139,7 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
24119
24139
|
}
|
|
24120
24140
|
};
|
|
24121
24141
|
const handleGlobalKeydownEvent = (evnt) => {
|
|
24122
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
24142
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
24123
24143
|
if (isEsc) {
|
|
24124
24144
|
const lastDrawer = XEUtils.max(allActiveDrawers, (item) => item.reactData.drawerZIndex);
|
|
24125
24145
|
// 多个时,只关掉最上层的窗口
|
|
@@ -24441,11 +24461,11 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
24441
24461
|
recalculate();
|
|
24442
24462
|
});
|
|
24443
24463
|
if (props.escClosable) {
|
|
24444
|
-
globalEvents.on($xeDrawer, 'keydown', handleGlobalKeydownEvent);
|
|
24464
|
+
globalEvents$1.on($xeDrawer, 'keydown', handleGlobalKeydownEvent);
|
|
24445
24465
|
}
|
|
24446
24466
|
});
|
|
24447
24467
|
onUnmounted(() => {
|
|
24448
|
-
globalEvents.off($xeDrawer, 'keydown');
|
|
24468
|
+
globalEvents$1.off($xeDrawer, 'keydown');
|
|
24449
24469
|
removeActiveQueue();
|
|
24450
24470
|
});
|
|
24451
24471
|
provide('$xeDrawer', $xeDrawer);
|
|
@@ -25876,7 +25896,7 @@ renderer.mixin({
|
|
|
25876
25896
|
// 以上已废弃
|
|
25877
25897
|
});
|
|
25878
25898
|
|
|
25879
|
-
const { warnLog: warnLog$
|
|
25899
|
+
const { warnLog: warnLog$c, errLog: errLog$b } = createComponentLog('form');
|
|
25880
25900
|
class Rule {
|
|
25881
25901
|
constructor(rule) {
|
|
25882
25902
|
Object.assign(this, {
|
|
@@ -26437,7 +26457,7 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
26437
26457
|
customValid = validatorMethod(validParams);
|
|
26438
26458
|
}
|
|
26439
26459
|
else {
|
|
26440
|
-
warnLog$
|
|
26460
|
+
warnLog$c('vxe.error.notValidators', [validator]);
|
|
26441
26461
|
}
|
|
26442
26462
|
}
|
|
26443
26463
|
else {
|
|
@@ -26836,10 +26856,10 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
26836
26856
|
errLog$b('vxe.error.errConflicts', ['custom-layout', 'items']);
|
|
26837
26857
|
}
|
|
26838
26858
|
});
|
|
26839
|
-
globalEvents.on($xeForm, 'resize', handleGlobalResizeEvent);
|
|
26859
|
+
globalEvents$1.on($xeForm, 'resize', handleGlobalResizeEvent);
|
|
26840
26860
|
});
|
|
26841
26861
|
onUnmounted(() => {
|
|
26842
|
-
globalEvents.off($xeForm, 'resize');
|
|
26862
|
+
globalEvents$1.off($xeForm, 'resize');
|
|
26843
26863
|
XEUtils.assign(reactData, createReactData$g());
|
|
26844
26864
|
XEUtils.assign(internalData, createInternalData$f());
|
|
26845
26865
|
});
|
|
@@ -27312,13 +27332,13 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27312
27332
|
const { visiblePanel } = reactData;
|
|
27313
27333
|
const isDisabled = computeIsDisabled.value;
|
|
27314
27334
|
if (!isDisabled) {
|
|
27315
|
-
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
27316
|
-
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
27317
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
27318
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
27319
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
27320
|
-
const isDel = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
27321
|
-
const isSpacebar = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR);
|
|
27335
|
+
const isTab = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
27336
|
+
const isEnter = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
27337
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
27338
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
27339
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
27340
|
+
const isDel = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
27341
|
+
const isSpacebar = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR);
|
|
27322
27342
|
if (isTab) {
|
|
27323
27343
|
reactData.isActivated = false;
|
|
27324
27344
|
}
|
|
@@ -27643,19 +27663,19 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27643
27663
|
handleData();
|
|
27644
27664
|
});
|
|
27645
27665
|
onMounted(() => {
|
|
27646
|
-
globalEvents.on($xeIconPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
27647
|
-
globalEvents.on($xeIconPicker, 'keydown', handleGlobalKeydownEvent);
|
|
27648
|
-
globalEvents.on($xeIconPicker, 'blur', handleGlobalBlurEvent);
|
|
27649
|
-
globalEvents.on($xeIconPicker, 'resize', handleGlobalResizeEvent);
|
|
27650
|
-
globalEvents.on($xeIconPicker, 'scroll', handleGlobalScrollEvent);
|
|
27666
|
+
globalEvents$1.on($xeIconPicker, 'mousedown', handleGlobalMousedownEvent);
|
|
27667
|
+
globalEvents$1.on($xeIconPicker, 'keydown', handleGlobalKeydownEvent);
|
|
27668
|
+
globalEvents$1.on($xeIconPicker, 'blur', handleGlobalBlurEvent);
|
|
27669
|
+
globalEvents$1.on($xeIconPicker, 'resize', handleGlobalResizeEvent);
|
|
27670
|
+
globalEvents$1.on($xeIconPicker, 'scroll', handleGlobalScrollEvent);
|
|
27651
27671
|
});
|
|
27652
27672
|
onBeforeUnmount(() => {
|
|
27653
|
-
globalEvents.off($xeIconPicker, 'mousewheel');
|
|
27654
|
-
globalEvents.off($xeIconPicker, 'mousedown');
|
|
27655
|
-
globalEvents.off($xeIconPicker, 'keydown');
|
|
27656
|
-
globalEvents.off($xeIconPicker, 'blur');
|
|
27657
|
-
globalEvents.off($xeIconPicker, 'resize');
|
|
27658
|
-
globalEvents.off($xeIconPicker, 'scroll');
|
|
27673
|
+
globalEvents$1.off($xeIconPicker, 'mousewheel');
|
|
27674
|
+
globalEvents$1.off($xeIconPicker, 'mousedown');
|
|
27675
|
+
globalEvents$1.off($xeIconPicker, 'keydown');
|
|
27676
|
+
globalEvents$1.off($xeIconPicker, 'blur');
|
|
27677
|
+
globalEvents$1.off($xeIconPicker, 'resize');
|
|
27678
|
+
globalEvents$1.off($xeIconPicker, 'scroll');
|
|
27659
27679
|
XEUtils.assign(reactData, createReactData$f());
|
|
27660
27680
|
XEUtils.assign(internalData, createInternalData$e());
|
|
27661
27681
|
});
|
|
@@ -28077,12 +28097,12 @@ var VxeImagePreviewComponent = defineVxeComponent({
|
|
|
28077
28097
|
const handleGlobalKeydownEvent = (evnt) => {
|
|
28078
28098
|
const isControlKey = hasControlKey(evnt);
|
|
28079
28099
|
const hasShiftKey = evnt.shiftKey;
|
|
28080
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
28081
|
-
const isDownArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
28082
|
-
const isLeftArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
28083
|
-
const isRightArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
28084
|
-
const isR = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.R);
|
|
28085
|
-
const isP = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.P);
|
|
28100
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
28101
|
+
const isDownArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
28102
|
+
const isLeftArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
28103
|
+
const isRightArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
28104
|
+
const isR = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.R);
|
|
28105
|
+
const isP = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.P);
|
|
28086
28106
|
if (isUpArrow) {
|
|
28087
28107
|
evnt.preventDefault();
|
|
28088
28108
|
if (hasShiftKey) {
|
|
@@ -28289,7 +28309,7 @@ var VxeImagePreviewComponent = defineVxeComponent({
|
|
|
28289
28309
|
if (elem) {
|
|
28290
28310
|
elem.addEventListener('wheel', wheelEvent, { passive: false });
|
|
28291
28311
|
}
|
|
28292
|
-
globalEvents.on($xeImagePreview, 'keydown', handleGlobalKeydownEvent);
|
|
28312
|
+
globalEvents$1.on($xeImagePreview, 'keydown', handleGlobalKeydownEvent);
|
|
28293
28313
|
});
|
|
28294
28314
|
onBeforeUnmount(() => {
|
|
28295
28315
|
const elem = refElem.value;
|
|
@@ -28299,7 +28319,7 @@ var VxeImagePreviewComponent = defineVxeComponent({
|
|
|
28299
28319
|
}
|
|
28300
28320
|
});
|
|
28301
28321
|
onUnmounted(() => {
|
|
28302
|
-
globalEvents.off($xeImagePreview, 'keydown');
|
|
28322
|
+
globalEvents$1.off($xeImagePreview, 'keydown');
|
|
28303
28323
|
});
|
|
28304
28324
|
provide('$xeImagePreview', $xeImagePreview);
|
|
28305
28325
|
$xeImagePreview.renderVN = renderVN;
|
|
@@ -28836,7 +28856,7 @@ function getScrollFromDrag(pointerPosition, dragOffset, viewportSize, contentSiz
|
|
|
28836
28856
|
return (thumbOffset / maxThumbOffset) * maxScroll;
|
|
28837
28857
|
}
|
|
28838
28858
|
|
|
28839
|
-
const { getConfig: getConfig$2, createEvent, domUtils, globalResize, renderEmptyElement } = VxeUI;
|
|
28859
|
+
const { getConfig: getConfig$2, createEvent, domUtils, globalResize, globalEvents, renderEmptyElement } = VxeUI;
|
|
28840
28860
|
function createReactData$d() {
|
|
28841
28861
|
return {
|
|
28842
28862
|
yThumbHeight: 0,
|
|
@@ -29383,9 +29403,7 @@ var VxeScrollbarComponent = defineVxeComponent({
|
|
|
29383
29403
|
reFlag.value++;
|
|
29384
29404
|
});
|
|
29385
29405
|
watch(reFlag, () => {
|
|
29386
|
-
$xeScrollbar.recalculate()
|
|
29387
|
-
$xeScrollbar.recalculate();
|
|
29388
|
-
});
|
|
29406
|
+
$xeScrollbar.recalculate();
|
|
29389
29407
|
});
|
|
29390
29408
|
onMounted(() => {
|
|
29391
29409
|
const { autoResize } = props;
|
|
@@ -29406,12 +29424,16 @@ var VxeScrollbarComponent = defineVxeComponent({
|
|
|
29406
29424
|
internalData.resizeObserver = resizeObserver;
|
|
29407
29425
|
}
|
|
29408
29426
|
reFlag.value++;
|
|
29427
|
+
globalEvents.on($xeScrollbar, 'resize', () => {
|
|
29428
|
+
reFlag.value++;
|
|
29429
|
+
});
|
|
29409
29430
|
});
|
|
29410
29431
|
onBeforeUnmount(() => {
|
|
29411
29432
|
const { resizeObserver } = internalData;
|
|
29412
29433
|
if (resizeObserver) {
|
|
29413
29434
|
resizeObserver.disconnect();
|
|
29414
29435
|
}
|
|
29436
|
+
globalEvents.off($xeScrollbar, 'resize');
|
|
29415
29437
|
});
|
|
29416
29438
|
$xeScrollbar.renderVN = renderVN;
|
|
29417
29439
|
return $xeScrollbar;
|
|
@@ -30746,14 +30768,14 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
30746
30768
|
if (menuConfig && !VxeUIContextMenu) {
|
|
30747
30769
|
errLog$a('vxe.error.reqComp', ['vxe-context-menu']);
|
|
30748
30770
|
}
|
|
30749
|
-
globalEvents.on($xeMenu, 'resize', updateCollapseStyle);
|
|
30771
|
+
globalEvents$1.on($xeMenu, 'resize', updateCollapseStyle);
|
|
30750
30772
|
updateCollapseStyle();
|
|
30751
30773
|
nextTick(() => {
|
|
30752
30774
|
$xeMenu.scrollToActiveMenu();
|
|
30753
30775
|
});
|
|
30754
30776
|
});
|
|
30755
30777
|
onBeforeUnmount(() => {
|
|
30756
|
-
globalEvents.off($xeMenu, 'resize');
|
|
30778
|
+
globalEvents$1.off($xeMenu, 'resize');
|
|
30757
30779
|
XEUtils.assign(reactData, createReactData$b());
|
|
30758
30780
|
XEUtils.assign(internalData, createInternalData$a());
|
|
30759
30781
|
});
|
|
@@ -30780,7 +30802,7 @@ const Menu = VxeMenu;
|
|
|
30780
30802
|
|
|
30781
30803
|
const allActiveModals = [];
|
|
30782
30804
|
|
|
30783
|
-
const { warnLog: warnLog$
|
|
30805
|
+
const { warnLog: warnLog$b, errLog: errLog$9 } = createComponentLog('modal');
|
|
30784
30806
|
function createInternalData$9() {
|
|
30785
30807
|
return {
|
|
30786
30808
|
// msgTimeout: undefined,
|
|
@@ -31607,7 +31629,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31607
31629
|
}
|
|
31608
31630
|
};
|
|
31609
31631
|
const handleGlobalKeydownEvent = (evnt) => {
|
|
31610
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
31632
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
31611
31633
|
if (isEsc) {
|
|
31612
31634
|
const lastModal = XEUtils.max(allActiveModals.filter(item => item.reactData.zoomStatus !== 'minimize'), (item) => item.reactData.modalZindex);
|
|
31613
31635
|
// 多个时,只关掉最上层的窗口
|
|
@@ -32265,7 +32287,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
32265
32287
|
});
|
|
32266
32288
|
onMounted(() => {
|
|
32267
32289
|
if (props.type === 'modal' && props.showFooter && !(props.showConfirmButton || props.showCancelButton || slots.footer)) {
|
|
32268
|
-
warnLog$
|
|
32290
|
+
warnLog$b('vxe.modal.footPropErr');
|
|
32269
32291
|
}
|
|
32270
32292
|
reactData.initialized = !!props.preload;
|
|
32271
32293
|
nextTick(() => {
|
|
@@ -32278,13 +32300,13 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
32278
32300
|
recalculate();
|
|
32279
32301
|
});
|
|
32280
32302
|
if (props.escClosable) {
|
|
32281
|
-
globalEvents.on($xeModal, 'keydown', handleGlobalKeydownEvent);
|
|
32303
|
+
globalEvents$1.on($xeModal, 'keydown', handleGlobalKeydownEvent);
|
|
32282
32304
|
}
|
|
32283
|
-
globalEvents.on($xeModal, 'resize', handleGlobalResizeEvent);
|
|
32305
|
+
globalEvents$1.on($xeModal, 'resize', handleGlobalResizeEvent);
|
|
32284
32306
|
});
|
|
32285
32307
|
onUnmounted(() => {
|
|
32286
|
-
globalEvents.off($xeModal, 'keydown');
|
|
32287
|
-
globalEvents.off($xeModal, 'resize');
|
|
32308
|
+
globalEvents$1.off($xeModal, 'keydown');
|
|
32309
|
+
globalEvents$1.off($xeModal, 'resize');
|
|
32288
32310
|
removeMsgQueue();
|
|
32289
32311
|
removeActiveQueue();
|
|
32290
32312
|
removeBodyLockScroll();
|
|
@@ -32553,11 +32575,11 @@ var VxeNoticeBarComponent = defineVxeComponent({
|
|
|
32553
32575
|
updateAnimationStyle();
|
|
32554
32576
|
});
|
|
32555
32577
|
onMounted(() => {
|
|
32556
|
-
globalEvents.on($xeNoticeBar, 'resize', updateAnimationStyle);
|
|
32578
|
+
globalEvents$1.on($xeNoticeBar, 'resize', updateAnimationStyle);
|
|
32557
32579
|
updateAnimationStyle();
|
|
32558
32580
|
});
|
|
32559
32581
|
onBeforeUnmount(() => {
|
|
32560
|
-
globalEvents.off($xeNoticeBar, 'resize');
|
|
32582
|
+
globalEvents$1.off($xeNoticeBar, 'resize');
|
|
32561
32583
|
});
|
|
32562
32584
|
$xeNoticeBar.renderVN = renderVN;
|
|
32563
32585
|
return $xeNoticeBar;
|
|
@@ -33560,12 +33582,12 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33560
33582
|
const popupOpts = computePopupOpts.value;
|
|
33561
33583
|
const { trigger } = popupOpts;
|
|
33562
33584
|
if (!isDisabled) {
|
|
33563
|
-
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
33564
|
-
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
33565
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
33566
|
-
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
33567
|
-
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
33568
|
-
const isDel = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
33585
|
+
const isTab = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
33586
|
+
const isEnter = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
33587
|
+
const isEsc = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
33588
|
+
const isUpArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
33589
|
+
const isDwArrow = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
33590
|
+
const isDel = globalEvents$1.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
33569
33591
|
if (isTab) {
|
|
33570
33592
|
reactData.isActivated = false;
|
|
33571
33593
|
}
|
|
@@ -34443,18 +34465,18 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
34443
34465
|
loadData(options);
|
|
34444
34466
|
}
|
|
34445
34467
|
});
|
|
34446
|
-
globalEvents.on($xeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
34447
|
-
globalEvents.on($xeSelect, 'keydown', handleGlobalKeydownEvent);
|
|
34448
|
-
globalEvents.on($xeSelect, 'blur', handleGlobalBlurEvent);
|
|
34449
|
-
globalEvents.on($xeSelect, 'resize', handleGlobalResizeEvent);
|
|
34450
|
-
globalEvents.on($xeSelect, 'scroll', handleGlobalScrollEvent);
|
|
34468
|
+
globalEvents$1.on($xeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
34469
|
+
globalEvents$1.on($xeSelect, 'keydown', handleGlobalKeydownEvent);
|
|
34470
|
+
globalEvents$1.on($xeSelect, 'blur', handleGlobalBlurEvent);
|
|
34471
|
+
globalEvents$1.on($xeSelect, 'resize', handleGlobalResizeEvent);
|
|
34472
|
+
globalEvents$1.on($xeSelect, 'scroll', handleGlobalScrollEvent);
|
|
34451
34473
|
});
|
|
34452
34474
|
onUnmounted(() => {
|
|
34453
|
-
globalEvents.off($xeSelect, 'mousedown');
|
|
34454
|
-
globalEvents.off($xeSelect, 'keydown');
|
|
34455
|
-
globalEvents.off($xeSelect, 'blur');
|
|
34456
|
-
globalEvents.off($xeSelect, 'resize');
|
|
34457
|
-
globalEvents.off($xeSelect, 'scroll');
|
|
34475
|
+
globalEvents$1.off($xeSelect, 'mousedown');
|
|
34476
|
+
globalEvents$1.off($xeSelect, 'keydown');
|
|
34477
|
+
globalEvents$1.off($xeSelect, 'blur');
|
|
34478
|
+
globalEvents$1.off($xeSelect, 'resize');
|
|
34479
|
+
globalEvents$1.off($xeSelect, 'scroll');
|
|
34458
34480
|
XEUtils.assign(reactData, createReactData$9());
|
|
34459
34481
|
XEUtils.assign(internalData, createInternalData$8());
|
|
34460
34482
|
});
|
|
@@ -34476,7 +34498,7 @@ dynamicApp.use(VxeSelect);
|
|
|
34476
34498
|
VxeUI.component(VxeSelectComponent);
|
|
34477
34499
|
const Select = VxeSelect;
|
|
34478
34500
|
|
|
34479
|
-
const { warnLog: warnLog$
|
|
34501
|
+
const { warnLog: warnLog$a, errLog: errLog$7 } = createComponentLog('pager');
|
|
34480
34502
|
var VxePagerComponent = defineVxeComponent({
|
|
34481
34503
|
name: 'VxePager',
|
|
34482
34504
|
props: {
|
|
@@ -34687,14 +34709,14 @@ var VxePagerComponent = defineVxeComponent({
|
|
|
34687
34709
|
};
|
|
34688
34710
|
const jumpKeydownEvent = (params) => {
|
|
34689
34711
|
const { $event } = params;
|
|
34690
|
-
if (globalEvents.hasKey($event, GLOBAL_EVENT_KEYS.ENTER)) {
|
|
34712
|
+
if (globalEvents$1.hasKey($event, GLOBAL_EVENT_KEYS.ENTER)) {
|
|
34691
34713
|
triggerJumpEvent(params);
|
|
34692
34714
|
}
|
|
34693
|
-
else if (globalEvents.hasKey($event, GLOBAL_EVENT_KEYS.ARROW_UP)) {
|
|
34715
|
+
else if (globalEvents$1.hasKey($event, GLOBAL_EVENT_KEYS.ARROW_UP)) {
|
|
34694
34716
|
$event.preventDefault();
|
|
34695
34717
|
handleNextPage($event);
|
|
34696
34718
|
}
|
|
34697
|
-
else if (globalEvents.hasKey($event, GLOBAL_EVENT_KEYS.ARROW_DOWN)) {
|
|
34719
|
+
else if (globalEvents$1.hasKey($event, GLOBAL_EVENT_KEYS.ARROW_DOWN)) {
|
|
34698
34720
|
$event.preventDefault();
|
|
34699
34721
|
handlePrevPage($event);
|
|
34700
34722
|
}
|
|
@@ -35080,7 +35102,7 @@ var VxePagerComponent = defineVxeComponent({
|
|
|
35080
35102
|
* @deprecated
|
|
35081
35103
|
*/
|
|
35082
35104
|
jumpPage(currentPage) {
|
|
35083
|
-
warnLog$
|
|
35105
|
+
warnLog$a('vxe.error.delFunc', ['jumpPage', 'setCurrentPage']);
|
|
35084
35106
|
return $xePager.setCurrentPage(currentPage);
|
|
35085
35107
|
}
|
|
35086
35108
|
};
|
|
@@ -35635,7 +35657,7 @@ dynamicApp.use(VxePasswordInput);
|
|
|
35635
35657
|
VxeUI.component(VxePasswordInputComponent);
|
|
35636
35658
|
const PasswordInput = VxePasswordInput;
|
|
35637
35659
|
|
|
35638
|
-
const { warnLog: warnLog$
|
|
35660
|
+
const { warnLog: warnLog$9, errLog: errLog$6 } = createComponentLog('print');
|
|
35639
35661
|
// 打印
|
|
35640
35662
|
let printFrame;
|
|
35641
35663
|
// 默认导出或打印的 HTML 样式
|
|
@@ -35775,7 +35797,7 @@ function handlePrint(opts, printHtml = '') {
|
|
|
35775
35797
|
if (styleUrls && styleUrls.length) {
|
|
35776
35798
|
styleUrls.forEach(url => {
|
|
35777
35799
|
if (!/.css$/.test(url)) {
|
|
35778
|
-
warnLog$
|
|
35800
|
+
warnLog$9('vxe.error.errProp', [url, `${url}.css`]);
|
|
35779
35801
|
}
|
|
35780
35802
|
});
|
|
35781
35803
|
}
|
|
@@ -35789,7 +35811,7 @@ function handlePrint(opts, printHtml = '') {
|
|
|
35789
35811
|
}
|
|
35790
35812
|
}
|
|
35791
35813
|
else {
|
|
35792
|
-
warnLog$
|
|
35814
|
+
warnLog$9('vxe.error.returnErr', ['beforePrintMethod', 'boolean', bpRest]);
|
|
35793
35815
|
errLog$6('vxe.error.notSupportReturn', [bpRest, 'beforePrintMethod', 'printMethod']);
|
|
35794
35816
|
printHtml = bpRest || '';
|
|
35795
35817
|
}
|
|
@@ -36634,16 +36656,16 @@ var VxePulldownComponent = defineVxeComponent({
|
|
|
36634
36656
|
if (props.modelValue) {
|
|
36635
36657
|
showPanel();
|
|
36636
36658
|
}
|
|
36637
|
-
globalEvents.on($xePulldown, 'mousedown', handleGlobalMousedownEvent);
|
|
36638
|
-
globalEvents.on($xePulldown, 'blur', handleGlobalBlurEvent);
|
|
36639
|
-
globalEvents.on($xePulldown, 'resize', handleGlobalResizeEvent);
|
|
36640
|
-
globalEvents.on($xePulldown, 'scroll', handleGlobalScrollEvent);
|
|
36659
|
+
globalEvents$1.on($xePulldown, 'mousedown', handleGlobalMousedownEvent);
|
|
36660
|
+
globalEvents$1.on($xePulldown, 'blur', handleGlobalBlurEvent);
|
|
36661
|
+
globalEvents$1.on($xePulldown, 'resize', handleGlobalResizeEvent);
|
|
36662
|
+
globalEvents$1.on($xePulldown, 'scroll', handleGlobalScrollEvent);
|
|
36641
36663
|
});
|
|
36642
36664
|
onUnmounted(() => {
|
|
36643
|
-
globalEvents.off($xePulldown, 'mousedown');
|
|
36644
|
-
globalEvents.off($xePulldown, 'blur');
|
|
36645
|
-
globalEvents.off($xePulldown, 'resize');
|
|
36646
|
-
globalEvents.off($xePulldown, 'scroll');
|
|
36665
|
+
globalEvents$1.off($xePulldown, 'mousedown');
|
|
36666
|
+
globalEvents$1.off($xePulldown, 'blur');
|
|
36667
|
+
globalEvents$1.off($xePulldown, 'resize');
|
|
36668
|
+
globalEvents$1.off($xePulldown, 'scroll');
|
|
36647
36669
|
});
|
|
36648
36670
|
$xePulldown.renderVN = renderVN;
|
|
36649
36671
|
return $xePulldown;
|
|
@@ -36662,7 +36684,7 @@ dynamicApp.use(VxePulldown);
|
|
|
36662
36684
|
VxeUI.component(VxePulldownComponent);
|
|
36663
36685
|
const Pulldown = VxePulldown;
|
|
36664
36686
|
|
|
36665
|
-
const { warnLog: warnLog$
|
|
36687
|
+
const { warnLog: warnLog$8 } = createComponentLog('radio');
|
|
36666
36688
|
var VxeRadioComponent = defineVxeComponent({
|
|
36667
36689
|
name: 'VxeRadio',
|
|
36668
36690
|
props: {
|
|
@@ -36836,7 +36858,7 @@ var VxeRadioComponent = defineVxeComponent({
|
|
|
36836
36858
|
};
|
|
36837
36859
|
onMounted(() => {
|
|
36838
36860
|
if (props.label !== null) {
|
|
36839
|
-
warnLog$
|
|
36861
|
+
warnLog$8('vxe.error.delProp', ['label', 'checked-value']);
|
|
36840
36862
|
}
|
|
36841
36863
|
});
|
|
36842
36864
|
$xeRadio.renderVN = renderVN;
|
|
@@ -36856,7 +36878,7 @@ dynamicApp.use(VxeRadio);
|
|
|
36856
36878
|
VxeUI.component(VxeRadioComponent);
|
|
36857
36879
|
const Radio = VxeRadio;
|
|
36858
36880
|
|
|
36859
|
-
const { warnLog: warnLog$
|
|
36881
|
+
const { warnLog: warnLog$7 } = createComponentLog('radio-button');
|
|
36860
36882
|
var VxeRadioButtonComponent = defineVxeComponent({
|
|
36861
36883
|
name: 'VxeRadioButton',
|
|
36862
36884
|
props: {
|
|
@@ -37058,7 +37080,7 @@ var VxeRadioButtonComponent = defineVxeComponent({
|
|
|
37058
37080
|
};
|
|
37059
37081
|
onMounted(() => {
|
|
37060
37082
|
if (props.label !== null) {
|
|
37061
|
-
warnLog$
|
|
37083
|
+
warnLog$7('vxe.error.delProp', ['label', 'checked-value']);
|
|
37062
37084
|
}
|
|
37063
37085
|
});
|
|
37064
37086
|
$xeRadioButton.renderVN = renderVN;
|
|
@@ -37559,9 +37581,14 @@ dynamicApp.use(VxeResult);
|
|
|
37559
37581
|
VxeUI.component(VxeResultComponent);
|
|
37560
37582
|
const Result = VxeResult;
|
|
37561
37583
|
|
|
37584
|
+
const { warnLog: warnLog$6 } = createComponentLog('row');
|
|
37562
37585
|
var VxeRowComponent = defineVxeComponent({
|
|
37563
37586
|
name: 'VxeRow',
|
|
37564
37587
|
props: {
|
|
37588
|
+
gridLayout: {
|
|
37589
|
+
type: Boolean,
|
|
37590
|
+
default: () => getConfig$4().row.gridLayout
|
|
37591
|
+
},
|
|
37565
37592
|
gutter: [Number, String, Array],
|
|
37566
37593
|
wrap: {
|
|
37567
37594
|
type: Boolean,
|
|
@@ -37586,23 +37613,29 @@ var VxeRowComponent = defineVxeComponent({
|
|
|
37586
37613
|
refElem
|
|
37587
37614
|
};
|
|
37588
37615
|
const computeRowStyle = computed(() => {
|
|
37589
|
-
const { gutter, vertical } = props;
|
|
37616
|
+
const { gridLayout, gutter, vertical } = props;
|
|
37590
37617
|
const style = {};
|
|
37591
37618
|
if (gutter) {
|
|
37592
37619
|
let [lrGutter, tbGutter] = XEUtils.isArray(gutter) ? gutter : [gutter];
|
|
37593
|
-
if (
|
|
37594
|
-
|
|
37595
|
-
|
|
37596
|
-
}
|
|
37597
|
-
if (lrGutter) {
|
|
37598
|
-
const offsetSize = XEUtils.isNumber(lrGutter) ? toCssUnit(-(lrGutter / 2)) : `calc(${toCssUnit(lrGutter)} / 2 * -1)`;
|
|
37599
|
-
style.marginLeft = offsetSize;
|
|
37600
|
-
style.marginRight = offsetSize;
|
|
37620
|
+
if (gridLayout) {
|
|
37621
|
+
style.columnGap = toCssUnit(lrGutter);
|
|
37622
|
+
style.rowGap = toCssUnit(tbGutter || lrGutter);
|
|
37601
37623
|
}
|
|
37602
|
-
|
|
37603
|
-
|
|
37604
|
-
|
|
37605
|
-
|
|
37624
|
+
else {
|
|
37625
|
+
if (vertical) {
|
|
37626
|
+
tbGutter = lrGutter;
|
|
37627
|
+
lrGutter = '';
|
|
37628
|
+
}
|
|
37629
|
+
if (lrGutter) {
|
|
37630
|
+
const offsetSize = XEUtils.isNumber(lrGutter) ? toCssUnit(-(lrGutter / 2)) : `calc(${toCssUnit(lrGutter)} / 2 * -1)`;
|
|
37631
|
+
style.marginLeft = offsetSize;
|
|
37632
|
+
style.marginRight = offsetSize;
|
|
37633
|
+
}
|
|
37634
|
+
if (tbGutter) {
|
|
37635
|
+
const offsetSize = XEUtils.isNumber(tbGutter) ? toCssUnit(-(tbGutter / 2)) : `calc(${toCssUnit(tbGutter)} / 2 * -1)`;
|
|
37636
|
+
style.marginTop = offsetSize;
|
|
37637
|
+
style.marginBottom = offsetSize;
|
|
37638
|
+
}
|
|
37606
37639
|
}
|
|
37607
37640
|
}
|
|
37608
37641
|
return style;
|
|
@@ -37628,12 +37661,12 @@ var VxeRowComponent = defineVxeComponent({
|
|
|
37628
37661
|
const rowPrivateMethods = {};
|
|
37629
37662
|
Object.assign($xeRow, rowMethods, rowPrivateMethods);
|
|
37630
37663
|
const renderVN = () => {
|
|
37631
|
-
const { vertical, wrap } = props;
|
|
37664
|
+
const { gridLayout, vertical, wrap } = props;
|
|
37632
37665
|
const rowStyle = computeRowStyle.value;
|
|
37633
37666
|
const defaultSlot = slots.default;
|
|
37634
37667
|
return h('div', {
|
|
37635
37668
|
ref: refElem,
|
|
37636
|
-
class: ['vxe-row', {
|
|
37669
|
+
class: ['vxe-row', gridLayout ? 'grid--layout' : 'def--layout', {
|
|
37637
37670
|
'is--vertical': vertical,
|
|
37638
37671
|
'is--wrap': wrap
|
|
37639
37672
|
}],
|
|
@@ -37641,6 +37674,12 @@ var VxeRowComponent = defineVxeComponent({
|
|
|
37641
37674
|
onClick: clickEvent
|
|
37642
37675
|
}, defaultSlot ? defaultSlot({}) : []);
|
|
37643
37676
|
};
|
|
37677
|
+
onMounted(() => {
|
|
37678
|
+
const { gridLayout, wrap } = props;
|
|
37679
|
+
if (gridLayout && !wrap) {
|
|
37680
|
+
warnLog$6('vxe.error.notSupportProp', ['grid-layout', 'wrap=false', 'wrap=true']);
|
|
37681
|
+
}
|
|
37682
|
+
});
|
|
37644
37683
|
provide('$xeRow', $xeRow);
|
|
37645
37684
|
$xeRow.renderVN = renderVN;
|
|
37646
37685
|
return $xeRow;
|
|
@@ -38831,13 +38870,13 @@ var VxeSplitComponent = defineVxeComponent({
|
|
|
38831
38870
|
if (actionOpts.direction) {
|
|
38832
38871
|
errLog$5('vxe.error.delProp', ['action-config.direction', 'action-config.showPrevButton | action-config.showNextButton']);
|
|
38833
38872
|
}
|
|
38834
|
-
globalEvents.on($xeSplitter, 'resize', handleGlobalResizeEvent);
|
|
38873
|
+
globalEvents$1.on($xeSplitter, 'resize', handleGlobalResizeEvent);
|
|
38835
38874
|
});
|
|
38836
38875
|
onUnmounted(() => {
|
|
38837
38876
|
if (resizeObserver) {
|
|
38838
38877
|
resizeObserver.disconnect();
|
|
38839
38878
|
}
|
|
38840
|
-
globalEvents.off($xeSplitter, 'resize');
|
|
38879
|
+
globalEvents$1.off($xeSplitter, 'resize');
|
|
38841
38880
|
});
|
|
38842
38881
|
onActivated(() => {
|
|
38843
38882
|
recalculate();
|
|
@@ -40757,16 +40796,16 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
40757
40796
|
reactData.initialized = true;
|
|
40758
40797
|
}
|
|
40759
40798
|
}
|
|
40760
|
-
globalEvents.on($xeTableSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
40761
|
-
globalEvents.on($xeTableSelect, 'blur', handleGlobalBlurEvent);
|
|
40762
|
-
globalEvents.on($xeTableSelect, 'resize', handleGlobalResizeEvent);
|
|
40763
|
-
globalEvents.on($xeTableSelect, 'scroll', handleGlobalScrollEvent);
|
|
40799
|
+
globalEvents$1.on($xeTableSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
40800
|
+
globalEvents$1.on($xeTableSelect, 'blur', handleGlobalBlurEvent);
|
|
40801
|
+
globalEvents$1.on($xeTableSelect, 'resize', handleGlobalResizeEvent);
|
|
40802
|
+
globalEvents$1.on($xeTableSelect, 'scroll', handleGlobalScrollEvent);
|
|
40764
40803
|
});
|
|
40765
40804
|
onUnmounted(() => {
|
|
40766
|
-
globalEvents.off($xeTableSelect, 'mousedown');
|
|
40767
|
-
globalEvents.off($xeTableSelect, 'blur');
|
|
40768
|
-
globalEvents.off($xeTableSelect, 'resize');
|
|
40769
|
-
globalEvents.off($xeTableSelect, 'scroll');
|
|
40805
|
+
globalEvents$1.off($xeTableSelect, 'mousedown');
|
|
40806
|
+
globalEvents$1.off($xeTableSelect, 'blur');
|
|
40807
|
+
globalEvents$1.off($xeTableSelect, 'resize');
|
|
40808
|
+
globalEvents$1.off($xeTableSelect, 'scroll');
|
|
40770
40809
|
XEUtils.assign(reactData, createReactData$5());
|
|
40771
40810
|
XEUtils.assign(internalData, createInternalData$5());
|
|
40772
40811
|
});
|
|
@@ -41717,10 +41756,10 @@ var VxeTabsComponent = defineVxeComponent({
|
|
|
41717
41756
|
});
|
|
41718
41757
|
onMounted(() => {
|
|
41719
41758
|
updateTabStyle();
|
|
41720
|
-
globalEvents.on($xeTabs, 'resize', updateTabStyle);
|
|
41759
|
+
globalEvents$1.on($xeTabs, 'resize', updateTabStyle);
|
|
41721
41760
|
});
|
|
41722
41761
|
onUnmounted(() => {
|
|
41723
|
-
globalEvents.off($xeTabs, 'resize');
|
|
41762
|
+
globalEvents$1.off($xeTabs, 'resize');
|
|
41724
41763
|
});
|
|
41725
41764
|
provide('$xeTabs', $xeTabs);
|
|
41726
41765
|
addInitName(props.modelValue, null);
|
|
@@ -46440,14 +46479,14 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
46440
46479
|
internalData.resizeObserver = resizeObserver;
|
|
46441
46480
|
}
|
|
46442
46481
|
recalculate();
|
|
46443
|
-
globalEvents.on($xeTree, 'resize', handleGlobalResizeEvent);
|
|
46482
|
+
globalEvents$1.on($xeTree, 'resize', handleGlobalResizeEvent);
|
|
46444
46483
|
});
|
|
46445
46484
|
onBeforeUnmount(() => {
|
|
46446
46485
|
const { resizeObserver } = internalData;
|
|
46447
46486
|
if (resizeObserver) {
|
|
46448
46487
|
resizeObserver.disconnect();
|
|
46449
46488
|
}
|
|
46450
|
-
globalEvents.off($xeTree, 'resize');
|
|
46489
|
+
globalEvents$1.off($xeTree, 'resize');
|
|
46451
46490
|
XEUtils.assign(reactData, createReactData$2());
|
|
46452
46491
|
XEUtils.assign(internalData, createInternalData$2());
|
|
46453
46492
|
});
|
|
@@ -47439,16 +47478,16 @@ var VxeTreeSelectComponent = defineVxeComponent({
|
|
|
47439
47478
|
if (XEUtils.isBoolean(props.autoClose)) {
|
|
47440
47479
|
warnLog$1('vxe.error.delProp', ['auto-close', 'checked-closable | clear-closable']);
|
|
47441
47480
|
}
|
|
47442
|
-
globalEvents.on($xeTreeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
47443
|
-
globalEvents.on($xeTreeSelect, 'blur', handleGlobalBlurEvent);
|
|
47444
|
-
globalEvents.on($xeTreeSelect, 'resize', handleGlobalResizeEvent);
|
|
47445
|
-
globalEvents.on($xeTreeSelect, 'scroll', handleGlobalScrollEvent);
|
|
47481
|
+
globalEvents$1.on($xeTreeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
47482
|
+
globalEvents$1.on($xeTreeSelect, 'blur', handleGlobalBlurEvent);
|
|
47483
|
+
globalEvents$1.on($xeTreeSelect, 'resize', handleGlobalResizeEvent);
|
|
47484
|
+
globalEvents$1.on($xeTreeSelect, 'scroll', handleGlobalScrollEvent);
|
|
47446
47485
|
});
|
|
47447
47486
|
onBeforeUnmount(() => {
|
|
47448
|
-
globalEvents.off($xeTreeSelect, 'mousedown');
|
|
47449
|
-
globalEvents.off($xeTreeSelect, 'blur');
|
|
47450
|
-
globalEvents.off($xeTreeSelect, 'resize');
|
|
47451
|
-
globalEvents.off($xeTreeSelect, 'scroll');
|
|
47487
|
+
globalEvents$1.off($xeTreeSelect, 'mousedown');
|
|
47488
|
+
globalEvents$1.off($xeTreeSelect, 'blur');
|
|
47489
|
+
globalEvents$1.off($xeTreeSelect, 'resize');
|
|
47490
|
+
globalEvents$1.off($xeTreeSelect, 'scroll');
|
|
47452
47491
|
XEUtils.assign(reactData, createReactData$1());
|
|
47453
47492
|
XEUtils.assign(internalData, createInternalData$1());
|
|
47454
47493
|
});
|
|
@@ -49406,15 +49445,15 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
49406
49445
|
if (props.dragSort) {
|
|
49407
49446
|
initTpImg();
|
|
49408
49447
|
}
|
|
49409
|
-
globalEvents.on($xeUpload, 'paste', handleGlobalPasteEvent);
|
|
49410
|
-
globalEvents.on($xeUpload, 'click', handleGlobalClickEvent);
|
|
49411
|
-
globalEvents.on($xeUpload, 'blur', handleGlobalBlurEvent);
|
|
49448
|
+
globalEvents$1.on($xeUpload, 'paste', handleGlobalPasteEvent);
|
|
49449
|
+
globalEvents$1.on($xeUpload, 'click', handleGlobalClickEvent);
|
|
49450
|
+
globalEvents$1.on($xeUpload, 'blur', handleGlobalBlurEvent);
|
|
49412
49451
|
});
|
|
49413
49452
|
onBeforeUnmount(() => {
|
|
49414
49453
|
reactData.isDragUploadStatus = false;
|
|
49415
|
-
globalEvents.off($xeUpload, 'paste');
|
|
49416
|
-
globalEvents.off($xeUpload, 'click');
|
|
49417
|
-
globalEvents.off($xeUpload, 'blur');
|
|
49454
|
+
globalEvents$1.off($xeUpload, 'paste');
|
|
49455
|
+
globalEvents$1.off($xeUpload, 'click');
|
|
49456
|
+
globalEvents$1.off($xeUpload, 'blur');
|
|
49418
49457
|
XEUtils.assign(reactData, createReactData());
|
|
49419
49458
|
XEUtils.assign(internalData, createInternalData());
|
|
49420
49459
|
});
|
|
@@ -49702,12 +49741,12 @@ var VxeWatermarkComponent = defineVxeComponent({
|
|
|
49702
49741
|
});
|
|
49703
49742
|
onMounted(() => {
|
|
49704
49743
|
updateMarkStyle();
|
|
49705
|
-
globalEvents.on($xeWatermark, 'resize', XEUtils.throttle(() => {
|
|
49744
|
+
globalEvents$1.on($xeWatermark, 'resize', XEUtils.throttle(() => {
|
|
49706
49745
|
updateMarkStyle();
|
|
49707
49746
|
}, 300, { trailing: true, leading: true }));
|
|
49708
49747
|
});
|
|
49709
49748
|
onUnmounted(() => {
|
|
49710
|
-
globalEvents.off($xeWatermark, 'resize');
|
|
49749
|
+
globalEvents$1.off($xeWatermark, 'resize');
|
|
49711
49750
|
});
|
|
49712
49751
|
$xeWatermark.renderVN = renderVN;
|
|
49713
49752
|
return $xeWatermark;
|