From 7b8669bae9719fa7c0adbdb8c52cd481ebabf2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=A3=E8=93=A6?= Date: Mon, 11 Apr 2022 19:44:21 +0800 Subject: [PATCH] fix(antd/next): valueType should not be required attribute since it has default value (#3036) --- packages/antd/src/select-table/index.tsx | 2 +- packages/next/src/select-table/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/antd/src/select-table/index.tsx b/packages/antd/src/select-table/index.tsx index 54c25d0b985..a977ebf1b01 100644 --- a/packages/antd/src/select-table/index.tsx +++ b/packages/antd/src/select-table/index.tsx @@ -27,7 +27,7 @@ export interface ISelectTableProps extends TableProps { mode?: 'multiple' | 'single' dataSource?: any[] optionAsValue?: boolean - valueType: 'all' | 'parent' | 'child' | 'path' + valueType?: 'all' | 'parent' | 'child' | 'path' showSearch?: boolean searchProps?: SearchProps primaryKey?: string | ((record: any) => string) diff --git a/packages/next/src/select-table/index.tsx b/packages/next/src/select-table/index.tsx index f886a992d87..3e0fcbfc2ef 100644 --- a/packages/next/src/select-table/index.tsx +++ b/packages/next/src/select-table/index.tsx @@ -26,7 +26,7 @@ export interface ISelectTableProps mode?: 'multiple' | 'single' dataSource?: any[] optionAsValue?: boolean - valueType: 'all' | 'parent' | 'child' | 'path' + valueType?: 'all' | 'parent' | 'child' | 'path' showSearch?: boolean searchProps?: SearchProps primaryKey?: string | ((record: any) => string)