From c2031f701c1931c45dc83f5ca77c76f4b493c1f1 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Mon, 11 Sep 2017 11:47:51 +0800 Subject: [PATCH] Document Select[firstActiveValue] --- components/select/index.en-US.md | 2 +- components/select/index.zh-CN.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 1631ee4952..5257f23b8f 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -51,7 +51,7 @@ Select component to select value from options. | getPopupContainer | Parent Node which the selector should be rendered to. Default to `body`. When position issues happen, try to modify it into scrollable content and position it relative.[example](http://codepen.io/anon/pen/xVBOVQ?editors=001) | function(triggerNode) | () => document.body | | labelInValue | whether to embed label in value, turn the format of value from `string` to `{key: string, label: ReactNode}` | boolean | false | | tokenSeparators | Separator used to tokenize on tag/multiple mode | string[] | | - +| firstActiveValue | Value of action option by default | string\|string[] | - | ### Option props diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index c9c6bff9f9..1048200682 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -52,6 +52,7 @@ title: Select | getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。[示例](http://codepen.io/anon/pen/xVBOVQ?editors=001) | Function(triggerNode) | () => document.body | | labelInValue | 是否把每个选项的 label 包装到 value 中,会把 Select 的 value 类型从 `string` 变为 `{key: string, label: ReactNode}` 的格式 | boolean | false | | tokenSeparators | 在 tags 和 multiple 模式下自动分词的分隔符 | string[] | | +| firstActiveValue | 默认高亮的选项 | string\|string[] | - | > 注意,如果发现下拉菜单跟随页面滚动,或者需要在其他弹层中触发 Select,请尝试使用 `getPopupContainer={triggerNode => triggerNode.parentNode}` 将下拉弹层渲染节点固定在触发器的父元素中。