From 0a53e125162f172b1b31a3de99da23241d3ce84b Mon Sep 17 00:00:00 2001 From: sunhao Date: Mon, 8 Jul 2024 14:35:45 +0800 Subject: [PATCH] * dtable: skip to show hide action for required col. --- lib/dtable/src/plugins/custom-col/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/dtable/src/plugins/custom-col/index.tsx b/lib/dtable/src/plugins/custom-col/index.tsx index 5638006cfb..55c082885b 100644 --- a/lib/dtable/src/plugins/custom-col/index.tsx +++ b/lib/dtable/src/plugins/custom-col/index.tsx @@ -14,6 +14,9 @@ export interface DTableCustomColTypes { onSetColBorder?: (this: DTableCustomCol, colName: ColName, border: ColBorderType, colBorders: Record) => void; onSetColVisibility?: (this: DTableCustomCol, colName: ColName, visible: boolean) => void; }, + col: { + required?: boolean; + }, state: { colBorders: Record; colVisibility: Record; @@ -87,7 +90,7 @@ const customColPlugin: DTablePlugin this.setColVisibility(info.colName, false), }, ];