From 291210d7026001051e2bc85832ab9da9875c50db Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Wed, 30 Mar 2022 17:01:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20input=E3=80=81textarea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/input.md | 2 +- docs/component/textarea.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/component/input.md b/docs/component/input.md index ae001127e..f3f6c8f19 100644 --- a/docs/component/input.md +++ b/docs/component/input.md @@ -25,7 +25,7 @@ |adjust-position|Boolean|true|键盘弹起时,是否自动上推页面|App-Android(vue 页面 softinputMode 为 adjustResize 时无效,使用 x5 内核时无效)、微信小程序、百度小程序、QQ小程序、京东小程序| |hold-keyboard|boolean|false|focus时,点击页面的时候不收起键盘|微信小程序2.8.2| |auto-blur|boolean|false|键盘收起时,是否自动失去焦点|App-Vue 3.0.0+| -|ignoreCompositionEvent|boolean|true|是否忽略组件内对文本合成系统事件的处。为 `false` 时将触发 `compositionstart、compositionend、compositionupdate` 事件,且在文本合成期间会触发 `input` 事件|App-vue (3.4.4+)、H5 (3.4.4+)、App-nvue不支持| +|ignoreCompositionEvent|boolean|true|是否忽略组件内对文本合成系统事件的处理。为 `false` 时将触发 `compositionstart、compositionend、compositionupdate` 事件,且在文本合成期间会触发 `input` 事件|App-vue (3.4.4+)、H5 (3.4.4+)、App-nvue不支持| |@input|EventHandle||当键盘输入时,触发input事件,event.detail = {value}|差异见下方 Tips| |@focus|EventHandle||输入框聚焦时触发,event.detail = { value, height },height 为键盘高度|仅微信小程序、京东小程序、App(2.2.3+) 、QQ小程序支持 height| |@blur|EventHandle||输入框失去焦点时触发,event.detail = {value: value}|快手小程序不支持| diff --git a/docs/component/textarea.md b/docs/component/textarea.md index 13e8d805a..b1218b25a 100644 --- a/docs/component/textarea.md +++ b/docs/component/textarea.md @@ -27,7 +27,7 @@ |disable-default-padding|boolean|false|是否去掉 iOS 下的默认内边距|微信小程序2.10.0、飞书小程序 3.46| |hold-keyboard|boolean|false|focus时,点击页面的时候不收起键盘|微信小程序2.8.2| |auto-blur|boolean|false|键盘收起时,是否自动失去焦点|App-vue 3.0.0+ ,App-nvue不支持| -|ignoreCompositionEvent|boolean|true|是否忽略组件内对文本合成系统事件的处。为 `false` 时将触发 `compositionstart、compositionend、compositionupdate` 事件,且在文本合成期间会触发 `input` 事件|App-vue (3.4.4+)、H5 (3.4.4+)、App-nvue不支持| +|ignoreCompositionEvent|boolean|true|是否忽略组件内对文本合成系统事件的处理。为 `false` 时将触发 `compositionstart、compositionend、compositionupdate` 事件,且在文本合成期间会触发 `input` 事件|App-vue (3.4.4+)、H5 (3.4.4+)、App-nvue不支持| |@focus|EventHandle||输入框聚焦时触发,event.detail = { value, height },height 为键盘高度|仅微信小程序、京东小程序、App(HBuilderX 2.0+ [nvue uni-app模式](http://ask.dcloud.net.cn/article/36074)) 、QQ小程序支持 height| |@blur|EventHandle||输入框失去焦点时触发,event.detail = {value, cursor}|快手小程序不支持| |@linechange|EventHandle||输入框行数变化时调用,event.detail = {height: 0, heightRpx: 0, lineCount: 0}|字节跳动小程序、飞书小程序、快手小程序不支持,nvue ios暂不支持| -- GitLab