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/dist/all.esm.js
CHANGED
|
@@ -101,7 +101,7 @@ function checkDynamic() {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
const { log } = VxeUI;
|
|
104
|
-
const uiVersion = `ui v${"4.20.
|
|
104
|
+
const uiVersion = `ui v${"4.20.15"}`;
|
|
105
105
|
function createComponentLog(name) {
|
|
106
106
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
107
107
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -115,7 +115,7 @@ function createComponentLog(name) {
|
|
|
115
115
|
const warnLog$j = log.create('warn', uiVersion);
|
|
116
116
|
log.create('error', uiVersion);
|
|
117
117
|
|
|
118
|
-
const version = "4.20.
|
|
118
|
+
const version = "4.20.15";
|
|
119
119
|
VxeUI.uiVersion = version;
|
|
120
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
121
121
|
function config(options) {
|
|
@@ -33826,6 +33826,9 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33826
33826
|
}
|
|
33827
33827
|
if (!reactData.initialized) {
|
|
33828
33828
|
reactData.initialized = true;
|
|
33829
|
+
nextTick(() => {
|
|
33830
|
+
bindScrollbarResize();
|
|
33831
|
+
});
|
|
33829
33832
|
}
|
|
33830
33833
|
reactData.isActivated = true;
|
|
33831
33834
|
reactData.isAniVisible = true;
|
|
@@ -35107,7 +35110,6 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
35107
35110
|
}
|
|
35108
35111
|
});
|
|
35109
35112
|
reLayoutFlag.value++;
|
|
35110
|
-
bindScrollbarResize();
|
|
35111
35113
|
globalEvents$1.on($xeSelect, 'mousedown', handleGlobalMousedownEvent);
|
|
35112
35114
|
globalEvents$1.on($xeSelect, 'keydown', handleGlobalKeydownEvent);
|
|
35113
35115
|
globalEvents$1.on($xeSelect, 'blur', handleGlobalBlurEvent);
|
|
@@ -40905,11 +40907,21 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
40905
40907
|
const computePropsOpts = computed(() => {
|
|
40906
40908
|
return props.optionProps || {};
|
|
40907
40909
|
});
|
|
40910
|
+
const computeCheckboxOpts = computed(() => {
|
|
40911
|
+
const { multiple } = props;
|
|
40912
|
+
const gridOpts = computeGridOpts.value;
|
|
40913
|
+
return Object.assign({
|
|
40914
|
+
reserve: multiple,
|
|
40915
|
+
showReserveStatus: multiple
|
|
40916
|
+
}, getConfig$a().table.checkboxConfig, gridOpts.checkboxConfig);
|
|
40917
|
+
});
|
|
40908
40918
|
const computeRowOpts = computed(() => {
|
|
40919
|
+
const { multiple } = props;
|
|
40909
40920
|
const gridOpts = computeGridOpts.value;
|
|
40910
|
-
|
|
40921
|
+
const valueField = computeValueField.value;
|
|
40922
|
+
return Object.assign({
|
|
40911
40923
|
isCurrent: true
|
|
40912
|
-
});
|
|
40924
|
+
}, multiple ? { keyField: valueField } : {}, getConfig$a().table.rowConfig, gridOpts.rowConfig);
|
|
40913
40925
|
});
|
|
40914
40926
|
const computeRowKeyField = computed(() => {
|
|
40915
40927
|
const rowOpts = computeRowOpts.value;
|
|
@@ -40933,6 +40945,7 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
40933
40945
|
});
|
|
40934
40946
|
const computeSelectGridOpts = computed(() => {
|
|
40935
40947
|
const gridOpts = computeGridOpts.value;
|
|
40948
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
40936
40949
|
const { pagerConfig, proxyConfig } = gridOpts;
|
|
40937
40950
|
if (proxyConfig) {
|
|
40938
40951
|
const proxyAjax = proxyConfig.ajax;
|
|
@@ -40959,10 +40972,10 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
40959
40972
|
}
|
|
40960
40973
|
});
|
|
40961
40974
|
}
|
|
40962
|
-
return Object.assign({}, gridOpts, { proxyConfig: newProxyConfig });
|
|
40975
|
+
return Object.assign({}, gridOpts, { checkboxConfig: checkboxOpts, proxyConfig: newProxyConfig });
|
|
40963
40976
|
}
|
|
40964
40977
|
}
|
|
40965
|
-
return gridOpts;
|
|
40978
|
+
return Object.assign({}, gridOpts, { checkboxConfig: checkboxOpts });
|
|
40966
40979
|
});
|
|
40967
40980
|
const computeSelectLabel = computed(() => {
|
|
40968
40981
|
const { modelValue, lazyOptions } = props;
|
|
@@ -41031,20 +41044,38 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
41031
41044
|
};
|
|
41032
41045
|
const tableSelectPrivateMethods = {};
|
|
41033
41046
|
const getRowid = (option) => {
|
|
41034
|
-
const
|
|
41035
|
-
const rowid = option[
|
|
41047
|
+
const rowKeyField = computeRowKeyField.value;
|
|
41048
|
+
const rowid = option[rowKeyField];
|
|
41036
41049
|
return rowid ? encodeURIComponent(rowid) : '';
|
|
41037
41050
|
};
|
|
41038
41051
|
const getRowsByValue = (modelValue) => {
|
|
41039
41052
|
const { fullRowMaps } = internalData;
|
|
41053
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
41054
|
+
const rowKeyField = computeRowKeyField.value;
|
|
41055
|
+
const valueField = computeValueField.value;
|
|
41056
|
+
const labelField = computeLabelField.value;
|
|
41040
41057
|
const rows = [];
|
|
41041
41058
|
const vals = XEUtils.eqNull(modelValue) ? [] : (XEUtils.isArray(modelValue) ? modelValue : [modelValue]);
|
|
41042
|
-
|
|
41043
|
-
|
|
41044
|
-
|
|
41045
|
-
rows.push(cacheItem
|
|
41046
|
-
|
|
41047
|
-
|
|
41059
|
+
if (checkboxOpts.reserve) {
|
|
41060
|
+
vals.forEach(val => {
|
|
41061
|
+
const cacheItem = fullRowMaps[val];
|
|
41062
|
+
rows.push(cacheItem
|
|
41063
|
+
? cacheItem.item
|
|
41064
|
+
: {
|
|
41065
|
+
[rowKeyField]: val,
|
|
41066
|
+
[valueField]: val,
|
|
41067
|
+
[labelField]: val
|
|
41068
|
+
});
|
|
41069
|
+
});
|
|
41070
|
+
}
|
|
41071
|
+
else {
|
|
41072
|
+
vals.forEach(val => {
|
|
41073
|
+
const cacheItem = fullRowMaps[val];
|
|
41074
|
+
if (cacheItem) {
|
|
41075
|
+
rows.push(cacheItem.item);
|
|
41076
|
+
}
|
|
41077
|
+
});
|
|
41078
|
+
}
|
|
41048
41079
|
return rows;
|
|
41049
41080
|
};
|
|
41050
41081
|
const updateModel = (modelValue) => {
|
|
@@ -41307,9 +41338,13 @@ var VxeTableSelectComponent = defineVxeComponent({
|
|
|
41307
41338
|
};
|
|
41308
41339
|
const checkboxChangeEvent = (params) => {
|
|
41309
41340
|
const { $grid, $event, row } = params;
|
|
41341
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
41310
41342
|
const valueField = computeValueField.value;
|
|
41311
41343
|
if ($grid) {
|
|
41312
41344
|
const checkboxRecords = $grid.getCheckboxRecords();
|
|
41345
|
+
if (checkboxOpts.reserve) {
|
|
41346
|
+
checkboxRecords.push(...$grid.getCheckboxReserveRecords());
|
|
41347
|
+
}
|
|
41313
41348
|
const value = checkboxRecords.map(row => {
|
|
41314
41349
|
return row[valueField];
|
|
41315
41350
|
});
|