From cea57496172900fa919be9fb4bfb662fa89cb5bc Mon Sep 17 00:00:00 2001 From: rickcole Date: Sat, 9 May 2020 16:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTable=E4=BC=A0columns?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Table.tsx | 1 + src/utils/helper.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderers/Table.tsx b/src/renderers/Table.tsx index 1cd649f4..0298c88b 100644 --- a/src/renderers/Table.tsx +++ b/src/renderers/Table.tsx @@ -132,6 +132,7 @@ export default class Table extends React.Component { 'itemActions', 'combineNum', 'items', + 'columns', 'valueField', 'saveImmediately', 'rowClassName', diff --git a/src/utils/helper.ts b/src/utils/helper.ts index 3376faa2..5f9a300c 100644 --- a/src/utils/helper.ts +++ b/src/utils/helper.ts @@ -1153,7 +1153,7 @@ export function chainEvents(props: any, schema: any) { ) { ret[key] = chainFunctions(schema[key], props[key]); } else { - ret[key] = schema[key] ?? props[key]; + ret[key] = props[key]; } });