vxe-pc-ui 4.9.30 → 4.9.32
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 +1 -1
- package/es/date-picker/src/date-picker.js +1 -1
- package/es/date-range-picker/src/date-range-picker.js +1 -1
- package/es/form/render/index.js +1 -1
- package/es/form/src/form.js +4 -4
- package/es/form/src/itemInfo.js +4 -4
- package/es/icon/style.css +1 -1
- package/es/image-preview/index.js +1 -1
- package/es/menu/style.css +1 -0
- package/es/menu/style.min.css +1 -1
- package/es/modal/src/modal.js +3 -3
- package/es/pager/src/pager.js +2 -2
- package/es/select/src/select.js +25 -2
- package/es/split/src/split.js +5 -5
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +23 -10
- package/es/tabs/src/tabs.js +2 -2
- package/es/tree/src/tree.js +7 -3
- package/es/tree-select/src/tree-select.js +16 -4
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +2 -2
- package/es/vxe-menu/style.css +1 -0
- package/es/vxe-menu/style.min.css +1 -1
- package/lib/button/src/button.js +1 -1
- package/lib/button/src/button.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +1 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/form/render/index.js +1 -1
- package/lib/form/render/index.min.js +1 -1
- package/lib/form/src/form.js +4 -4
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/itemInfo.js +4 -4
- package/lib/form/src/itemInfo.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/image-preview/index.js +1 -1
- package/lib/image-preview/index.min.js +1 -1
- package/lib/index.umd.js +104 -46
- package/lib/index.umd.min.js +1 -1
- package/lib/menu/style/style.css +1 -0
- package/lib/menu/style/style.min.css +1 -1
- package/lib/modal/src/modal.js +2 -2
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/pager/src/pager.js +2 -2
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/select/src/select.js +29 -2
- package/lib/select/src/select.min.js +1 -1
- package/lib/split/src/split.js +5 -5
- package/lib/split/src/split.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 +24 -10
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tabs/src/tabs.js +2 -2
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tree/src/tree.js +6 -2
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +17 -4
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/upload/src/upload.js +2 -2
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/vxe-menu/style/style.css +1 -0
- package/lib/vxe-menu/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.ts +1 -1
- package/packages/date-picker/src/date-picker.ts +1 -1
- package/packages/date-range-picker/src/date-range-picker.ts +1 -1
- package/packages/form/render/index.ts +1 -1
- package/packages/form/src/form.ts +4 -4
- package/packages/form/src/itemInfo.ts +4 -4
- package/packages/image-preview/index.ts +2 -1
- package/packages/modal/src/modal.ts +3 -3
- package/packages/pager/src/pager.ts +2 -2
- package/packages/select/src/select.ts +25 -2
- package/packages/split/src/split.ts +5 -5
- package/packages/table-select/src/table-select.ts +24 -11
- package/packages/tabs/src/tabs.ts +2 -2
- package/packages/tree/src/tree.ts +6 -3
- package/packages/tree-select/src/tree-select.ts +16 -4
- package/packages/upload/index.ts +1 -0
- package/packages/upload/src/upload.ts +2 -2
- package/styles/components/menu.scss +1 -0
- package/types/components/select.d.ts +2 -0
- package/types/components/table-select.d.ts +3 -1
- package/types/components/tree-select.d.ts +2 -0
- package/types/components/tree.d.ts +8 -0
- /package/es/icon/{iconfont.1757986297727.ttf → iconfont.1758173429533.ttf} +0 -0
- /package/es/icon/{iconfont.1757986297727.woff → iconfont.1758173429533.woff} +0 -0
- /package/es/icon/{iconfont.1757986297727.woff2 → iconfont.1758173429533.woff2} +0 -0
- /package/es/{iconfont.1757986297727.ttf → iconfont.1758173429533.ttf} +0 -0
- /package/es/{iconfont.1757986297727.woff → iconfont.1758173429533.woff} +0 -0
- /package/es/{iconfont.1757986297727.woff2 → iconfont.1758173429533.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1757986297727.ttf → iconfont.1758173429533.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1757986297727.woff → iconfont.1758173429533.woff} +0 -0
- /package/lib/icon/style/{iconfont.1757986297727.woff2 → iconfont.1758173429533.woff2} +0 -0
- /package/lib/{iconfont.1757986297727.ttf → iconfont.1758173429533.ttf} +0 -0
- /package/lib/{iconfont.1757986297727.woff → iconfont.1758173429533.woff} +0 -0
- /package/lib/{iconfont.1757986297727.woff2 → iconfont.1758173429533.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3588,14 +3588,14 @@ function checkDynamic() {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3590
3590
|
|
|
3591
|
-
const log_version = `ui v${"4.9.
|
|
3591
|
+
const log_version = `ui v${"4.9.32"}`;
|
|
3592
3592
|
const warnLog = log.create('warn', log_version);
|
|
3593
3593
|
const errLog = log.create('error', log_version);
|
|
3594
3594
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3595
3595
|
|
|
3596
3596
|
|
|
3597
3597
|
|
|
3598
|
-
const ui_version = "4.9.
|
|
3598
|
+
const ui_version = "4.9.32";
|
|
3599
3599
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3600
3600
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3601
3601
|
function config(options) {
|
|
@@ -7542,7 +7542,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
7542
7542
|
$xeButton.renderVN = renderVN;
|
|
7543
7543
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
7544
7544
|
if (props.type === 'text') {
|
|
7545
|
-
warnLog('vxe.error.delProp', ['type=text', 'mode=text']);
|
|
7545
|
+
warnLog('vxe.error.delProp', ['[button] type=text', 'mode=text']);
|
|
7546
7546
|
}
|
|
7547
7547
|
globalEvents.on($xeButton, 'mousewheel', handleGlobalMousewheelEvent);
|
|
7548
7548
|
globalEvents.on($xeButton, 'mousedown', handleGlobalMousedownEvent);
|
|
@@ -18944,7 +18944,7 @@ const DatePanel = VxeDatePanel;
|
|
|
18944
18944
|
break;
|
|
18945
18945
|
}
|
|
18946
18946
|
default:
|
|
18947
|
-
errLog('vxe.error.notCommands', [code]);
|
|
18947
|
+
errLog('vxe.error.notCommands', [`[date-picker] ${code}`]);
|
|
18948
18948
|
break;
|
|
18949
18949
|
}
|
|
18950
18950
|
}
|
|
@@ -20121,7 +20121,7 @@ const DatePicker = VxeDatePicker;
|
|
|
20121
20121
|
break;
|
|
20122
20122
|
}
|
|
20123
20123
|
default:
|
|
20124
|
-
errLog('vxe.error.notCommands', [code]);
|
|
20124
|
+
errLog('vxe.error.notCommands', [`[date-range-picker] ${code}`]);
|
|
20125
20125
|
break;
|
|
20126
20126
|
}
|
|
20127
20127
|
}
|
|
@@ -21331,21 +21331,21 @@ class ItemInfo {
|
|
|
21331
21331
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
21332
21332
|
const gFormatOpts = formats.get(formatter);
|
|
21333
21333
|
if (!gFormatOpts || !gFormatOpts.formItemFormatMethod) {
|
|
21334
|
-
errLog('vxe.error.notFormats', [formatter]);
|
|
21334
|
+
errLog('vxe.error.notFormats', [`[form] ${formatter}`]);
|
|
21335
21335
|
}
|
|
21336
21336
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
21337
21337
|
const gFormatOpts = formats.get(formatter[0]);
|
|
21338
21338
|
if (!gFormatOpts || !gFormatOpts.formItemFormatMethod) {
|
|
21339
|
-
errLog('vxe.error.notFormats', [formatter[0]]);
|
|
21339
|
+
errLog('vxe.error.notFormats', [`[form] ${formatter[0]}`]);
|
|
21340
21340
|
}
|
|
21341
21341
|
}
|
|
21342
21342
|
}
|
|
21343
21343
|
if (field && itemRender) {
|
|
21344
21344
|
if (itemRender.startField && `${itemRender.startField}`.indexOf(field) >= 0) {
|
|
21345
|
-
errLog('vxe.error.modelConflicts', [`field=${field}`, `item-render.startField=${itemRender.startField}`]);
|
|
21345
|
+
errLog('vxe.error.modelConflicts', [`[form] field=${field}`, `item-render.startField=${itemRender.startField}`]);
|
|
21346
21346
|
}
|
|
21347
21347
|
if (itemRender.endField && `${itemRender.endField}`.indexOf(field) >= 0) {
|
|
21348
|
-
errLog('vxe.error.modelConflicts', [`field=${field}`, `item-render.endField=${itemRender.endField}`]);
|
|
21348
|
+
errLog('vxe.error.modelConflicts', [`[form] field=${field}`, `item-render.endField=${itemRender.endField}`]);
|
|
21349
21349
|
}
|
|
21350
21350
|
}
|
|
21351
21351
|
Object.assign(this, {
|
|
@@ -22187,7 +22187,7 @@ function getComponentOns(renderOpts, params, eFns, eventOns) {
|
|
|
22187
22187
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(events, (func, key) => {
|
|
22188
22188
|
ons[getOnName(key)] = function (...args) {
|
|
22189
22189
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
22190
|
-
errLog('vxe.error.errFunc', [func]);
|
|
22190
|
+
errLog('vxe.error.errFunc', [`[form] ${func}`]);
|
|
22191
22191
|
}
|
|
22192
22192
|
func(params, ...args);
|
|
22193
22193
|
};
|
|
@@ -23075,7 +23075,7 @@ function createInternalData() {
|
|
|
23075
23075
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(item.slots, func => {
|
|
23076
23076
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
23077
23077
|
if (!slots[func]) {
|
|
23078
|
-
errLog('vxe.error.notSlot', [func]);
|
|
23078
|
+
errLog('vxe.error.notSlot', [`[form] ${func}`]);
|
|
23079
23079
|
}
|
|
23080
23080
|
}
|
|
23081
23081
|
});
|
|
@@ -23324,10 +23324,10 @@ function createInternalData() {
|
|
|
23324
23324
|
if (validatorMethod) {
|
|
23325
23325
|
customValid = validatorMethod(validParams);
|
|
23326
23326
|
} else {
|
|
23327
|
-
warnLog('vxe.error.notValidators', [validator]);
|
|
23327
|
+
warnLog('vxe.error.notValidators', [`[form] ${validator}`]);
|
|
23328
23328
|
}
|
|
23329
23329
|
} else {
|
|
23330
|
-
errLog('vxe.error.notValidators', [validator]);
|
|
23330
|
+
errLog('vxe.error.notValidators', [`[form] ${validator}`]);
|
|
23331
23331
|
}
|
|
23332
23332
|
} else {
|
|
23333
23333
|
customValid = validator(validParams);
|
|
@@ -23738,7 +23738,7 @@ function createInternalData() {
|
|
|
23738
23738
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
23739
23739
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
23740
23740
|
if (props.customLayout && props.items) {
|
|
23741
|
-
errLog('vxe.error.errConflicts', ['custom-layout', 'items']);
|
|
23741
|
+
errLog('vxe.error.errConflicts', ['[form] custom-layout', 'items']);
|
|
23742
23742
|
}
|
|
23743
23743
|
});
|
|
23744
23744
|
globalEvents.on($xeForm, 'resize', handleGlobalResizeEvent);
|
|
@@ -25818,9 +25818,9 @@ const ImageGroup = VxeImageGroup;
|
|
|
25818
25818
|
const VxeImagePreview = Object.assign(preview, {
|
|
25819
25819
|
install(app) {
|
|
25820
25820
|
app.component(preview.name, preview);
|
|
25821
|
-
index_esm_VxeUI.previewImage = openPreviewImage;
|
|
25822
25821
|
}
|
|
25823
25822
|
});
|
|
25823
|
+
index_esm_VxeUI.previewImage = openPreviewImage;
|
|
25824
25824
|
dynamicApp.use(VxeImagePreview);
|
|
25825
25825
|
index_esm_VxeUI.component(preview);
|
|
25826
25826
|
const ImagePreview = VxeImagePreview;
|
|
@@ -27939,7 +27939,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
27939
27939
|
return;
|
|
27940
27940
|
}
|
|
27941
27941
|
const posStorageMap = getStorageMap(storageKey);
|
|
27942
|
-
posStorageMap[id] = [boxElem.style.left, boxElem.style.top, boxElem.
|
|
27942
|
+
posStorageMap[id] = [boxElem.style.left, boxElem.style.top, boxElem.clientWidth, boxElem.clientHeight].concat(revertLocat ? [revertLocat.left, revertLocat.top, revertLocat.width, revertLocat.height] : []).map(val => val ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(val) : '').join(',');
|
|
27943
27943
|
localStorage.setItem(storageKey, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toJSONString(posStorageMap));
|
|
27944
27944
|
}
|
|
27945
27945
|
};
|
|
@@ -28898,7 +28898,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
28898
28898
|
}
|
|
28899
28899
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
28900
28900
|
if (props.storage && !props.id) {
|
|
28901
|
-
errLog('vxe.error.reqProp', ['modal
|
|
28901
|
+
errLog('vxe.error.reqProp', ['[modal] id']);
|
|
28902
28902
|
}
|
|
28903
28903
|
if (props.modelValue) {
|
|
28904
28904
|
openModal();
|
|
@@ -29479,6 +29479,7 @@ function select_createInternalData() {
|
|
|
29479
29479
|
default: () => getConfig().select.allowCreate
|
|
29480
29480
|
},
|
|
29481
29481
|
placement: String,
|
|
29482
|
+
lazyOptions: Array,
|
|
29482
29483
|
options: Array,
|
|
29483
29484
|
optionProps: Object,
|
|
29484
29485
|
optionGroups: Array,
|
|
@@ -29747,22 +29748,48 @@ function select_createInternalData() {
|
|
|
29747
29748
|
return false;
|
|
29748
29749
|
};
|
|
29749
29750
|
const getRemoteSelectLabel = value => {
|
|
29751
|
+
const {
|
|
29752
|
+
lazyOptions
|
|
29753
|
+
} = props;
|
|
29750
29754
|
const {
|
|
29751
29755
|
remoteValMaps,
|
|
29752
29756
|
optFullValMaps
|
|
29753
29757
|
} = internalData;
|
|
29758
|
+
const valueField = computeValueField.value;
|
|
29754
29759
|
const labelField = computeLabelField.value;
|
|
29755
29760
|
const remoteItem = remoteValMaps[value] || optFullValMaps[value];
|
|
29756
29761
|
const item = remoteItem ? remoteItem.item : null;
|
|
29757
|
-
|
|
29762
|
+
if (item) {
|
|
29763
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(item[labelField]);
|
|
29764
|
+
}
|
|
29765
|
+
if (lazyOptions) {
|
|
29766
|
+
const lazyItem = lazyOptions.find(item => item[valueField] === value);
|
|
29767
|
+
if (lazyItem) {
|
|
29768
|
+
return lazyItem[labelField];
|
|
29769
|
+
}
|
|
29770
|
+
}
|
|
29771
|
+
return value;
|
|
29758
29772
|
};
|
|
29759
29773
|
const getSelectLabel = value => {
|
|
29774
|
+
const {
|
|
29775
|
+
lazyOptions
|
|
29776
|
+
} = props;
|
|
29760
29777
|
const {
|
|
29761
29778
|
optFullValMaps
|
|
29762
29779
|
} = internalData;
|
|
29780
|
+
const valueField = computeValueField.value;
|
|
29763
29781
|
const labelField = computeLabelField.value;
|
|
29764
29782
|
const cacheItem = reactData.reactFlag ? optFullValMaps[value] : null;
|
|
29765
|
-
|
|
29783
|
+
if (cacheItem) {
|
|
29784
|
+
return cacheItem.item[labelField];
|
|
29785
|
+
}
|
|
29786
|
+
if (lazyOptions) {
|
|
29787
|
+
const lazyItem = lazyOptions.find(item => item[valueField] === value);
|
|
29788
|
+
if (lazyItem) {
|
|
29789
|
+
return lazyItem[labelField];
|
|
29790
|
+
}
|
|
29791
|
+
}
|
|
29792
|
+
return value;
|
|
29766
29793
|
};
|
|
29767
29794
|
const cacheItemMap = datas => {
|
|
29768
29795
|
const groupOptionsField = computeGroupOptionsField.value;
|
|
@@ -31693,7 +31720,7 @@ function select_createInternalData() {
|
|
|
31693
31720
|
* @deprecated
|
|
31694
31721
|
*/
|
|
31695
31722
|
jumpPage(currentPage) {
|
|
31696
|
-
warnLog('vxe.error.delFunc', ['jumpPage', 'setCurrentPage']);
|
|
31723
|
+
warnLog('vxe.error.delFunc', ['[pager] jumpPage', 'setCurrentPage']);
|
|
31697
31724
|
return $xePager.setCurrentPage(currentPage);
|
|
31698
31725
|
}
|
|
31699
31726
|
};
|
|
@@ -31769,7 +31796,7 @@ function select_createInternalData() {
|
|
|
31769
31796
|
if (renderFn) {
|
|
31770
31797
|
childNodes.push(renderFn());
|
|
31771
31798
|
} else {
|
|
31772
|
-
errLog('vxe.error.notProp', [`layouts -> ${name}`]);
|
|
31799
|
+
errLog('vxe.error.notProp', [`[pager] layouts -> ${name}`]);
|
|
31773
31800
|
}
|
|
31774
31801
|
});
|
|
31775
31802
|
if (slots.right) {
|
|
@@ -34325,13 +34352,13 @@ const Select = VxeSelect;
|
|
|
34325
34352
|
};
|
|
34326
34353
|
reactData.itemList = list.map(item => {
|
|
34327
34354
|
if (item.showAction) {
|
|
34328
|
-
warnLog('vxe.error.removeProp', ['
|
|
34355
|
+
warnLog('vxe.error.removeProp', ['[split] show-action']);
|
|
34329
34356
|
}
|
|
34330
34357
|
if (item.slots) {
|
|
34331
34358
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(item.slots, func => {
|
|
34332
34359
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
34333
34360
|
if (!slots[func]) {
|
|
34334
|
-
errLog('vxe.error.notSlot', [func]);
|
|
34361
|
+
errLog('vxe.error.notSlot', [`[split] ${func}`]);
|
|
34335
34362
|
}
|
|
34336
34363
|
}
|
|
34337
34364
|
});
|
|
@@ -35007,11 +35034,11 @@ const Select = VxeSelect;
|
|
|
35007
35034
|
}
|
|
35008
35035
|
reactData.itemList = val || [];
|
|
35009
35036
|
if ((showPrevButton || showNextButton) && reactData.itemList.length > 2) {
|
|
35010
|
-
errLog('vxe.error.modelConflicts', ['action-config.showPrevButton | action-config.showNextButton', '<vxe-split-pane ...> Only supports 2 panel']);
|
|
35037
|
+
errLog('vxe.error.modelConflicts', ['[split] action-config.showPrevButton | action-config.showNextButton', '<vxe-split-pane ...> Only supports 2 panel']);
|
|
35011
35038
|
}
|
|
35012
35039
|
reactData.itemList.forEach(item => {
|
|
35013
35040
|
if (item.showAction) {
|
|
35014
|
-
warnLog('vxe.error.removeProp', ['showAction']);
|
|
35041
|
+
warnLog('vxe.error.removeProp', ['[split] showAction']);
|
|
35015
35042
|
}
|
|
35016
35043
|
});
|
|
35017
35044
|
recalculate();
|
|
@@ -35030,7 +35057,7 @@ const Select = VxeSelect;
|
|
|
35030
35057
|
}
|
|
35031
35058
|
const actionOpts = computeActionOpts.value;
|
|
35032
35059
|
if (actionOpts.direction) {
|
|
35033
|
-
errLog('vxe.error.delProp', ['action-config.direction', 'action-config.showPrevButton | action-config.showNextButton']);
|
|
35060
|
+
errLog('vxe.error.delProp', ['[split] action-config.direction', 'action-config.showPrevButton | action-config.showNextButton']);
|
|
35034
35061
|
}
|
|
35035
35062
|
globalEvents.on($xeSplit, 'resize', handleGlobalResizeEvent);
|
|
35036
35063
|
});
|
|
@@ -35968,6 +35995,7 @@ function getRowUniqueId() {
|
|
|
35968
35995
|
columns: Array,
|
|
35969
35996
|
options: Array,
|
|
35970
35997
|
optionProps: Object,
|
|
35998
|
+
lazyOptions: Array,
|
|
35971
35999
|
zIndex: Number,
|
|
35972
36000
|
size: {
|
|
35973
36001
|
type: String,
|
|
@@ -36086,8 +36114,7 @@ function getRowUniqueId() {
|
|
|
36086
36114
|
});
|
|
36087
36115
|
const computeGridOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36088
36116
|
return Object.assign({}, getConfig().tableSelect.gridConfig, props.gridConfig, {
|
|
36089
|
-
data: undefined
|
|
36090
|
-
columns: undefined
|
|
36117
|
+
data: undefined
|
|
36091
36118
|
});
|
|
36092
36119
|
});
|
|
36093
36120
|
const computeSelectGridOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
@@ -36127,15 +36154,26 @@ function getRowUniqueId() {
|
|
|
36127
36154
|
});
|
|
36128
36155
|
const computeSelectLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36129
36156
|
const {
|
|
36130
|
-
modelValue
|
|
36157
|
+
modelValue,
|
|
36158
|
+
lazyOptions
|
|
36131
36159
|
} = props;
|
|
36132
36160
|
const {
|
|
36133
36161
|
fullRowMaps
|
|
36134
36162
|
} = reactData;
|
|
36163
|
+
const valueField = computeValueField.value;
|
|
36135
36164
|
const labelField = computeLabelField.value;
|
|
36136
36165
|
return (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue]).map(val => {
|
|
36137
36166
|
const cacheItem = fullRowMaps[val];
|
|
36138
|
-
|
|
36167
|
+
if (cacheItem) {
|
|
36168
|
+
return cacheItem.item[labelField];
|
|
36169
|
+
}
|
|
36170
|
+
if (lazyOptions) {
|
|
36171
|
+
const lazyItem = lazyOptions.find(item => item[valueField] === val);
|
|
36172
|
+
if (lazyItem) {
|
|
36173
|
+
return lazyItem[labelField];
|
|
36174
|
+
}
|
|
36175
|
+
}
|
|
36176
|
+
return val;
|
|
36139
36177
|
}).join(', ');
|
|
36140
36178
|
});
|
|
36141
36179
|
const computePopupWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
@@ -36219,6 +36257,9 @@ function getRowUniqueId() {
|
|
|
36219
36257
|
});
|
|
36220
36258
|
};
|
|
36221
36259
|
const loadTableColumn = columns => {
|
|
36260
|
+
if (!columns || !columns.length) {
|
|
36261
|
+
return;
|
|
36262
|
+
}
|
|
36222
36263
|
const {
|
|
36223
36264
|
multiple
|
|
36224
36265
|
} = props;
|
|
@@ -36271,12 +36312,12 @@ function getRowUniqueId() {
|
|
|
36271
36312
|
rowid = getRowUniqueId();
|
|
36272
36313
|
}
|
|
36273
36314
|
if (keyMaps[rowid]) {
|
|
36274
|
-
errLog('vxe.error.repeatKey', [rowKeyField
|
|
36315
|
+
errLog('vxe.error.repeatKey', [`[table-select] ${rowKeyField}`, rowid]);
|
|
36275
36316
|
}
|
|
36276
36317
|
keyMaps[rowid] = true;
|
|
36277
36318
|
const value = item[valueField];
|
|
36278
36319
|
if (rowMaps[value]) {
|
|
36279
|
-
errLog('vxe.error.repeatKey', [valueField
|
|
36320
|
+
errLog('vxe.error.repeatKey', [`[table-select] ${valueField}`, value]);
|
|
36280
36321
|
}
|
|
36281
36322
|
rowMaps[value] = {
|
|
36282
36323
|
item,
|
|
@@ -36605,7 +36646,7 @@ function getRowUniqueId() {
|
|
|
36605
36646
|
ref: refGrid,
|
|
36606
36647
|
rowConfig: rowOpts,
|
|
36607
36648
|
data: options,
|
|
36608
|
-
columns: tableColumns,
|
|
36649
|
+
columns: tableColumns.length ? tableColumns : selectGridOpts.columns,
|
|
36609
36650
|
height: '100%',
|
|
36610
36651
|
autoResize: true,
|
|
36611
36652
|
onRadioChange: radioChangeEvent,
|
|
@@ -36623,12 +36664,12 @@ function getRowUniqueId() {
|
|
|
36623
36664
|
cacheDataMap();
|
|
36624
36665
|
});
|
|
36625
36666
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.columns, val => {
|
|
36626
|
-
loadTableColumn(val
|
|
36667
|
+
loadTableColumn(val);
|
|
36627
36668
|
});
|
|
36628
36669
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
36629
36670
|
updateModel(val);
|
|
36630
36671
|
});
|
|
36631
|
-
loadTableColumn(props.columns
|
|
36672
|
+
loadTableColumn(props.columns);
|
|
36632
36673
|
cacheDataMap();
|
|
36633
36674
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
36634
36675
|
const {
|
|
@@ -36652,7 +36693,7 @@ function getRowUniqueId() {
|
|
|
36652
36693
|
});
|
|
36653
36694
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
36654
36695
|
if (!VxeTableGridComponent) {
|
|
36655
|
-
errLog('vxe.error.reqComp', ['vxe-grid']);
|
|
36696
|
+
errLog('vxe.error.reqComp', ['[table-select] vxe-grid']);
|
|
36656
36697
|
}
|
|
36657
36698
|
});
|
|
36658
36699
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTableSelect', $xeTableSelect);
|
|
@@ -37338,11 +37379,11 @@ const scrollbarOffsetSize = 20;
|
|
|
37338
37379
|
return handlePrevNext(true);
|
|
37339
37380
|
},
|
|
37340
37381
|
prevTab() {
|
|
37341
|
-
warnLog('vxe.error.delFunc', ['prevTab', 'prev']);
|
|
37382
|
+
warnLog('vxe.error.delFunc', ['[tabs] prevTab', 'prev']);
|
|
37342
37383
|
return tabsMethods.prev();
|
|
37343
37384
|
},
|
|
37344
37385
|
nextTab() {
|
|
37345
|
-
warnLog('vxe.error.delFunc', ['nextTab', 'next']);
|
|
37386
|
+
warnLog('vxe.error.delFunc', ['[tabs] nextTab', 'next']);
|
|
37346
37387
|
return tabsMethods.next();
|
|
37347
37388
|
}
|
|
37348
37389
|
};
|
|
@@ -38755,6 +38796,7 @@ function tree_createInternalData() {
|
|
|
38755
38796
|
// 已废弃
|
|
38756
38797
|
isHover: Boolean,
|
|
38757
38798
|
expandAll: Boolean,
|
|
38799
|
+
expandNodeKeys: Array,
|
|
38758
38800
|
showLine: {
|
|
38759
38801
|
type: Boolean,
|
|
38760
38802
|
default: () => getConfig().tree.showLine
|
|
@@ -39339,6 +39381,7 @@ function tree_createInternalData() {
|
|
|
39339
39381
|
const loadData = list => {
|
|
39340
39382
|
const {
|
|
39341
39383
|
expandAll,
|
|
39384
|
+
expandNodeKeys,
|
|
39342
39385
|
transform
|
|
39343
39386
|
} = props;
|
|
39344
39387
|
const {
|
|
@@ -39364,7 +39407,7 @@ function tree_createInternalData() {
|
|
|
39364
39407
|
handleData(true);
|
|
39365
39408
|
if (sYLoad) {
|
|
39366
39409
|
if (!(props.height || props.maxHeight)) {
|
|
39367
|
-
errLog('vxe.error.reqProp', ['height | max-height | virtual-y-config.enabled=false']);
|
|
39410
|
+
errLog('vxe.error.reqProp', ['[tree] height | max-height | virtual-y-config.enabled=false']);
|
|
39368
39411
|
}
|
|
39369
39412
|
}
|
|
39370
39413
|
return computeScrollLoad().then(() => {
|
|
@@ -39373,6 +39416,8 @@ function tree_createInternalData() {
|
|
|
39373
39416
|
internalData.initialized = true;
|
|
39374
39417
|
if (expandAll) {
|
|
39375
39418
|
$xeTree.setAllExpandNode(true);
|
|
39419
|
+
} else if (expandNodeKeys && expandNodeKeys.length) {
|
|
39420
|
+
$xeTree.setExpandByNodeId(expandNodeKeys, true);
|
|
39376
39421
|
}
|
|
39377
39422
|
handleSetCheckboxByNodeId(props.checkNodeKeys || [], true);
|
|
39378
39423
|
}
|
|
@@ -40406,7 +40451,7 @@ function tree_createInternalData() {
|
|
|
40406
40451
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(nodeList, (childRow, index, items, path, parent, nodes) => {
|
|
40407
40452
|
const itemNodeId = getNodeId(childRow);
|
|
40408
40453
|
nodeMaps[itemNodeId] = {
|
|
40409
|
-
item:
|
|
40454
|
+
item: childRow,
|
|
40410
40455
|
index: -1,
|
|
40411
40456
|
items,
|
|
40412
40457
|
parent: parent || parentNodeItem.item,
|
|
@@ -40903,6 +40948,7 @@ function tree_select_createInternalData() {
|
|
|
40903
40948
|
popupClassName: [String, Function],
|
|
40904
40949
|
prefixIcon: String,
|
|
40905
40950
|
placement: String,
|
|
40951
|
+
lazyOptions: Array,
|
|
40906
40952
|
options: Array,
|
|
40907
40953
|
optionProps: Object,
|
|
40908
40954
|
zIndex: Number,
|
|
@@ -41090,16 +41136,27 @@ function tree_select_createInternalData() {
|
|
|
41090
41136
|
});
|
|
41091
41137
|
const computeSelectLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
41092
41138
|
const {
|
|
41093
|
-
modelValue
|
|
41139
|
+
modelValue,
|
|
41140
|
+
lazyOptions
|
|
41094
41141
|
} = props;
|
|
41095
41142
|
const {
|
|
41096
41143
|
fullNodeMaps
|
|
41097
41144
|
} = internalData;
|
|
41145
|
+
const valueField = computeValueField.value;
|
|
41098
41146
|
const labelField = computeLabelField.value;
|
|
41099
41147
|
const selectVals = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(modelValue) ? [] : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue];
|
|
41100
41148
|
return selectVals.map(val => {
|
|
41101
41149
|
const cacheItem = fullNodeMaps[val];
|
|
41102
|
-
|
|
41150
|
+
if (cacheItem) {
|
|
41151
|
+
return cacheItem.item[labelField];
|
|
41152
|
+
}
|
|
41153
|
+
if (lazyOptions) {
|
|
41154
|
+
const lazyItem = lazyOptions.find(item => item[valueField] === val);
|
|
41155
|
+
if (lazyItem) {
|
|
41156
|
+
return lazyItem[labelField];
|
|
41157
|
+
}
|
|
41158
|
+
}
|
|
41159
|
+
return val;
|
|
41103
41160
|
}).join(', ');
|
|
41104
41161
|
});
|
|
41105
41162
|
const computePopupWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
@@ -41163,12 +41220,12 @@ function tree_select_createInternalData() {
|
|
|
41163
41220
|
nodeid = tree_select_getOptUniqueId();
|
|
41164
41221
|
}
|
|
41165
41222
|
if (keyMaps[nodeid]) {
|
|
41166
|
-
errLog('vxe.error.repeatKey', [nodeKeyField
|
|
41223
|
+
errLog('vxe.error.repeatKey', [`[tree-select] ${nodeKeyField}`, nodeid]);
|
|
41167
41224
|
}
|
|
41168
41225
|
keyMaps[nodeid] = true;
|
|
41169
41226
|
const value = item[valueField];
|
|
41170
41227
|
if (nodeMaps[value]) {
|
|
41171
|
-
errLog('vxe.error.repeatKey', [valueField
|
|
41228
|
+
errLog('vxe.error.repeatKey', [`[tree-select] ${valueField}`, value]);
|
|
41172
41229
|
}
|
|
41173
41230
|
nodeMaps[value] = {
|
|
41174
41231
|
item,
|
|
@@ -41667,6 +41724,7 @@ function tree_select_createInternalData() {
|
|
|
41667
41724
|
hasChildField: treeOpts.hasChildField || hasChildField,
|
|
41668
41725
|
accordion: treeOpts.accordion,
|
|
41669
41726
|
expandAll: treeOpts.expandAll,
|
|
41727
|
+
expandNodeKeys: treeOpts.expandNodeKeys,
|
|
41670
41728
|
nodeConfig: treeNodeOpts,
|
|
41671
41729
|
lazy: treeOpts.lazy,
|
|
41672
41730
|
loadMethod: treeOpts.loadMethod,
|
|
@@ -43559,10 +43617,10 @@ const saveLocalFile = options => {
|
|
|
43559
43617
|
});
|
|
43560
43618
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
43561
43619
|
if (props.multiple && props.singleMode) {
|
|
43562
|
-
errLog('vxe.error.errConflicts', ['multiple', 'single-mode']);
|
|
43620
|
+
errLog('vxe.error.errConflicts', ['[upload] multiple', 'single-mode']);
|
|
43563
43621
|
}
|
|
43564
43622
|
if (props.imageStyle) {
|
|
43565
|
-
warnLog('vxe.error.delProp', ['image-style', 'image-config']);
|
|
43623
|
+
warnLog('vxe.error.delProp', ['[upload] image-style', 'image-config']);
|
|
43566
43624
|
}
|
|
43567
43625
|
if (props.dragSort) {
|
|
43568
43626
|
initTpImg();
|