From 8486184b2896bf1d16da5762d09ee278d6016e93 Mon Sep 17 00:00:00 2001 From: Tyh2001 <1469442737@qq.com> Date: Mon, 11 Dec 2023 13:06:22 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20input=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/input.md | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/docs/components/input.md b/docs/components/input.md index 3685195a84..02ae0d549f 100644 --- a/docs/components/input.md +++ b/docs/components/input.md @@ -230,9 +230,9 @@ | `icon` | 自定义前缀 icon | FightingIcon | —— | —— | | `on-blur` | 失去焦点触发的回调 | HandleEvent | —— | —— | | `on-focus` | 获取焦点触发的回调 | HandleEvent | —— | —— | -| `on-search` | 点击搜索触发的回调 | InputEvent | —— | —— | -| `on-change` | 绑定值发生变化时触发的回调 | InputEvent | —— | —— | -| `on-input` | 原生 input 事件回调 | InputEvent | —— | —— | +| `on-search` | 点击搜索触发的回调 | HandleEvent | —— | —— | +| `on-change` | 绑定值发生变化时触发的回调 | HandleEvent | —— | —— | +| `on-input` | 原生 input 事件回调 | HandleEvent | —— | —— | | `on-enter` | 按下回车触发的回调 | InputEnter | —— | —— | ## Slots @@ -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 @@ -263,12 +257,6 @@ import type { type InputType = 'text' | 'password' | 'number' ``` -### InputEvent - -```ts -type InputEvent = (evt: Event, value: string) => void -``` - ### InputEnter ```ts