mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-24 04:15:54 +08:00
docs(auto-complete): add docs for disable-match-width
This commit is contained in:
@@ -232,7 +232,10 @@ AutoComplete control of input field.
|
||||
| **onChange** | value of input is changed | `(value: string) => void` | - | - |
|
||||
| **onSearch** | called when searching items | `(value: string) => void` | - | - |
|
||||
| **onSelect** | called when a option is selected | `(value: string) => void` | - | - |
|
||||
| ... | native props | `InputHTMLAttributes` | `'autoComplete', 'type', 'className', ...` | - |
|
||||
| **dropdownClassName** | className of dropdown box | `string` | - | - |
|
||||
| **dropdownStyle** | style of dropdown box | `object` | - | - |
|
||||
| **disableMatchWidth** | disable Option from follow parent width | `boolean` | - | `false` |
|
||||
| ... | native props | `InputHTMLAttributes` | `'id', 'className', ...` | - |
|
||||
|
||||
<Attributes.Title alias="AutoComplete.Option">AutoComplete.Item</Attributes.Title>
|
||||
|
||||
|
||||
@@ -233,7 +233,10 @@ export const meta = {
|
||||
| **onChange** | 输入框的值发生变化触发此事件 | `(value: string) => void` | - | - |
|
||||
| **onSearch** | 搜索事件,当用户手动输入时触发 | `(value: string) => void` | - | - |
|
||||
| **onSelect** | 当备选框被选中后触发的事件 | `(value: string) => void` | - | - |
|
||||
| ... | 原生属性 | `InputHTMLAttributes` | `'autoComplete', 'type', 'className', ...` | - |
|
||||
| **dropdownClassName** | 自定义下拉框的类名 | `string` | - | - |
|
||||
| **dropdownStyle** | 自定义下拉框的样式 | `object` | - | - |
|
||||
| **disableMatchWidth** | 禁止 Option 跟随父元素的宽度 | `boolean` | - | `false` |
|
||||
| ... | 原生属性 | `InputHTMLAttributes` | `'id', 'className', ...` | - |
|
||||
|
||||
<Attributes.Title alias="AutoComplete.Option">AutoComplete.Item</Attributes.Title>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user