mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
docs(input): fix on-input prop
This commit is contained in:
parent
e7bbcf410f
commit
5874a649ac
@ -49,17 +49,18 @@ event
|
||||
| type | `'text' \| 'password' \| 'textarea'` | `'text'` | Input type. |
|
||||
| value | `string \| [string, string] \| null` | `undefined` | Manually set the input value. When `pair` is `true`, this is an array. |
|
||||
| on-blur | `() => void` | `undefined` | Callback triggered when the input is blurred. |
|
||||
| on-change | `(value: string \| [string, string]) => void` | `undefined` | Callback triggered when the input blurred and the value has been changed. |
|
||||
| on-change | `(value: string \| [string, string]) => void` | `undefined` | Callback triggered when native change event is fired. |
|
||||
| on-clear | `() => void` | `undefined` | Callback triggered when the input is cleared. |
|
||||
| on-focus | `() => void` | `undefined` | Callback triggered when the input is focussed on. |
|
||||
| on-input | `(value: string \| [string, string]) => void` | `undefined` | Callback triggered when the input value changes. |
|
||||
| on-update:value | `(value: string \| [string, string]) => void` | `undefined` | Callback triggered when the input value changes. |
|
||||
|
||||
### Input Slots
|
||||
|
||||
| Name | Parameters | Description |
|
||||
| --- | --- | --- |
|
||||
| prefix | `()` | Prefix content slot. |
|
||||
| suffix | `()` | Suffix content slot. |
|
||||
| prefix | `()` | Prefix content slot. |
|
||||
| suffix | `()` | Suffix content slot. |
|
||||
| separator | `()` | The separator content of the input, only works when `pair` is true. This will take priority over the separator property. |
|
||||
|
||||
### InputGroup Slots
|
||||
@ -76,7 +77,7 @@ event
|
||||
|
||||
### Input Methods
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ---------- | -------------------- |
|
||||
| Name | Type | Description |
|
||||
| ----- | ---------- | ------------------------ |
|
||||
| blur | () => void | Blur the input element. |
|
||||
| focus | () => void | Focus the input element. |
|
||||
|
@ -48,11 +48,11 @@ focus
|
||||
| type | `'text' \| 'password' \| 'textarea'` | `'text'` | 输入框类型 |
|
||||
| value | `string \| [string, string] \| null` | `undefined` | 文本输入的值。如果是 `pair` 是 `true`,`value` 是一个数组 |
|
||||
| on-blur | `() => void` | `undefined` | 输入框失去焦点时触发 |
|
||||
| on-change | `(value: string \| [string, string]) => void` | `undefined` | 输入框失去焦点且值 change 时触发 |
|
||||
| on-change | `(value: string \| [string, string]) => void` | `undefined` | 原生 change 事件触发时触发 |
|
||||
| on-clear | `() => void` | `undefined` | 输入框点击清空按钮时触发 |
|
||||
| on-focus | `() => void` | `undefined` | 输入框获得焦点时触发 |
|
||||
| on-input | `() => void` | `undefined` | 输入框值 change 时触发 |
|
||||
| on-update:value | `(value: string \| [string, string]) => void` | `undefined` | 输入框值 change 时触发 |
|
||||
| on-input | `(value: string \| [string, string]) => void` | `undefined` | 输入框值改变时触发 |
|
||||
| on-update:value | `(value: string \| [string, string]) => void` | `undefined` | 输入框值改变时触发 |
|
||||
|
||||
### Input Slots
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user