Skip to content

Commit

Permalink
docs(auto-complete): append props for ref
Browse files Browse the repository at this point in the history
  • Loading branch information
unix committed May 24, 2021
1 parent 0f21721 commit 0c50aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pages/en-us/components/auto-complete.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Layout, Playground, Attributes } from 'lib/components'
import { AutoComplete, Spacer, Badge, Grid, Text } from 'components'
import { AutoComplete, Spacer, Badge, Grid, Text, Code } from 'components'
import { useState, useRef, useEffect } from 'react'

export const meta = {
Expand Down Expand Up @@ -286,6 +286,7 @@ AutoComplete control of input field.
| **dropdownStyle** | style of dropdown box | `object` | - | - |
| **disableMatchWidth** | disable Option from follow parent width | `boolean` | - | `false` |
| **disableFreeSolo** | only values can be changed through Select | `boolean` | - | `false` |
| **ref** | forwardRef | <Code>Ref<HTMLInputElement &#124; null></Code> | - | - |
| ... | native props | `InputHTMLAttributes` | `'id', 'className', ...` | - |

<Attributes.Title alias="AutoComplete.Option">AutoComplete.Item</Attributes.Title>
Expand Down
3 changes: 2 additions & 1 deletion pages/zh-cn/components/auto-complete.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Layout, Playground, Attributes } from 'lib/components'
import { AutoComplete, Spacer, Badge, Text, Grid } from 'components'
import { AutoComplete, Spacer, Badge, Text, Grid, Code } from 'components'
import { useState, useRef, useEffect } from 'react'

export const meta = {
Expand Down Expand Up @@ -287,6 +287,7 @@ export const meta = {
| **dropdownStyle** | 自定义下拉框的样式 | `object` | - | - |
| **disableMatchWidth** | 禁止 Option 跟随父元素的宽度 | `boolean` | - | `false` |
| **disableFreeSolo** | 只允许通过 Select 事件更改值 (禁止 Input 输入随意值) | `boolean` | - | `false` |
| **ref** | 转发的原生输入框 Ref | <Code>Ref<HTMLInputElement &#124; null></Code> | - | - |
| ... | 原生属性 | `InputHTMLAttributes` | `'id', 'className', ...` | - |

<Attributes.Title alias="AutoComplete.Option">AutoComplete.Item</Attributes.Title>
Expand Down

0 comments on commit 0c50aed

Please sign in to comment.