vxe-pc-ui 4.20.13 → 4.20.15
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 +50 -15
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/select/src/select.js +3 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +45 -12
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +55 -14
- package/lib/index.umd.min.js +1 -1
- package/lib/select/src/select.js +3 -1
- 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 +50 -11
- package/lib/table-select/src/table-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/select/src/select.ts +3 -1
- package/packages/table-select/src/table-select.ts +47 -14
- /package/es/icon/{iconfont.1792480474156.ttf → iconfont.1792662810345.ttf} +0 -0
- /package/es/icon/{iconfont.1792480474156.woff → iconfont.1792662810345.woff} +0 -0
- /package/es/icon/{iconfont.1792480474156.woff2 → iconfont.1792662810345.woff2} +0 -0
- /package/es/{iconfont.1792480474156.ttf → iconfont.1792662810345.ttf} +0 -0
- /package/es/{iconfont.1792480474156.woff → iconfont.1792662810345.woff} +0 -0
- /package/es/{iconfont.1792480474156.woff2 → iconfont.1792662810345.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1792480474156.ttf → iconfont.1792662810345.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1792480474156.woff → iconfont.1792662810345.woff} +0 -0
- /package/lib/icon/style/{iconfont.1792480474156.woff2 → iconfont.1792662810345.woff2} +0 -0
- /package/lib/{iconfont.1792480474156.ttf → iconfont.1792662810345.ttf} +0 -0
- /package/lib/{iconfont.1792480474156.woff → iconfont.1792662810345.woff} +0 -0
- /package/lib/{iconfont.1792480474156.woff2 → iconfont.1792662810345.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -5334,7 +5334,7 @@ function checkDynamic() {
|
|
|
5334
5334
|
const {
|
|
5335
5335
|
log: log_log
|
|
5336
5336
|
} = VxeUI;
|
|
5337
|
-
const uiVersion = `ui v${"4.20.
|
|
5337
|
+
const uiVersion = `ui v${"4.20.15"}`;
|
|
5338
5338
|
function createComponentLog(name) {
|
|
5339
5339
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
5340
5340
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -5352,7 +5352,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
5352
5352
|
|
|
5353
5353
|
|
|
5354
5354
|
|
|
5355
|
-
const ui_version = "4.20.
|
|
5355
|
+
const ui_version = "4.20.15";
|
|
5356
5356
|
VxeUI.uiVersion = ui_version;
|
|
5357
5357
|
VxeUI.dynamicApp = dynamicApp;
|
|
5358
5358
|
function config(options) {
|
|
@@ -42902,6 +42902,9 @@ function select_createInternalData() {
|
|
|
42902
42902
|
}
|
|
42903
42903
|
if (!reactData.initialized) {
|
|
42904
42904
|
reactData.initialized = true;
|
|
42905
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
42906
|
+
bindScrollbarResize();
|
|
42907
|
+
});
|
|
42905
42908
|
}
|
|
42906
42909
|
reactData.isActivated = true;
|
|
42907
42910
|
reactData.isAniVisible = true;
|
|
@@ -44266,7 +44269,6 @@ function select_createInternalData() {
|
|
|
44266
44269
|
}
|
|
44267
44270
|
});
|
|
44268
44271
|
reLayoutFlag.value++;
|
|
44269
|
-
bindScrollbarResize();
|
|
44270
44272
|
select_globalEvents.on($xeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
44271
44273
|
select_globalEvents.on($xeSelect, 'keydown', handleGlobalKeydownEvent);
|
|
44272
44274
|
select_globalEvents.on($xeSelect, 'blur', handleGlobalBlurEvent);
|
|
@@ -50712,11 +50714,27 @@ function table_select_createInternalData() {
|
|
|
50712
50714
|
const computePropsOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
50713
50715
|
return props.optionProps || {};
|
|
50714
50716
|
});
|
|
50717
|
+
const computeCheckboxOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
50718
|
+
const {
|
|
50719
|
+
multiple
|
|
50720
|
+
} = props;
|
|
50721
|
+
const gridOpts = computeGridOpts.value;
|
|
50722
|
+
return Object.assign({
|
|
50723
|
+
reserve: multiple,
|
|
50724
|
+
showReserveStatus: multiple
|
|
50725
|
+
}, getConfig().table.checkboxConfig, gridOpts.checkboxConfig);
|
|
50726
|
+
});
|
|
50715
50727
|
const computeRowOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
50728
|
+
const {
|
|
50729
|
+
multiple
|
|
50730
|
+
} = props;
|
|
50716
50731
|
const gridOpts = computeGridOpts.value;
|
|
50717
|
-
|
|
50732
|
+
const valueField = computeValueField.value;
|
|
50733
|
+
return Object.assign({
|
|
50718
50734
|
isCurrent: true
|
|
50719
|
-
}
|
|
50735
|
+
}, multiple ? {
|
|
50736
|
+
keyField: valueField
|
|
50737
|
+
} : {}, getConfig().table.rowConfig, gridOpts.rowConfig);
|
|
50720
50738
|
});
|
|
50721
50739
|
const computeRowKeyField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
50722
50740
|
const rowOpts = computeRowOpts.value;
|
|
@@ -50740,6 +50758,7 @@ function table_select_createInternalData() {
|
|
|
50740
50758
|
});
|
|
50741
50759
|
const computeSelectGridOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
50742
50760
|
const gridOpts = computeGridOpts.value;
|
|
50761
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
50743
50762
|
const {
|
|
50744
50763
|
pagerConfig,
|
|
50745
50764
|
proxyConfig
|
|
@@ -50779,11 +50798,14 @@ function table_select_createInternalData() {
|
|
|
50779
50798
|
});
|
|
50780
50799
|
}
|
|
50781
50800
|
return Object.assign({}, gridOpts, {
|
|
50801
|
+
checkboxConfig: checkboxOpts,
|
|
50782
50802
|
proxyConfig: newProxyConfig
|
|
50783
50803
|
});
|
|
50784
50804
|
}
|
|
50785
50805
|
}
|
|
50786
|
-
return gridOpts
|
|
50806
|
+
return Object.assign({}, gridOpts, {
|
|
50807
|
+
checkboxConfig: checkboxOpts
|
|
50808
|
+
});
|
|
50787
50809
|
});
|
|
50788
50810
|
const computeSelectLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
50789
50811
|
const {
|
|
@@ -50859,22 +50881,37 @@ function table_select_createInternalData() {
|
|
|
50859
50881
|
};
|
|
50860
50882
|
const tableSelectPrivateMethods = {};
|
|
50861
50883
|
const getRowid = option => {
|
|
50862
|
-
const
|
|
50863
|
-
const rowid = option[
|
|
50884
|
+
const rowKeyField = computeRowKeyField.value;
|
|
50885
|
+
const rowid = option[rowKeyField];
|
|
50864
50886
|
return rowid ? encodeURIComponent(rowid) : '';
|
|
50865
50887
|
};
|
|
50866
50888
|
const getRowsByValue = modelValue => {
|
|
50867
50889
|
const {
|
|
50868
50890
|
fullRowMaps
|
|
50869
50891
|
} = internalData;
|
|
50892
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
50893
|
+
const rowKeyField = computeRowKeyField.value;
|
|
50894
|
+
const valueField = computeValueField.value;
|
|
50895
|
+
const labelField = computeLabelField.value;
|
|
50870
50896
|
const rows = [];
|
|
50871
50897
|
const vals = 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];
|
|
50872
|
-
|
|
50873
|
-
|
|
50874
|
-
|
|
50875
|
-
rows.push(cacheItem.item
|
|
50876
|
-
|
|
50877
|
-
|
|
50898
|
+
if (checkboxOpts.reserve) {
|
|
50899
|
+
vals.forEach(val => {
|
|
50900
|
+
const cacheItem = fullRowMaps[val];
|
|
50901
|
+
rows.push(cacheItem ? cacheItem.item : {
|
|
50902
|
+
[rowKeyField]: val,
|
|
50903
|
+
[valueField]: val,
|
|
50904
|
+
[labelField]: val
|
|
50905
|
+
});
|
|
50906
|
+
});
|
|
50907
|
+
} else {
|
|
50908
|
+
vals.forEach(val => {
|
|
50909
|
+
const cacheItem = fullRowMaps[val];
|
|
50910
|
+
if (cacheItem) {
|
|
50911
|
+
rows.push(cacheItem.item);
|
|
50912
|
+
}
|
|
50913
|
+
});
|
|
50914
|
+
}
|
|
50878
50915
|
return rows;
|
|
50879
50916
|
};
|
|
50880
50917
|
const updateModel = modelValue => {
|
|
@@ -51177,9 +51214,13 @@ function table_select_createInternalData() {
|
|
|
51177
51214
|
$event,
|
|
51178
51215
|
row
|
|
51179
51216
|
} = params;
|
|
51217
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
51180
51218
|
const valueField = computeValueField.value;
|
|
51181
51219
|
if ($grid) {
|
|
51182
51220
|
const checkboxRecords = $grid.getCheckboxRecords();
|
|
51221
|
+
if (checkboxOpts.reserve) {
|
|
51222
|
+
checkboxRecords.push(...$grid.getCheckboxReserveRecords());
|
|
51223
|
+
}
|
|
51183
51224
|
const value = checkboxRecords.map(row => {
|
|
51184
51225
|
return row[valueField];
|
|
51185
51226
|
});
|