@juzhenfe/page-model 3.9.27 → 3.9.29
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 +9 -2
- package/dist/index.umd.js +3 -3
- package/dist/types/common.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -7085,6 +7085,7 @@ class TableManager extends IManager {
|
|
|
7085
7085
|
}
|
|
7086
7086
|
const cellClick = this.tableEvents["cellClick"];
|
|
7087
7087
|
this.tableEvents["cellClick"] = function(row, column, cell, event) {
|
|
7088
|
+
var _a;
|
|
7088
7089
|
cellClick == null ? void 0 : cellClick.call(this, row, column, cell, event);
|
|
7089
7090
|
const cellInnerContainer = cell.querySelector(".el-table-cell_inner");
|
|
7090
7091
|
if (!cellInnerContainer) {
|
|
@@ -7094,6 +7095,13 @@ class TableManager extends IManager {
|
|
|
7094
7095
|
if (!editable) {
|
|
7095
7096
|
return false;
|
|
7096
7097
|
}
|
|
7098
|
+
const tableEl = this.currentRenderTableEls.find((el) => el._key === column.columnKey);
|
|
7099
|
+
if (typeof ((_a = tableEl.editData) == null ? void 0 : _a.isDisabled) === "function") {
|
|
7100
|
+
const isDisabled = tableEl.editData.isDisabled.call(this, row);
|
|
7101
|
+
if (isDisabled) {
|
|
7102
|
+
return false;
|
|
7103
|
+
}
|
|
7104
|
+
}
|
|
7097
7105
|
const rowIndex = cellInnerContainer.getAttribute("data-index");
|
|
7098
7106
|
const cellKey = this.composeTableCellKey(column.columnKey, rowIndex);
|
|
7099
7107
|
if (this.focusCellKey !== cellKey) {
|
|
@@ -7555,7 +7563,6 @@ const _sfc_main$p = defineComponent({
|
|
|
7555
7563
|
props.context.closeCellEditing(cellKey);
|
|
7556
7564
|
} else {
|
|
7557
7565
|
onCancelEditContent(row, cellKey, column.editData.prop || column.prop);
|
|
7558
|
-
ElMessage.error("\u66F4\u65B0\u5931\u8D25!");
|
|
7559
7566
|
}
|
|
7560
7567
|
} catch (error) {
|
|
7561
7568
|
} finally {
|
|
@@ -14896,7 +14903,7 @@ const defineEditableTable = function(config) {
|
|
|
14896
14903
|
return reactive(config);
|
|
14897
14904
|
};
|
|
14898
14905
|
const name = "@juzhenfe/page-model";
|
|
14899
|
-
const version = "3.9.
|
|
14906
|
+
const version = "3.9.29";
|
|
14900
14907
|
const types = "dist/main.d.ts";
|
|
14901
14908
|
const main = "dist/index.umd.js";
|
|
14902
14909
|
const keywords = [
|