@juzhenfe/page-model 3.9.25 → 3.9.26
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/index.es.js
CHANGED
|
@@ -7110,6 +7110,18 @@ class TableManager extends IManager {
|
|
|
7110
7110
|
const originForm = this.editableData.get(cellKey);
|
|
7111
7111
|
row[restoreKey] = originForm[restoreKey];
|
|
7112
7112
|
}
|
|
7113
|
+
resetTableEdit() {
|
|
7114
|
+
if (this.table.editable) {
|
|
7115
|
+
if (this.focusCellKey) {
|
|
7116
|
+
this.blurCell(this.currentRow, this.currentColumn);
|
|
7117
|
+
}
|
|
7118
|
+
this.editableData.clear();
|
|
7119
|
+
this.editableOpen.clear();
|
|
7120
|
+
this.currentRow = null;
|
|
7121
|
+
this.currentColumn = null;
|
|
7122
|
+
this.focusCellKey = null;
|
|
7123
|
+
}
|
|
7124
|
+
}
|
|
7113
7125
|
updatePagination() {
|
|
7114
7126
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
7115
7127
|
this.pagination = merge(
|
|
@@ -11101,6 +11113,7 @@ const _sfc_main$h = defineComponent({
|
|
|
11101
11113
|
if (tableManager.currentPage !== current) {
|
|
11102
11114
|
tableManager.currentPage = current;
|
|
11103
11115
|
tableManager.refreshPage();
|
|
11116
|
+
tableManager.resetTableEdit();
|
|
11104
11117
|
}
|
|
11105
11118
|
};
|
|
11106
11119
|
const onSaveColumns = async (columns) => {
|
|
@@ -14858,7 +14871,7 @@ const defineEditableTable = function(config) {
|
|
|
14858
14871
|
return reactive(config);
|
|
14859
14872
|
};
|
|
14860
14873
|
const name = "@juzhenfe/page-model";
|
|
14861
|
-
const version = "3.9.
|
|
14874
|
+
const version = "3.9.26";
|
|
14862
14875
|
const types = "dist/main.d.ts";
|
|
14863
14876
|
const main = "dist/index.umd.js";
|
|
14864
14877
|
const keywords = [
|
|
@@ -14904,6 +14917,7 @@ const devDependencies = {
|
|
|
14904
14917
|
"xlsx-style": "^0.8.13"
|
|
14905
14918
|
};
|
|
14906
14919
|
const dependencies = {
|
|
14920
|
+
"@juzhenfe/page-model": "^3.9.25",
|
|
14907
14921
|
interactjs: "^1.10.11",
|
|
14908
14922
|
"lodash.clonedeep": "4.5.0",
|
|
14909
14923
|
"lodash.isequal": "^4.5.0",
|