From bd2a58f745d6031ce1b45cda99e737a62e6449bd Mon Sep 17 00:00:00 2001 From: Ilan Date: Mon, 1 Oct 2018 22:28:18 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20updating=20select=20option?= =?UTF-8?q?=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/select/index.en-US.md | 1 + components/select/index.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 83d9f928ed..0f7c1ad615 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -78,6 +78,7 @@ Select component to select value from options. | key | Same usage as `value`. If React request you to set this property, you can set it to value of option, and then omit value property. | string | | | title | `title` of Select after select this Option | string | - | | value | default to filter with this property | string\|number | - | +| className | additional class to option | string | - | ### OptGroup props diff --git a/components/select/index.tsx b/components/select/index.tsx index 9bb5d36dd0..bda4c8d966 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -74,6 +74,8 @@ export interface OptionProps { value?: string | number; title?: string; children?: React.ReactNode; + className?: string; + key?: string; } export interface OptGroupProps {