Skip to content

Commit e26938a

Browse files
committed
bu fixed
1 parent 7917795 commit e26938a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/ve-table/src/index.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,11 @@ export default {
15521552
}
15531553
},
15541554

1555+
// is edit column
1556+
isEditColumn(colKey) {
1557+
return this.colgroups.some((x) => x.key === colKey && x.edit);
1558+
},
1559+
15551560
/*
15561561
* @editCellByClick
15571562
* @desc recieve td click event
@@ -1564,6 +1569,7 @@ export default {
15641569
hasEditColumn,
15651570
editingCell,
15661571
cellSelectionKeyData,
1572+
isEditColumn,
15671573
} = this;
15681574

15691575
if (!editOption) {
@@ -1593,7 +1599,7 @@ export default {
15931599
this[INSTANCE_METHODS.STOP_EDITING_CELL]();
15941600
}
15951601

1596-
if (isDblclick) {
1602+
if (isDblclick && isEditColumn(colKey)) {
15971603
this.enableStopEditing = false;
15981604

15991605
this[INSTANCE_METHODS.START_EDITING_CELL]({

0 commit comments

Comments
 (0)