vxe-pc-ui 4.11.43 → 4.11.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/button/src/button.js +18 -6
- package/es/date-picker/src/date-picker.js +17 -5
- package/es/date-range-picker/src/date-range-picker.js +17 -5
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +36 -74
- package/es/pulldown/src/pulldown.js +26 -6
- package/es/select/src/select.js +55 -16
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +17 -7
- package/es/tree-select/src/tree-select.js +21 -7
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/button/src/button.js +18 -9
- package/lib/button/src/button.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +19 -7
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +19 -7
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +39 -80
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +220 -157
- package/lib/index.umd.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +26 -9
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/select/src/select.js +57 -21
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +18 -12
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +22 -10
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.ts +19 -6
- package/packages/date-picker/src/date-picker.ts +18 -5
- package/packages/date-range-picker/src/date-range-picker.ts +18 -5
- package/packages/icon-picker/src/icon-picker.ts +37 -71
- package/packages/pulldown/src/pulldown.ts +27 -6
- package/packages/select/src/select.ts +54 -16
- package/packages/table-select/src/table-select.ts +17 -7
- package/packages/tree-select/src/tree-select.ts +21 -7
- package/types/components/button.d.ts +18 -0
- package/types/components/date-picker.d.ts +8 -0
- package/types/components/date-range-picker.d.ts +8 -0
- package/types/components/icon-picker.d.ts +24 -0
- package/types/components/pulldown.d.ts +28 -0
- package/types/components/select.d.ts +70 -0
- package/types/components/table-select.d.ts +16 -1
- package/types/components/table.d.ts +2 -2
- package/types/components/tree-select.d.ts +20 -2
- package/types/components/upload.d.ts +1 -1
- /package/es/icon/{iconfont.1768192734102.ttf → iconfont.1768381374840.ttf} +0 -0
- /package/es/icon/{iconfont.1768192734102.woff → iconfont.1768381374840.woff} +0 -0
- /package/es/icon/{iconfont.1768192734102.woff2 → iconfont.1768381374840.woff2} +0 -0
- /package/es/{iconfont.1768192734102.ttf → iconfont.1768381374840.ttf} +0 -0
- /package/es/{iconfont.1768192734102.woff → iconfont.1768381374840.woff} +0 -0
- /package/es/{iconfont.1768192734102.woff2 → iconfont.1768381374840.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1768192734102.ttf → iconfont.1768381374840.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1768192734102.woff → iconfont.1768381374840.woff} +0 -0
- /package/lib/icon/style/{iconfont.1768192734102.woff2 → iconfont.1768381374840.woff2} +0 -0
- /package/lib/{iconfont.1768192734102.ttf → iconfont.1768381374840.ttf} +0 -0
- /package/lib/{iconfont.1768192734102.woff → iconfont.1768381374840.woff} +0 -0
- /package/lib/{iconfont.1768192734102.woff2 → iconfont.1768381374840.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3661,14 +3661,14 @@ function checkDynamic() {
|
|
|
3661
3661
|
}
|
|
3662
3662
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3663
3663
|
|
|
3664
|
-
const log_version = `ui v${"4.11.
|
|
3664
|
+
const log_version = `ui v${"4.11.45"}`;
|
|
3665
3665
|
const warnLog = log.create('warn', log_version);
|
|
3666
3666
|
const errLog = log.create('error', log_version);
|
|
3667
3667
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3668
3668
|
|
|
3669
3669
|
|
|
3670
3670
|
|
|
3671
|
-
const ui_version = "4.11.
|
|
3671
|
+
const ui_version = "4.11.45";
|
|
3672
3672
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3673
3673
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3674
3674
|
function config(options) {
|
|
@@ -6806,6 +6806,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
6806
6806
|
type: Boolean,
|
|
6807
6807
|
default: () => getConfig().button.destroyOnClose
|
|
6808
6808
|
},
|
|
6809
|
+
popupConfig: Object,
|
|
6809
6810
|
/**
|
|
6810
6811
|
* 是否将弹框容器插入于 body 内
|
|
6811
6812
|
*/
|
|
@@ -6865,6 +6866,10 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
6865
6866
|
const {
|
|
6866
6867
|
transfer
|
|
6867
6868
|
} = props;
|
|
6869
|
+
const popupOpts = computePopupOpts.value;
|
|
6870
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(popupOpts.transfer)) {
|
|
6871
|
+
return popupOpts.transfer;
|
|
6872
|
+
}
|
|
6868
6873
|
if (transfer === null) {
|
|
6869
6874
|
const globalTransfer = getConfig().button.transfer;
|
|
6870
6875
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
|
|
@@ -6964,6 +6969,9 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
6964
6969
|
}
|
|
6965
6970
|
return [];
|
|
6966
6971
|
});
|
|
6972
|
+
const computePopupOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
6973
|
+
return Object.assign({}, getConfig().button.popupConfig, props.popupConfig);
|
|
6974
|
+
});
|
|
6967
6975
|
const computePrefixTipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
6968
6976
|
return Object.assign({}, getConfig().button.prefixTooltip, props.prefixTooltip);
|
|
6969
6977
|
});
|
|
@@ -6971,11 +6979,10 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
6971
6979
|
return Object.assign({}, getConfig().button.suffixTooltip, props.suffixTooltip);
|
|
6972
6980
|
});
|
|
6973
6981
|
const updateZindex = () => {
|
|
6974
|
-
const
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
reactData.panelIndex = zIndex;
|
|
6982
|
+
const popupOpts = computePopupOpts.value;
|
|
6983
|
+
const customZIndex = popupOpts.zIndex || props.zIndex;
|
|
6984
|
+
if (customZIndex) {
|
|
6985
|
+
reactData.panelIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(customZIndex);
|
|
6979
6986
|
} else if (reactData.panelIndex < getLastZIndex()) {
|
|
6980
6987
|
reactData.panelIndex = nextZIndex();
|
|
6981
6988
|
}
|
|
@@ -6990,9 +6997,10 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
6990
6997
|
const targetElem = refButton.value;
|
|
6991
6998
|
const panelElem = refBtnPanel.value;
|
|
6992
6999
|
const btnTransfer = computeBtnTransfer.value;
|
|
7000
|
+
const popupOpts = computePopupOpts.value;
|
|
6993
7001
|
const handleStyle = () => {
|
|
6994
7002
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
6995
|
-
placement,
|
|
7003
|
+
placement: popupOpts.placement || placement,
|
|
6996
7004
|
teleportTo: btnTransfer
|
|
6997
7005
|
});
|
|
6998
7006
|
const panelStyle = Object.assign(ppObj.style, {
|
|
@@ -7300,7 +7308,6 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
7300
7308
|
const renderVN = () => {
|
|
7301
7309
|
const {
|
|
7302
7310
|
className,
|
|
7303
|
-
popupClassName,
|
|
7304
7311
|
trigger,
|
|
7305
7312
|
title,
|
|
7306
7313
|
routerLink,
|
|
@@ -7326,8 +7333,10 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
7326
7333
|
const btnDisabled = computeBtnDisabled.value;
|
|
7327
7334
|
const permissionInfo = computePermissionInfo.value;
|
|
7328
7335
|
const downBtnList = computeDownBtnList.value;
|
|
7336
|
+
const popupOpts = computePopupOpts.value;
|
|
7329
7337
|
const vSize = computeSize.value;
|
|
7330
7338
|
const dropdownsSlot = slots.dropdowns;
|
|
7339
|
+
const ppClassName = popupOpts.className || props.popupClassName;
|
|
7331
7340
|
if (!permissionInfo.visible) {
|
|
7332
7341
|
return renderEmptyElement($xeButton);
|
|
7333
7342
|
}
|
|
@@ -7403,9 +7412,9 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
7403
7412
|
disabled: btnTransfer ? !initialized : true
|
|
7404
7413
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7405
7414
|
ref: refBtnPanel,
|
|
7406
|
-
class: ['vxe-button--dropdown-panel',
|
|
7415
|
+
class: ['vxe-button--dropdown-panel', ppClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(ppClassName) ? ppClassName({
|
|
7407
7416
|
$button: $xeButton
|
|
7408
|
-
}) :
|
|
7417
|
+
}) : ppClassName : '', {
|
|
7409
7418
|
[`size--${vSize}`]: vSize,
|
|
7410
7419
|
'is--transfer': btnTransfer,
|
|
7411
7420
|
'ani--leave': isAniVisible,
|
|
@@ -20554,6 +20563,7 @@ const DatePanel = VxeDatePanel;
|
|
|
20554
20563
|
type: Boolean,
|
|
20555
20564
|
default: null
|
|
20556
20565
|
},
|
|
20566
|
+
popupConfig: Object,
|
|
20557
20567
|
shortcutConfig: Object,
|
|
20558
20568
|
// 已废弃 startWeek,被 startDay 替换
|
|
20559
20569
|
startWeek: Number
|
|
@@ -20608,6 +20618,10 @@ const DatePanel = VxeDatePanel;
|
|
|
20608
20618
|
const {
|
|
20609
20619
|
transfer
|
|
20610
20620
|
} = props;
|
|
20621
|
+
const popupOpts = computePopupOpts.value;
|
|
20622
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(popupOpts.transfer)) {
|
|
20623
|
+
return popupOpts.transfer;
|
|
20624
|
+
}
|
|
20611
20625
|
if (transfer === null) {
|
|
20612
20626
|
const globalTransfer = getConfig().datePicker.transfer;
|
|
20613
20627
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
|
|
@@ -20684,6 +20698,9 @@ const DatePanel = VxeDatePanel;
|
|
|
20684
20698
|
} = props;
|
|
20685
20699
|
return immediate;
|
|
20686
20700
|
});
|
|
20701
|
+
const computePopupOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20702
|
+
return Object.assign({}, getConfig().datePicker.popupConfig, props.popupConfig);
|
|
20703
|
+
});
|
|
20687
20704
|
const computeShortcutOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
20688
20705
|
return Object.assign({}, getConfig().datePicker.shortcutConfig, props.shortcutConfig);
|
|
20689
20706
|
});
|
|
@@ -21022,11 +21039,10 @@ const DatePanel = VxeDatePanel;
|
|
|
21022
21039
|
};
|
|
21023
21040
|
// 弹出面板
|
|
21024
21041
|
const updateZindex = () => {
|
|
21025
|
-
const
|
|
21026
|
-
|
|
21027
|
-
|
|
21028
|
-
|
|
21029
|
-
reactData.panelIndex = zIndex;
|
|
21042
|
+
const popupOpts = computePopupOpts.value;
|
|
21043
|
+
const customZIndex = popupOpts.zIndex || props.zIndex;
|
|
21044
|
+
if (customZIndex) {
|
|
21045
|
+
reactData.panelIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(customZIndex);
|
|
21030
21046
|
} else if (reactData.panelIndex < getLastZIndex()) {
|
|
21031
21047
|
reactData.panelIndex = nextZIndex();
|
|
21032
21048
|
}
|
|
@@ -21041,9 +21057,10 @@ const DatePanel = VxeDatePanel;
|
|
|
21041
21057
|
const targetElem = refInputTarget.value;
|
|
21042
21058
|
const panelElem = refInputPanel.value;
|
|
21043
21059
|
const btnTransfer = computeBtnTransfer.value;
|
|
21060
|
+
const popupOpts = computePopupOpts.value;
|
|
21044
21061
|
const handleStyle = () => {
|
|
21045
21062
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
21046
|
-
placement,
|
|
21063
|
+
placement: popupOpts.placement || placement,
|
|
21047
21064
|
teleportTo: btnTransfer
|
|
21048
21065
|
});
|
|
21049
21066
|
const panelStyle = Object.assign(ppObj.style, {
|
|
@@ -21232,6 +21249,7 @@ const DatePanel = VxeDatePanel;
|
|
|
21232
21249
|
const isClearable = computeIsClearable.value;
|
|
21233
21250
|
const isDateTimeType = computeIsDateTimeType.value;
|
|
21234
21251
|
const shortcutList = computeShortcutList.value;
|
|
21252
|
+
const popupOpts = computePopupOpts.value;
|
|
21235
21253
|
const {
|
|
21236
21254
|
position
|
|
21237
21255
|
} = shortcutOpts;
|
|
@@ -21241,6 +21259,7 @@ const DatePanel = VxeDatePanel;
|
|
|
21241
21259
|
const bottomSlot = slots.bottom;
|
|
21242
21260
|
const leftSlot = slots.left;
|
|
21243
21261
|
const rightSlot = slots.right;
|
|
21262
|
+
const ppClassName = popupOpts.className;
|
|
21244
21263
|
const hasShortcutBtn = shortcutList.length > 0;
|
|
21245
21264
|
const showConfirmBtn = showConfirmButton === null ? isDateTimeType || multiple : showConfirmButton;
|
|
21246
21265
|
const showClearBtn = showClearButton === null ? isClearable && showConfirmBtn && type !== 'time' : showClearButton;
|
|
@@ -21249,7 +21268,9 @@ const DatePanel = VxeDatePanel;
|
|
|
21249
21268
|
disabled: btnTransfer ? !initialized : true
|
|
21250
21269
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21251
21270
|
ref: refInputPanel,
|
|
21252
|
-
class: ['vxe-table--ignore-clear vxe-date-picker--panel', `type--${type}`, {
|
|
21271
|
+
class: ['vxe-table--ignore-clear vxe-date-picker--panel', `type--${type}`, ppClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(ppClassName) ? ppClassName({
|
|
21272
|
+
$datePicker: $xeDatePicker
|
|
21273
|
+
}) : ppClassName : '', {
|
|
21253
21274
|
[`size--${vSize}`]: vSize,
|
|
21254
21275
|
'is--transfer': btnTransfer,
|
|
21255
21276
|
'ani--leave': isAniVisible,
|
|
@@ -21586,6 +21607,7 @@ const DatePicker = VxeDatePicker;
|
|
|
21586
21607
|
type: Boolean,
|
|
21587
21608
|
default: null
|
|
21588
21609
|
},
|
|
21610
|
+
popupConfig: Object,
|
|
21589
21611
|
shortcutConfig: Object
|
|
21590
21612
|
},
|
|
21591
21613
|
emits: ['update:modelValue', 'update:startValue', 'update:endValue', 'input', 'change', 'keydown', 'keyup', 'click', 'focus', 'blur', 'clear', 'confirm', 'prefix-click', 'suffix-click', 'date-prev', 'date-today', 'date-next', 'shortcut-click'],
|
|
@@ -21641,6 +21663,10 @@ const DatePicker = VxeDatePicker;
|
|
|
21641
21663
|
const {
|
|
21642
21664
|
transfer
|
|
21643
21665
|
} = props;
|
|
21666
|
+
const popupOpts = computePopupOpts.value;
|
|
21667
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(popupOpts.transfer)) {
|
|
21668
|
+
return popupOpts.transfer;
|
|
21669
|
+
}
|
|
21644
21670
|
if (transfer === null) {
|
|
21645
21671
|
const globalTransfer = getConfig().dateRangePicker.transfer;
|
|
21646
21672
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
|
|
@@ -21744,6 +21770,9 @@ const DatePicker = VxeDatePicker;
|
|
|
21744
21770
|
} = props;
|
|
21745
21771
|
return immediate;
|
|
21746
21772
|
});
|
|
21773
|
+
const computePopupOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21774
|
+
return Object.assign({}, getConfig().dateRangePicker.popupConfig, props.popupConfig);
|
|
21775
|
+
});
|
|
21747
21776
|
const computeShortcutOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21748
21777
|
return Object.assign({}, getConfig().dateRangePicker.shortcutConfig, props.shortcutConfig);
|
|
21749
21778
|
});
|
|
@@ -22241,11 +22270,10 @@ const DatePicker = VxeDatePicker;
|
|
|
22241
22270
|
};
|
|
22242
22271
|
// 弹出面板
|
|
22243
22272
|
const updateZindex = () => {
|
|
22244
|
-
const
|
|
22245
|
-
|
|
22246
|
-
|
|
22247
|
-
|
|
22248
|
-
reactData.panelIndex = zIndex;
|
|
22273
|
+
const popupOpts = computePopupOpts.value;
|
|
22274
|
+
const customZIndex = popupOpts.zIndex || props.zIndex;
|
|
22275
|
+
if (customZIndex) {
|
|
22276
|
+
reactData.panelIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(customZIndex);
|
|
22249
22277
|
} else if (reactData.panelIndex < getLastZIndex()) {
|
|
22250
22278
|
reactData.panelIndex = nextZIndex();
|
|
22251
22279
|
}
|
|
@@ -22260,9 +22288,10 @@ const DatePicker = VxeDatePicker;
|
|
|
22260
22288
|
const targetElem = refInputTarget.value;
|
|
22261
22289
|
const panelElem = refInputPanel.value;
|
|
22262
22290
|
const btnTransfer = computeBtnTransfer.value;
|
|
22291
|
+
const popupOpts = computePopupOpts.value;
|
|
22263
22292
|
const handleStyle = () => {
|
|
22264
22293
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
22265
|
-
placement,
|
|
22294
|
+
placement: popupOpts.placement || placement,
|
|
22266
22295
|
teleportTo: btnTransfer
|
|
22267
22296
|
});
|
|
22268
22297
|
const panelStyle = Object.assign(ppObj.style, {
|
|
@@ -22466,6 +22495,7 @@ const DatePicker = VxeDatePicker;
|
|
|
22466
22495
|
const isDateTimeType = computeIsDateTimeType.value;
|
|
22467
22496
|
const defaultDates = computeDefaultDates.value;
|
|
22468
22497
|
const defaultTimes = computeDefaultTimes.value;
|
|
22498
|
+
const popupOpts = computePopupOpts.value;
|
|
22469
22499
|
const {
|
|
22470
22500
|
startLabel,
|
|
22471
22501
|
endLabel
|
|
@@ -22479,6 +22509,7 @@ const DatePicker = VxeDatePicker;
|
|
|
22479
22509
|
const bottomSlot = slots.bottom;
|
|
22480
22510
|
const leftSlot = slots.left;
|
|
22481
22511
|
const rightSlot = slots.right;
|
|
22512
|
+
const ppClassName = popupOpts.className;
|
|
22482
22513
|
const [sdDate, edDate] = defaultDates;
|
|
22483
22514
|
const [sdTime, edTime] = defaultTimes;
|
|
22484
22515
|
const hasShortcutBtn = shortcutList.length > 0;
|
|
@@ -22489,7 +22520,9 @@ const DatePicker = VxeDatePicker;
|
|
|
22489
22520
|
disabled: btnTransfer ? !initialized : true
|
|
22490
22521
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
22491
22522
|
ref: refInputPanel,
|
|
22492
|
-
class: ['vxe-table--ignore-clear vxe-date-range-picker--panel', `type--${type}`, {
|
|
22523
|
+
class: ['vxe-table--ignore-clear vxe-date-range-picker--panel', `type--${type}`, ppClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(ppClassName) ? ppClassName({
|
|
22524
|
+
$dateRangePicker: $xeDateRangePicker
|
|
22525
|
+
}) : ppClassName : '', {
|
|
22493
22526
|
[`size--${vSize}`]: vSize,
|
|
22494
22527
|
'is--transfer': btnTransfer,
|
|
22495
22528
|
'ani--leave': isAniVisible,
|
|
@@ -26401,6 +26434,10 @@ const Icon = VxeIcon;
|
|
|
26401
26434
|
default: () => getConfig().iconPicker.size || getConfig().size
|
|
26402
26435
|
},
|
|
26403
26436
|
className: [String, Function],
|
|
26437
|
+
/**
|
|
26438
|
+
* 已废弃,请使用 popupConfig.className
|
|
26439
|
+
* @deprecated
|
|
26440
|
+
*/
|
|
26404
26441
|
popupClassName: [String, Function],
|
|
26405
26442
|
showIconTitle: {
|
|
26406
26443
|
type: Boolean,
|
|
@@ -26416,6 +26453,7 @@ const Icon = VxeIcon;
|
|
|
26416
26453
|
},
|
|
26417
26454
|
icons: Array,
|
|
26418
26455
|
placement: String,
|
|
26456
|
+
popupConfig: Object,
|
|
26419
26457
|
transfer: {
|
|
26420
26458
|
type: Boolean,
|
|
26421
26459
|
default: null
|
|
@@ -26490,6 +26528,10 @@ const Icon = VxeIcon;
|
|
|
26490
26528
|
const {
|
|
26491
26529
|
transfer
|
|
26492
26530
|
} = props;
|
|
26531
|
+
const popupOpts = computePopupOpts.value;
|
|
26532
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(popupOpts.transfer)) {
|
|
26533
|
+
return popupOpts.transfer;
|
|
26534
|
+
}
|
|
26493
26535
|
if (transfer === null) {
|
|
26494
26536
|
const globalTransfer = getConfig().iconPicker.transfer;
|
|
26495
26537
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
|
|
@@ -26535,6 +26577,9 @@ const Icon = VxeIcon;
|
|
|
26535
26577
|
};
|
|
26536
26578
|
});
|
|
26537
26579
|
});
|
|
26580
|
+
const computePopupOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
26581
|
+
return Object.assign({}, getConfig().iconPicker.popupConfig, props.popupConfig);
|
|
26582
|
+
});
|
|
26538
26583
|
const computeIconGroupList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
26539
26584
|
const iconList = computeIconList.value;
|
|
26540
26585
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().chunk(iconList, 4);
|
|
@@ -26552,83 +26597,29 @@ const Icon = VxeIcon;
|
|
|
26552
26597
|
}
|
|
26553
26598
|
};
|
|
26554
26599
|
const updatePlacement = () => {
|
|
26555
|
-
|
|
26556
|
-
|
|
26557
|
-
|
|
26558
|
-
|
|
26559
|
-
|
|
26560
|
-
|
|
26561
|
-
|
|
26562
|
-
|
|
26563
|
-
|
|
26564
|
-
|
|
26565
|
-
|
|
26566
|
-
|
|
26567
|
-
|
|
26568
|
-
|
|
26569
|
-
|
|
26570
|
-
|
|
26571
|
-
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
|
|
26575
|
-
|
|
26576
|
-
|
|
26577
|
-
|
|
26578
|
-
visibleWidth
|
|
26579
|
-
} = getAbsolutePos(el);
|
|
26580
|
-
let panelPlacement = 'bottom';
|
|
26581
|
-
if (btnTransfer) {
|
|
26582
|
-
let left = boundingLeft;
|
|
26583
|
-
let top = boundingTop + targetHeight;
|
|
26584
|
-
if (placement === 'top') {
|
|
26585
|
-
panelPlacement = 'top';
|
|
26586
|
-
top = boundingTop - panelHeight;
|
|
26587
|
-
} else if (!placement) {
|
|
26588
|
-
// 如果下面不够放,则向上
|
|
26589
|
-
if (top + panelHeight + marginSize > visibleHeight) {
|
|
26590
|
-
panelPlacement = 'top';
|
|
26591
|
-
top = boundingTop - panelHeight;
|
|
26592
|
-
}
|
|
26593
|
-
// 如果上面不够放,则向下(优先)
|
|
26594
|
-
if (top < marginSize) {
|
|
26595
|
-
panelPlacement = 'bottom';
|
|
26596
|
-
top = boundingTop + targetHeight;
|
|
26597
|
-
}
|
|
26598
|
-
}
|
|
26599
|
-
// 如果溢出右边
|
|
26600
|
-
if (left + panelWidth + marginSize > visibleWidth) {
|
|
26601
|
-
left -= left + panelWidth + marginSize - visibleWidth;
|
|
26602
|
-
}
|
|
26603
|
-
// 如果溢出左边
|
|
26604
|
-
if (left < marginSize) {
|
|
26605
|
-
left = marginSize;
|
|
26606
|
-
}
|
|
26607
|
-
Object.assign(panelStyle, {
|
|
26608
|
-
left: `${left}px`,
|
|
26609
|
-
top: `${top}px`,
|
|
26610
|
-
minWidth: `${targetWidth}px`
|
|
26611
|
-
});
|
|
26612
|
-
} else {
|
|
26613
|
-
if (placement === 'top') {
|
|
26614
|
-
panelPlacement = 'top';
|
|
26615
|
-
panelStyle.bottom = `${targetHeight}px`;
|
|
26616
|
-
} else if (!placement) {
|
|
26617
|
-
// 如果下面不够放,则向上
|
|
26618
|
-
if (boundingTop + targetHeight + panelHeight > visibleHeight) {
|
|
26619
|
-
// 如果上面不够放,则向下(优先)
|
|
26620
|
-
if (boundingTop - targetHeight - panelHeight > marginSize) {
|
|
26621
|
-
panelPlacement = 'top';
|
|
26622
|
-
panelStyle.bottom = `${targetHeight}px`;
|
|
26623
|
-
}
|
|
26624
|
-
}
|
|
26625
|
-
}
|
|
26626
|
-
}
|
|
26627
|
-
reactData.panelStyle = panelStyle;
|
|
26628
|
-
reactData.panelPlacement = panelPlacement;
|
|
26629
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
26630
|
-
}
|
|
26631
|
-
});
|
|
26600
|
+
const {
|
|
26601
|
+
placement
|
|
26602
|
+
} = props;
|
|
26603
|
+
const {
|
|
26604
|
+
panelIndex
|
|
26605
|
+
} = reactData;
|
|
26606
|
+
const targetElem = refElem.value;
|
|
26607
|
+
const panelElem = refOptionPanel.value;
|
|
26608
|
+
const btnTransfer = computeBtnTransfer.value;
|
|
26609
|
+
const popupOpts = computePopupOpts.value;
|
|
26610
|
+
const handleStyle = () => {
|
|
26611
|
+
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
26612
|
+
placement: popupOpts.placement || placement,
|
|
26613
|
+
teleportTo: btnTransfer
|
|
26614
|
+
});
|
|
26615
|
+
const panelStyle = Object.assign(ppObj.style, {
|
|
26616
|
+
zIndex: panelIndex
|
|
26617
|
+
});
|
|
26618
|
+
reactData.panelStyle = panelStyle;
|
|
26619
|
+
reactData.panelPlacement = ppObj.placement;
|
|
26620
|
+
};
|
|
26621
|
+
handleStyle();
|
|
26622
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(handleStyle);
|
|
26632
26623
|
};
|
|
26633
26624
|
const showOptionPanel = () => {
|
|
26634
26625
|
const {
|
|
@@ -26921,7 +26912,6 @@ const Icon = VxeIcon;
|
|
|
26921
26912
|
const renderVN = () => {
|
|
26922
26913
|
const {
|
|
26923
26914
|
className,
|
|
26924
|
-
popupClassName,
|
|
26925
26915
|
clearable
|
|
26926
26916
|
} = props;
|
|
26927
26917
|
const {
|
|
@@ -26936,6 +26926,8 @@ const Icon = VxeIcon;
|
|
|
26936
26926
|
const btnTransfer = computeBtnTransfer.value;
|
|
26937
26927
|
const formReadonly = computeFormReadonly.value;
|
|
26938
26928
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
26929
|
+
const popupOpts = computePopupOpts.value;
|
|
26930
|
+
const ppClassName = popupOpts.className || props.popupClassName;
|
|
26939
26931
|
if (formReadonly) {
|
|
26940
26932
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26941
26933
|
ref: refElem,
|
|
@@ -26981,9 +26973,9 @@ const Icon = VxeIcon;
|
|
|
26981
26973
|
disabled: btnTransfer ? !initialized : true
|
|
26982
26974
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26983
26975
|
ref: refOptionPanel,
|
|
26984
|
-
class: ['vxe-table--ignore-clear vxe-ico-picker--panel',
|
|
26976
|
+
class: ['vxe-table--ignore-clear vxe-ico-picker--panel', ppClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(ppClassName) ? ppClassName({
|
|
26985
26977
|
$iconPicker: $xeIconPicker
|
|
26986
|
-
}) :
|
|
26978
|
+
}) : ppClassName : '', {
|
|
26987
26979
|
[`size--${vSize}`]: vSize,
|
|
26988
26980
|
'is--transfer': btnTransfer,
|
|
26989
26981
|
'ani--leave': isAniVisible,
|
|
@@ -31813,18 +31805,31 @@ function select_createInternalData() {
|
|
|
31813
31805
|
optionGroupProps: Object,
|
|
31814
31806
|
optionConfig: Object,
|
|
31815
31807
|
className: [String, Function],
|
|
31808
|
+
/**
|
|
31809
|
+
* 已废弃,请使用 popupConfig.className
|
|
31810
|
+
* @deprecated
|
|
31811
|
+
*/
|
|
31816
31812
|
popupClassName: [String, Function],
|
|
31817
31813
|
max: {
|
|
31818
31814
|
type: [String, Number],
|
|
31819
31815
|
default: null
|
|
31820
31816
|
},
|
|
31817
|
+
/**
|
|
31818
|
+
* 已废弃,请使用 popupConfig.zIndex
|
|
31819
|
+
* @deprecated
|
|
31820
|
+
*/
|
|
31821
31821
|
zIndex: Number,
|
|
31822
31822
|
size: {
|
|
31823
31823
|
type: String,
|
|
31824
31824
|
default: () => getConfig().select.size || getConfig().size
|
|
31825
31825
|
},
|
|
31826
31826
|
filterable: Boolean,
|
|
31827
|
+
/**
|
|
31828
|
+
* 已废弃,被 filter-config.filterMethod 替换
|
|
31829
|
+
* @deprecated
|
|
31830
|
+
*/
|
|
31827
31831
|
filterMethod: Function,
|
|
31832
|
+
filterConfig: Object,
|
|
31828
31833
|
remote: Boolean,
|
|
31829
31834
|
remoteConfig: Object,
|
|
31830
31835
|
emptyText: String,
|
|
@@ -31946,6 +31951,10 @@ function select_createInternalData() {
|
|
|
31946
31951
|
const {
|
|
31947
31952
|
transfer
|
|
31948
31953
|
} = props;
|
|
31954
|
+
const popupOpts = computePopupOpts.value;
|
|
31955
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(popupOpts.transfer)) {
|
|
31956
|
+
return popupOpts.transfer;
|
|
31957
|
+
}
|
|
31949
31958
|
if (transfer === null) {
|
|
31950
31959
|
const globalTransfer = getConfig().select.transfer;
|
|
31951
31960
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
|
|
@@ -32000,7 +32009,7 @@ function select_createInternalData() {
|
|
|
32000
32009
|
return checkMaxLimit(selectVals);
|
|
32001
32010
|
});
|
|
32002
32011
|
const computePopupOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
32003
|
-
return Object.assign({}, getConfig().
|
|
32012
|
+
return Object.assign({}, getConfig().select.popupConfig, props.popupConfig);
|
|
32004
32013
|
});
|
|
32005
32014
|
const computeVirtualYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
32006
32015
|
return Object.assign({}, getConfig().select.virtualYConfig || getConfig().select.scrollY, props.virtualYConfig || props.scrollY);
|
|
@@ -32008,6 +32017,9 @@ function select_createInternalData() {
|
|
|
32008
32017
|
const computeRemoteOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
32009
32018
|
return Object.assign({}, getConfig().select.remoteConfig, props.remoteConfig);
|
|
32010
32019
|
});
|
|
32020
|
+
const computeFilterOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
32021
|
+
return Object.assign({}, getConfig().select.filterConfig, props.filterConfig);
|
|
32022
|
+
});
|
|
32011
32023
|
const computeOptionOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
32012
32024
|
return Object.assign({}, getConfig().select.optionConfig, props.optionConfig);
|
|
32013
32025
|
});
|
|
@@ -32208,8 +32220,7 @@ function select_createInternalData() {
|
|
|
32208
32220
|
const {
|
|
32209
32221
|
remote,
|
|
32210
32222
|
modelValue,
|
|
32211
|
-
filterable
|
|
32212
|
-
filterMethod
|
|
32223
|
+
filterable
|
|
32213
32224
|
} = props;
|
|
32214
32225
|
const {
|
|
32215
32226
|
searchValue
|
|
@@ -32220,13 +32231,15 @@ function select_createInternalData() {
|
|
|
32220
32231
|
} = internalData;
|
|
32221
32232
|
const labelField = computeLabelField.value;
|
|
32222
32233
|
const valueField = computeValueField.value;
|
|
32234
|
+
const filterOpts = computeFilterOpts.value;
|
|
32235
|
+
const frMethod = filterOpts.filterMethod || props.filterMethod;
|
|
32223
32236
|
const searchStr = `${searchValue || ''}`.toLowerCase();
|
|
32224
32237
|
let avList = [];
|
|
32225
32238
|
if (remote) {
|
|
32226
32239
|
avList = fullData.filter(isOptionVisible);
|
|
32227
32240
|
} else {
|
|
32228
|
-
if (filterable &&
|
|
32229
|
-
avList = fullData.filter(option => isOptionVisible(option) &&
|
|
32241
|
+
if (filterable && frMethod) {
|
|
32242
|
+
avList = fullData.filter(option => isOptionVisible(option) && frMethod({
|
|
32230
32243
|
$select: $xeSelect,
|
|
32231
32244
|
group: null,
|
|
32232
32245
|
option,
|
|
@@ -32254,11 +32267,10 @@ function select_createInternalData() {
|
|
|
32254
32267
|
}
|
|
32255
32268
|
};
|
|
32256
32269
|
const updateZIndex = () => {
|
|
32257
|
-
const
|
|
32258
|
-
|
|
32259
|
-
|
|
32260
|
-
|
|
32261
|
-
reactData.panelIndex = zIndex;
|
|
32270
|
+
const popupOpts = computePopupOpts.value;
|
|
32271
|
+
const customZIndex = popupOpts.zIndex || props.zIndex;
|
|
32272
|
+
if (customZIndex) {
|
|
32273
|
+
reactData.panelIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(customZIndex);
|
|
32262
32274
|
} else if (reactData.panelIndex < getLastZIndex()) {
|
|
32263
32275
|
reactData.panelIndex = nextZIndex();
|
|
32264
32276
|
}
|
|
@@ -32273,9 +32285,10 @@ function select_createInternalData() {
|
|
|
32273
32285
|
const targetElem = refElem.value;
|
|
32274
32286
|
const panelElem = refOptionPanel.value;
|
|
32275
32287
|
const btnTransfer = computeBtnTransfer.value;
|
|
32288
|
+
const popupOpts = computePopupOpts.value;
|
|
32276
32289
|
const handleStyle = () => {
|
|
32277
32290
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
32278
|
-
placement,
|
|
32291
|
+
placement: popupOpts.placement || placement,
|
|
32279
32292
|
teleportTo: btnTransfer
|
|
32280
32293
|
});
|
|
32281
32294
|
const panelStyle = Object.assign(ppObj.style, {
|
|
@@ -32328,7 +32341,7 @@ function select_createInternalData() {
|
|
|
32328
32341
|
reactData.isActivated = true;
|
|
32329
32342
|
reactData.isAniVisible = true;
|
|
32330
32343
|
if (filterable) {
|
|
32331
|
-
if (remote && remoteOpts.enabled && remoteOpts.autoLoad && !fullData.length) {
|
|
32344
|
+
if (remote && remoteOpts.enabled && (remoteOpts.autoLoad && !fullData.length || fullData.length && remoteOpts.clearOnClose)) {
|
|
32332
32345
|
handleSearchEvent();
|
|
32333
32346
|
} else {
|
|
32334
32347
|
handleOption();
|
|
@@ -32354,7 +32367,23 @@ function select_createInternalData() {
|
|
|
32354
32367
|
}
|
|
32355
32368
|
};
|
|
32356
32369
|
const hideOptionPanel = () => {
|
|
32357
|
-
|
|
32370
|
+
const {
|
|
32371
|
+
filterable,
|
|
32372
|
+
remote
|
|
32373
|
+
} = props;
|
|
32374
|
+
const filterOpts = computeFilterOpts.value;
|
|
32375
|
+
const remoteOpts = computeRemoteOpts.value;
|
|
32376
|
+
if (remote) {
|
|
32377
|
+
if (remoteOpts.clearOnClose) {
|
|
32378
|
+
reactData.searchValue = '';
|
|
32379
|
+
}
|
|
32380
|
+
} else if (filterable) {
|
|
32381
|
+
if (filterOpts.clearOnClose) {
|
|
32382
|
+
reactData.searchValue = '';
|
|
32383
|
+
}
|
|
32384
|
+
} else {
|
|
32385
|
+
reactData.searchValue = '';
|
|
32386
|
+
}
|
|
32358
32387
|
reactData.searchLoading = false;
|
|
32359
32388
|
reactData.visiblePanel = false;
|
|
32360
32389
|
internalData.hpTimeout = setTimeout(() => {
|
|
@@ -32705,17 +32734,16 @@ function select_createInternalData() {
|
|
|
32705
32734
|
const handleSearchEvent = () => {
|
|
32706
32735
|
const {
|
|
32707
32736
|
modelValue,
|
|
32708
|
-
remote
|
|
32709
|
-
remoteMethod
|
|
32737
|
+
remote
|
|
32710
32738
|
} = props;
|
|
32711
32739
|
const {
|
|
32712
32740
|
searchValue
|
|
32713
32741
|
} = reactData;
|
|
32714
32742
|
const remoteOpts = computeRemoteOpts.value;
|
|
32715
|
-
const
|
|
32716
|
-
if (remote &&
|
|
32743
|
+
const qyMethod = remoteOpts.queryMethod || props.remoteMethod;
|
|
32744
|
+
if (remote && qyMethod && remoteOpts.enabled) {
|
|
32717
32745
|
reactData.searchLoading = true;
|
|
32718
|
-
Promise.resolve(
|
|
32746
|
+
Promise.resolve(qyMethod({
|
|
32719
32747
|
$select: $xeSelect,
|
|
32720
32748
|
searchValue,
|
|
32721
32749
|
value: modelValue
|
|
@@ -33257,11 +33285,11 @@ function select_createInternalData() {
|
|
|
33257
33285
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
33258
33286
|
const popupWrapperStyle = computePopupWrapperStyle.value;
|
|
33259
33287
|
const popupOpts = computePopupOpts.value;
|
|
33260
|
-
const popupClassName = popupOpts.className || props.popupClassName;
|
|
33261
33288
|
const defaultSlot = slots.default;
|
|
33262
33289
|
const headerSlot = slots.header;
|
|
33263
33290
|
const footerSlot = slots.footer;
|
|
33264
33291
|
const prefixSlot = slots.prefix;
|
|
33292
|
+
const ppClassName = popupOpts.className || props.popupClassName;
|
|
33265
33293
|
if (formReadonly) {
|
|
33266
33294
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
33267
33295
|
ref: refElem,
|
|
@@ -33314,9 +33342,9 @@ function select_createInternalData() {
|
|
|
33314
33342
|
disabled: btnTransfer ? !initialized : true
|
|
33315
33343
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
33316
33344
|
ref: refOptionPanel,
|
|
33317
|
-
class: ['vxe-table--ignore-clear vxe-select--panel',
|
|
33345
|
+
class: ['vxe-table--ignore-clear vxe-select--panel', ppClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(ppClassName) ? ppClassName({
|
|
33318
33346
|
$select: $xeSelect
|
|
33319
|
-
}) :
|
|
33347
|
+
}) : ppClassName : '', {
|
|
33320
33348
|
[`size--${vSize}`]: vSize,
|
|
33321
33349
|
'is--transfer': btnTransfer,
|
|
33322
33350
|
'ani--leave': !loading && isAniVisible,
|
|
@@ -35241,6 +35269,10 @@ const Print = VxePrint;
|
|
|
35241
35269
|
type: String,
|
|
35242
35270
|
default: getConfig().pulldown.trigger
|
|
35243
35271
|
},
|
|
35272
|
+
/**
|
|
35273
|
+
* 已废弃,请使用 popupConfig.zIndex
|
|
35274
|
+
* @deprecated
|
|
35275
|
+
*/
|
|
35244
35276
|
zIndex: Number,
|
|
35245
35277
|
size: {
|
|
35246
35278
|
type: String,
|
|
@@ -35251,8 +35283,13 @@ const Print = VxePrint;
|
|
|
35251
35283
|
type: [String, Function],
|
|
35252
35284
|
default: getConfig().pulldown.className
|
|
35253
35285
|
},
|
|
35286
|
+
/**
|
|
35287
|
+
* 已废弃,请使用 popupConfig.className
|
|
35288
|
+
* @deprecated
|
|
35289
|
+
*/
|
|
35254
35290
|
popupClassName: [String, Function],
|
|
35255
35291
|
showPopupShadow: Boolean,
|
|
35292
|
+
popupConfig: Object,
|
|
35256
35293
|
destroyOnClose: {
|
|
35257
35294
|
type: Boolean,
|
|
35258
35295
|
default: getConfig().pulldown.destroyOnClose
|
|
@@ -35295,6 +35332,10 @@ const Print = VxePrint;
|
|
|
35295
35332
|
const {
|
|
35296
35333
|
transfer
|
|
35297
35334
|
} = props;
|
|
35335
|
+
const popupOpts = computePopupOpts.value;
|
|
35336
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(popupOpts.transfer)) {
|
|
35337
|
+
return popupOpts.transfer;
|
|
35338
|
+
}
|
|
35298
35339
|
if (transfer === null) {
|
|
35299
35340
|
const globalTransfer = getConfig().pulldown.transfer;
|
|
35300
35341
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
|
|
@@ -35306,6 +35347,9 @@ const Print = VxePrint;
|
|
|
35306
35347
|
}
|
|
35307
35348
|
return transfer;
|
|
35308
35349
|
});
|
|
35350
|
+
const computePopupOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
35351
|
+
return Object.assign({}, getConfig().pulldown.popupConfig, props.popupConfig);
|
|
35352
|
+
});
|
|
35309
35353
|
const refMaps = {
|
|
35310
35354
|
refElem
|
|
35311
35355
|
};
|
|
@@ -35319,11 +35363,10 @@ const Print = VxePrint;
|
|
|
35319
35363
|
};
|
|
35320
35364
|
let pulldownMethods = {};
|
|
35321
35365
|
const updateZindex = () => {
|
|
35322
|
-
const
|
|
35323
|
-
|
|
35324
|
-
|
|
35325
|
-
|
|
35326
|
-
reactData.panelIndex = zIndex;
|
|
35366
|
+
const popupOpts = computePopupOpts.value;
|
|
35367
|
+
const customZIndex = popupOpts.zIndex || props.zIndex;
|
|
35368
|
+
if (customZIndex) {
|
|
35369
|
+
reactData.panelIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(customZIndex);
|
|
35327
35370
|
} else if (reactData.panelIndex < getLastZIndex()) {
|
|
35328
35371
|
reactData.panelIndex = nextZIndex();
|
|
35329
35372
|
}
|
|
@@ -35344,9 +35387,10 @@ const Print = VxePrint;
|
|
|
35344
35387
|
const targetElem = refPulldownContent.value;
|
|
35345
35388
|
const panelElem = refPulldownPanel.value;
|
|
35346
35389
|
const btnTransfer = computeBtnTransfer.value;
|
|
35390
|
+
const popupOpts = computePopupOpts.value;
|
|
35347
35391
|
const handleStyle = () => {
|
|
35348
35392
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
35349
|
-
placement,
|
|
35393
|
+
placement: popupOpts.placement || placement,
|
|
35350
35394
|
teleportTo: btnTransfer
|
|
35351
35395
|
});
|
|
35352
35396
|
const panelStyle = Object.assign(ppObj.style, {
|
|
@@ -35565,7 +35609,6 @@ const Print = VxePrint;
|
|
|
35565
35609
|
const {
|
|
35566
35610
|
className,
|
|
35567
35611
|
options,
|
|
35568
|
-
popupClassName,
|
|
35569
35612
|
showPopupShadow,
|
|
35570
35613
|
destroyOnClose,
|
|
35571
35614
|
disabled
|
|
@@ -35580,10 +35623,12 @@ const Print = VxePrint;
|
|
|
35580
35623
|
} = reactData;
|
|
35581
35624
|
const btnTransfer = computeBtnTransfer.value;
|
|
35582
35625
|
const vSize = computeSize.value;
|
|
35626
|
+
const popupOpts = computePopupOpts.value;
|
|
35583
35627
|
const defaultSlot = slots.default;
|
|
35584
35628
|
const headerSlot = slots.header;
|
|
35585
35629
|
const footerSlot = slots.footer;
|
|
35586
35630
|
const dropdownSlot = slots.dropdown;
|
|
35631
|
+
const ppClassName = popupOpts.className || props.popupClassName;
|
|
35587
35632
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
35588
35633
|
ref: refElem,
|
|
35589
35634
|
class: ['vxe-pulldown', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
@@ -35605,9 +35650,9 @@ const Print = VxePrint;
|
|
|
35605
35650
|
disabled: btnTransfer ? !initialized : true
|
|
35606
35651
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
35607
35652
|
ref: refPulldownPanel,
|
|
35608
|
-
class: ['vxe-table--ignore-clear vxe-pulldown--panel',
|
|
35653
|
+
class: ['vxe-table--ignore-clear vxe-pulldown--panel', ppClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(ppClassName) ? ppClassName({
|
|
35609
35654
|
$pulldown: $xePulldown
|
|
35610
|
-
}) :
|
|
35655
|
+
}) : ppClassName : '', {
|
|
35611
35656
|
[`size--${vSize}`]: vSize,
|
|
35612
35657
|
'is--transfer': btnTransfer,
|
|
35613
35658
|
'ani--leave': isAniVisible,
|
|
@@ -38910,6 +38955,10 @@ function table_select_createInternalData() {
|
|
|
38910
38955
|
options: Array,
|
|
38911
38956
|
optionProps: Object,
|
|
38912
38957
|
lazyOptions: Array,
|
|
38958
|
+
/**
|
|
38959
|
+
* 已废弃,请使用 popupConfig.zIndex
|
|
38960
|
+
* @deprecated
|
|
38961
|
+
*/
|
|
38913
38962
|
zIndex: Number,
|
|
38914
38963
|
size: {
|
|
38915
38964
|
type: String,
|
|
@@ -38987,8 +39036,12 @@ function table_select_createInternalData() {
|
|
|
38987
39036
|
const {
|
|
38988
39037
|
transfer
|
|
38989
39038
|
} = props;
|
|
39039
|
+
const popupOpts = computePopupOpts.value;
|
|
39040
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(popupOpts.transfer)) {
|
|
39041
|
+
return popupOpts.transfer;
|
|
39042
|
+
}
|
|
38990
39043
|
if (transfer === null) {
|
|
38991
|
-
const globalTransfer = getConfig().
|
|
39044
|
+
const globalTransfer = getConfig().tableSelect.transfer;
|
|
38992
39045
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
|
|
38993
39046
|
return globalTransfer;
|
|
38994
39047
|
}
|
|
@@ -39262,11 +39315,10 @@ function table_select_createInternalData() {
|
|
|
39262
39315
|
updateModel(props.modelValue);
|
|
39263
39316
|
};
|
|
39264
39317
|
const updateZindex = () => {
|
|
39265
|
-
const
|
|
39266
|
-
|
|
39267
|
-
|
|
39268
|
-
|
|
39269
|
-
reactData.panelIndex = zIndex;
|
|
39318
|
+
const popupOpts = computePopupOpts.value;
|
|
39319
|
+
const customZIndex = popupOpts.zIndex || props.zIndex;
|
|
39320
|
+
if (customZIndex) {
|
|
39321
|
+
reactData.panelIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(customZIndex);
|
|
39270
39322
|
} else if (reactData.panelIndex < getLastZIndex()) {
|
|
39271
39323
|
reactData.panelIndex = nextZIndex();
|
|
39272
39324
|
}
|
|
@@ -39281,9 +39333,10 @@ function table_select_createInternalData() {
|
|
|
39281
39333
|
const targetElem = refElem.value;
|
|
39282
39334
|
const panelElem = refOptionPanel.value;
|
|
39283
39335
|
const btnTransfer = computeBtnTransfer.value;
|
|
39336
|
+
const popupOpts = computePopupOpts.value;
|
|
39284
39337
|
const handleStyle = () => {
|
|
39285
39338
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
39286
|
-
placement,
|
|
39339
|
+
placement: popupOpts.placement || placement,
|
|
39287
39340
|
teleportTo: btnTransfer
|
|
39288
39341
|
});
|
|
39289
39342
|
const panelStyle = Object.assign(ppObj.style, {
|
|
@@ -39498,15 +39551,13 @@ function table_select_createInternalData() {
|
|
|
39498
39551
|
const btnTransfer = computeBtnTransfer.value;
|
|
39499
39552
|
const formReadonly = computeFormReadonly.value;
|
|
39500
39553
|
const popupOpts = computePopupOpts.value;
|
|
39501
|
-
const {
|
|
39502
|
-
className: popupClassName
|
|
39503
|
-
} = popupOpts;
|
|
39504
39554
|
const selectGridOpts = computeSelectGridOpts.value;
|
|
39505
39555
|
const rowOpts = computeRowOpts.value;
|
|
39506
39556
|
const popupWrapperStyle = computePopupWrapperStyle.value;
|
|
39507
39557
|
const headerSlot = slots.header;
|
|
39508
39558
|
const footerSlot = slots.footer;
|
|
39509
39559
|
const prefixSlot = slots.prefix;
|
|
39560
|
+
const ppClassName = popupOpts.className;
|
|
39510
39561
|
if (formReadonly) {
|
|
39511
39562
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
39512
39563
|
ref: refElem,
|
|
@@ -39548,9 +39599,9 @@ function table_select_createInternalData() {
|
|
|
39548
39599
|
disabled: btnTransfer ? !initialized : true
|
|
39549
39600
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
39550
39601
|
ref: refOptionPanel,
|
|
39551
|
-
class: ['vxe-table--ignore-clear vxe-table-select--panel',
|
|
39602
|
+
class: ['vxe-table--ignore-clear vxe-table-select--panel', ppClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(ppClassName) ? ppClassName({
|
|
39552
39603
|
$tableSelect: $xeTableSelect
|
|
39553
|
-
}) :
|
|
39604
|
+
}) : ppClassName : '', {
|
|
39554
39605
|
[`size--${vSize}`]: vSize,
|
|
39555
39606
|
'is--transfer': btnTransfer,
|
|
39556
39607
|
'ani--leave': !loading && isAniVisible,
|
|
@@ -44948,12 +44999,20 @@ function tree_select_createInternalData() {
|
|
|
44948
44999
|
filterConfig: Object,
|
|
44949
45000
|
multiple: Boolean,
|
|
44950
45001
|
className: [String, Function],
|
|
45002
|
+
/**
|
|
45003
|
+
* 已废弃,请使用 popupConfig.className
|
|
45004
|
+
* @deprecated
|
|
45005
|
+
*/
|
|
44951
45006
|
popupClassName: [String, Function],
|
|
44952
45007
|
prefixIcon: String,
|
|
44953
45008
|
placement: String,
|
|
44954
45009
|
lazyOptions: Array,
|
|
44955
45010
|
options: Array,
|
|
44956
45011
|
optionProps: Object,
|
|
45012
|
+
/**
|
|
45013
|
+
* 已废弃,请使用 popupConfig.zIndex
|
|
45014
|
+
* @deprecated
|
|
45015
|
+
*/
|
|
44957
45016
|
zIndex: Number,
|
|
44958
45017
|
size: {
|
|
44959
45018
|
type: String,
|
|
@@ -45060,8 +45119,12 @@ function tree_select_createInternalData() {
|
|
|
45060
45119
|
const {
|
|
45061
45120
|
transfer
|
|
45062
45121
|
} = props;
|
|
45122
|
+
const popupOpts = computePopupOpts.value;
|
|
45123
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(popupOpts.transfer)) {
|
|
45124
|
+
return popupOpts.transfer;
|
|
45125
|
+
}
|
|
45063
45126
|
if (transfer === null) {
|
|
45064
|
-
const globalTransfer = getConfig().
|
|
45127
|
+
const globalTransfer = getConfig().treeSelect.transfer;
|
|
45065
45128
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
|
|
45066
45129
|
return globalTransfer;
|
|
45067
45130
|
}
|
|
@@ -45268,11 +45331,10 @@ function tree_select_createInternalData() {
|
|
|
45268
45331
|
internalData.fullNodeMaps = nodeMaps;
|
|
45269
45332
|
};
|
|
45270
45333
|
const updateZindex = () => {
|
|
45271
|
-
const
|
|
45272
|
-
|
|
45273
|
-
|
|
45274
|
-
|
|
45275
|
-
reactData.panelIndex = zIndex;
|
|
45334
|
+
const popupOpts = computePopupOpts.value;
|
|
45335
|
+
const customZIndex = popupOpts.zIndex || props.zIndex;
|
|
45336
|
+
if (customZIndex) {
|
|
45337
|
+
reactData.panelIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(customZIndex);
|
|
45276
45338
|
} else if (reactData.panelIndex < getLastZIndex()) {
|
|
45277
45339
|
reactData.panelIndex = nextZIndex();
|
|
45278
45340
|
}
|
|
@@ -45287,9 +45349,10 @@ function tree_select_createInternalData() {
|
|
|
45287
45349
|
const targetElem = refElem.value;
|
|
45288
45350
|
const panelElem = refOptionPanel.value;
|
|
45289
45351
|
const btnTransfer = computeBtnTransfer.value;
|
|
45352
|
+
const popupOpts = computePopupOpts.value;
|
|
45290
45353
|
const handleStyle = () => {
|
|
45291
45354
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
45292
|
-
placement,
|
|
45355
|
+
placement: popupOpts.placement || placement,
|
|
45293
45356
|
teleportTo: btnTransfer
|
|
45294
45357
|
});
|
|
45295
45358
|
const panelStyle = Object.assign(ppObj.style, {
|
|
@@ -45612,7 +45675,7 @@ function tree_select_createInternalData() {
|
|
|
45612
45675
|
const footerSlot = slots.footer;
|
|
45613
45676
|
const prefixSlot = slots.prefix;
|
|
45614
45677
|
const popupOpts = computePopupOpts.value;
|
|
45615
|
-
const
|
|
45678
|
+
const ppClassName = popupOpts.className || props.popupClassName;
|
|
45616
45679
|
if (formReadonly) {
|
|
45617
45680
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45618
45681
|
ref: refElem,
|
|
@@ -45690,9 +45753,9 @@ function tree_select_createInternalData() {
|
|
|
45690
45753
|
disabled: btnTransfer ? !initialized : true
|
|
45691
45754
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45692
45755
|
ref: refOptionPanel,
|
|
45693
|
-
class: ['vxe-table--ignore-clear vxe-tree-select--panel',
|
|
45756
|
+
class: ['vxe-table--ignore-clear vxe-tree-select--panel', ppClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(ppClassName) ? ppClassName({
|
|
45694
45757
|
$treeSelect: $xeTreeSelect
|
|
45695
|
-
}) :
|
|
45758
|
+
}) : ppClassName : '', {
|
|
45696
45759
|
[`size--${vSize}`]: vSize,
|
|
45697
45760
|
'is--transfer': btnTransfer,
|
|
45698
45761
|
'ani--leave': !loading && isAniVisible,
|