vxe-table 4.7.57 → 4.7.59
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/grid/src/grid.js +18 -13
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/edit/hook.js +10 -3
- package/es/table/render/index.js +10 -0
- package/es/table/style.css +1 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +4 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +1 -1
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +18 -13
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +50 -20
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/edit/hook.js +10 -3
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/render/index.js +15 -0
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +4 -3
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +19 -13
- package/packages/table/module/edit/hook.ts +10 -3
- package/packages/table/module/export/hook.ts +2 -2
- package/packages/table/render/index.ts +14 -0
- package/packages/ui/index.ts +2 -1
- package/styles/components/table.scss +1 -4
- /package/es/{iconfont.1721615372181.ttf → iconfont.1721660188146.ttf} +0 -0
- /package/es/{iconfont.1721615372181.woff → iconfont.1721660188146.woff} +0 -0
- /package/es/{iconfont.1721615372181.woff2 → iconfont.1721660188146.woff2} +0 -0
- /package/lib/{iconfont.1721615372181.ttf → iconfont.1721660188146.ttf} +0 -0
- /package/lib/{iconfont.1721615372181.woff → iconfont.1721660188146.woff} +0 -0
- /package/lib/{iconfont.1721615372181.woff2 → iconfont.1721660188146.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1951,9 +1951,9 @@ function eqEmptyValue(cellValue) {
|
|
|
1951
1951
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1952
1952
|
|
|
1953
1953
|
|
|
1954
|
-
const version = "4.7.
|
|
1954
|
+
const version = "4.7.59";
|
|
1955
1955
|
core_.VxeUI.version = version;
|
|
1956
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
1956
|
+
core_.VxeUI.tableVersion = "4.7.59";
|
|
1957
1957
|
core_.VxeUI.setConfig({
|
|
1958
1958
|
emptyCell: ' ',
|
|
1959
1959
|
table: {
|
|
@@ -2124,7 +2124,8 @@ core_.VxeUI.setConfig({
|
|
|
2124
2124
|
proxyConfig: {
|
|
2125
2125
|
enabled: true,
|
|
2126
2126
|
autoLoad: true,
|
|
2127
|
-
|
|
2127
|
+
showResponseMsg: true,
|
|
2128
|
+
showActiveMsg: true,
|
|
2128
2129
|
props: {
|
|
2129
2130
|
list: null,
|
|
2130
2131
|
result: 'result',
|
|
@@ -2331,7 +2332,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2331
2332
|
const {
|
|
2332
2333
|
log: log_log
|
|
2333
2334
|
} = core_.VxeUI;
|
|
2334
|
-
const log_version = `table v${"4.7.
|
|
2335
|
+
const log_version = `table v${"4.7.59"}`;
|
|
2335
2336
|
const warnLog = log_log.create('warn', log_version);
|
|
2336
2337
|
const errLog = log_log.create('error', log_version);
|
|
2337
2338
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -17771,11 +17772,18 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17771
17772
|
* 获取表格数据集,包含新增、删除、修改、标记
|
|
17772
17773
|
*/
|
|
17773
17774
|
getRecordset() {
|
|
17775
|
+
const removeRecords = editMethods.getRemoveRecords();
|
|
17776
|
+
const pendingRecords = $xeTable.getPendingRecords();
|
|
17777
|
+
const delRecords = removeRecords.concat(pendingRecords);
|
|
17778
|
+
// 如果已经被删除,则无需放到更新数组
|
|
17779
|
+
const updateRecords = editMethods.getUpdateRecords().filter(row => {
|
|
17780
|
+
return !delRecords.some(item => $xeTable.eqRow(item, row));
|
|
17781
|
+
});
|
|
17774
17782
|
return {
|
|
17775
17783
|
insertRecords: editMethods.getInsertRecords(),
|
|
17776
|
-
removeRecords
|
|
17777
|
-
updateRecords
|
|
17778
|
-
pendingRecords
|
|
17784
|
+
removeRecords,
|
|
17785
|
+
updateRecords,
|
|
17786
|
+
pendingRecords
|
|
17779
17787
|
};
|
|
17780
17788
|
},
|
|
17781
17789
|
/**
|
|
@@ -21974,6 +21982,23 @@ render_renderer.mixin({
|
|
|
21974
21982
|
})];
|
|
21975
21983
|
}
|
|
21976
21984
|
},
|
|
21985
|
+
VxeImageGroup: {
|
|
21986
|
+
renderDefault(renderOpts, params) {
|
|
21987
|
+
const {
|
|
21988
|
+
row,
|
|
21989
|
+
column
|
|
21990
|
+
} = params;
|
|
21991
|
+
const {
|
|
21992
|
+
props
|
|
21993
|
+
} = renderOpts;
|
|
21994
|
+
const cellValue = getCellValue(row, column);
|
|
21995
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(getDefaultComponent(renderOpts), {
|
|
21996
|
+
...props,
|
|
21997
|
+
urlList: cellValue,
|
|
21998
|
+
...getEditOns(renderOpts, params)
|
|
21999
|
+
})];
|
|
22000
|
+
}
|
|
22001
|
+
},
|
|
21977
22002
|
// 以下已废弃
|
|
21978
22003
|
$input: {
|
|
21979
22004
|
autofocus: '.vxe-input--inner',
|
|
@@ -22783,9 +22808,13 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22783
22808
|
const computeProxyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
22784
22809
|
return Object.assign({}, grid_getConfig().grid.proxyConfig, props.proxyConfig);
|
|
22785
22810
|
});
|
|
22786
|
-
const
|
|
22811
|
+
const computeIsRespMsg = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
22812
|
+
const proxyOpts = computeProxyOpts.value;
|
|
22813
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(proxyOpts.message) ? proxyOpts.message : proxyOpts.showResponseMsg;
|
|
22814
|
+
});
|
|
22815
|
+
const computeIsActiveMsg = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
22787
22816
|
const proxyOpts = computeProxyOpts.value;
|
|
22788
|
-
return proxyOpts.
|
|
22817
|
+
return proxyOpts.showActiveMsg;
|
|
22789
22818
|
});
|
|
22790
22819
|
const computePagerOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
22791
22820
|
return Object.assign({}, grid_getConfig().grid.pagerConfig, props.pagerConfig);
|
|
@@ -22907,14 +22936,14 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22907
22936
|
}
|
|
22908
22937
|
};
|
|
22909
22938
|
const triggerPendingEvent = code => {
|
|
22910
|
-
const
|
|
22939
|
+
const isActiveMsg = computeIsActiveMsg.value;
|
|
22911
22940
|
const $xeTable = refTable.value;
|
|
22912
22941
|
const selectRecords = $xeTable.getCheckboxRecords();
|
|
22913
22942
|
if (selectRecords.length) {
|
|
22914
22943
|
$xeTable.togglePendingRow(selectRecords);
|
|
22915
22944
|
gridExtendTableMethods.clearCheckboxRow();
|
|
22916
22945
|
} else {
|
|
22917
|
-
if (
|
|
22946
|
+
if (isActiveMsg) {
|
|
22918
22947
|
if (core_.VxeUI.modal) {
|
|
22919
22948
|
core_.VxeUI.modal.message({
|
|
22920
22949
|
id: code,
|
|
@@ -22939,9 +22968,9 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22939
22968
|
return msg || grid_getI18n(defaultMsg);
|
|
22940
22969
|
};
|
|
22941
22970
|
const handleDeleteRow = (code, alertKey, callback) => {
|
|
22942
|
-
const
|
|
22971
|
+
const isActiveMsg = computeIsActiveMsg.value;
|
|
22943
22972
|
const selectRecords = gridExtendTableMethods.getCheckboxRecords();
|
|
22944
|
-
if (
|
|
22973
|
+
if (isActiveMsg) {
|
|
22945
22974
|
if (selectRecords.length) {
|
|
22946
22975
|
if (core_.VxeUI.modal) {
|
|
22947
22976
|
return core_.VxeUI.modal.confirm({
|
|
@@ -23471,7 +23500,8 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23471
23500
|
tablePage,
|
|
23472
23501
|
formData
|
|
23473
23502
|
} = reactData;
|
|
23474
|
-
const
|
|
23503
|
+
const isActiveMsg = computeIsActiveMsg.value;
|
|
23504
|
+
const isRespMsg = computeIsRespMsg.value;
|
|
23475
23505
|
const proxyOpts = computeProxyOpts.value;
|
|
23476
23506
|
const pagerOpts = computePagerOpts.value;
|
|
23477
23507
|
const toolbarOpts = computeToolbarOpts.value;
|
|
@@ -23676,7 +23706,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23676
23706
|
return Promise.resolve((beforeDelete || ajaxMethods)(...applyArgs)).then(rest => {
|
|
23677
23707
|
reactData.tableLoading = false;
|
|
23678
23708
|
$xeTable.setPendingRow(removeRecords, false);
|
|
23679
|
-
if (
|
|
23709
|
+
if (isRespMsg) {
|
|
23680
23710
|
if (core_.VxeUI.modal) {
|
|
23681
23711
|
core_.VxeUI.modal.message({
|
|
23682
23712
|
content: getRespMsg(rest, 'vxe.grid.delSuccess'),
|
|
@@ -23694,7 +23724,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23694
23724
|
};
|
|
23695
23725
|
}).catch(rest => {
|
|
23696
23726
|
reactData.tableLoading = false;
|
|
23697
|
-
if (
|
|
23727
|
+
if (isRespMsg) {
|
|
23698
23728
|
if (core_.VxeUI.modal) {
|
|
23699
23729
|
core_.VxeUI.modal.message({
|
|
23700
23730
|
id: code,
|
|
@@ -23709,7 +23739,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23709
23739
|
});
|
|
23710
23740
|
});
|
|
23711
23741
|
} else {
|
|
23712
|
-
if (
|
|
23742
|
+
if (isActiveMsg) {
|
|
23713
23743
|
if (core_.VxeUI.modal) {
|
|
23714
23744
|
core_.VxeUI.modal.message({
|
|
23715
23745
|
id: code,
|
|
@@ -23769,7 +23799,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23769
23799
|
return Promise.resolve((beforeSave || ajaxMethods)(...applyArgs)).then(rest => {
|
|
23770
23800
|
reactData.tableLoading = false;
|
|
23771
23801
|
$xeTable.clearPendingRow();
|
|
23772
|
-
if (
|
|
23802
|
+
if (isRespMsg) {
|
|
23773
23803
|
if (core_.VxeUI.modal) {
|
|
23774
23804
|
core_.VxeUI.modal.message({
|
|
23775
23805
|
content: getRespMsg(rest, 'vxe.grid.saveSuccess'),
|
|
@@ -23787,7 +23817,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23787
23817
|
};
|
|
23788
23818
|
}).catch(rest => {
|
|
23789
23819
|
reactData.tableLoading = false;
|
|
23790
|
-
if (
|
|
23820
|
+
if (isRespMsg) {
|
|
23791
23821
|
if (core_.VxeUI.modal) {
|
|
23792
23822
|
core_.VxeUI.modal.message({
|
|
23793
23823
|
id: code,
|
|
@@ -23801,7 +23831,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23801
23831
|
};
|
|
23802
23832
|
});
|
|
23803
23833
|
} else {
|
|
23804
|
-
if (
|
|
23834
|
+
if (isActiveMsg) {
|
|
23805
23835
|
if (core_.VxeUI.modal) {
|
|
23806
23836
|
core_.VxeUI.modal.message({
|
|
23807
23837
|
id: code,
|