Skip to content

Commit

Permalink
docs: 更新 input 文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Dec 11, 2023
1 parent 2b2238a commit 8486184
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions docs/components/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@
| `icon` | 自定义前缀 icon | <a href="/components/interface.html#fightingicon">FightingIcon</a> | —— | —— |
| `on-blur` | 失去焦点触发的回调 | <a href="/components/interface.html#handleevent">HandleEvent</a> | —— | —— |
| `on-focus` | 获取焦点触发的回调 | <a href="/components/interface.html#handleevent">HandleEvent</a> | —— | —— |
| `on-search` | 点击搜索触发的回调 | <a href="#inputevent">InputEvent</a> | —— | —— |
| `on-change` | 绑定值发生变化时触发的回调 | <a href="#inputevent">InputEvent</a> | —— | —— |
| `on-input` | 原生 input 事件回调 | <a href="#inputevent">InputEvent</a> | —— | —— |
| `on-search` | 点击搜索触发的回调 | <a href="/components/interface.html#handleevent">HandleEvent</a> | —— | —— |
| `on-change` | 绑定值发生变化时触发的回调 | <a href="/components/interface.html#handleevent">HandleEvent</a> | —— | —— |
| `on-input` | 原生 input 事件回调 | <a href="/components/interface.html#handleevent">HandleEvent</a> | —— | —— |
| `on-enter` | 按下回车触发的回调 | <a href="#inputenter">InputEnter</a> | —— | —— |

## Slots
Expand All @@ -248,13 +248,7 @@
组件导出以下类型定义:

```ts
import type {
InputInstance,
InputProps,
InputType,
InputEvent,
InputEnter
} from 'fighting-design'
import type { InputInstance, InputProps, InputType, InputEnter } from 'fighting-design'
```

### InputType
Expand All @@ -263,12 +257,6 @@ import type {
type InputType = 'text' | 'password' | 'number'
```
### InputEvent
```ts
type InputEvent = (evt: Event, value: string) => void
```
### InputEnter
```ts
Expand Down

0 comments on commit 8486184

Please sign in to comment.