Skip to content

Commit 0114a1a

Browse files
authored
Merge pull request #4589 from VisActor/fix/HighlightHeaderWhenSelectCellPlugin
Fix/highlight header when select cell plugin
2 parents f5fefd9 + 5d4f16b commit 0114a1a

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "fix: plugin HighlightHeaderWhenSelectCellPlugin options parse\n\n",
5+
"type": "none",
6+
"packageName": "@visactor/vtable"
7+
}
8+
],
9+
"packageName": "@visactor/vtable",
10+
"email": "892739385@qq.com"
11+
}

packages/vtable-plugins/src/highlight-header-when-select-cell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class HighlightHeaderWhenSelectCellPlugin implements pluginsDefinition.IV
2525
colHeaderRanges: CellRange[] = [];
2626
rowHeaderRanges: CellRange[] = [];
2727
constructor(pluginOptions: IHighlightHeaderWhenSelectCellPluginOptions) {
28-
this.id = pluginOptions.id ?? this.id;
28+
this.id = pluginOptions?.id ?? this.id;
2929
this.pluginOptions = pluginOptions;
3030
}
3131
run(...args: any[]) {

0 commit comments

Comments
 (0)