From 7f2e52306da812c4824e678aa26b35cb9367f513 Mon Sep 17 00:00:00 2001 From: liuxiaohang <283700113@qq.com> Date: Thu, 19 Nov 2020 20:36:17 +0800 Subject: [PATCH] =?UTF-8?q?update(APP):=20=20input=E3=80=81textarea?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0auto-blur=E5=B1=9E=E6=80=A7=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/input.md | 1 + docs/component/textarea.md | 1 + src/core/view/mixins/keyboard.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/component/input.md b/docs/component/input.md index eca1b1a2f..c88744f7b 100644 --- a/docs/component/input.md +++ b/docs/component/input.md @@ -23,6 +23,7 @@ |selection-end|Number|-1|光标结束位置,自动聚集时有效,需与selection-start搭配使用|| |adjust-position|Boolean|true|键盘弹起时,是否自动上推页面|App-Android(vue 页面 softinputMode 为 adjustResize 时无效)、微信小程序、百度小程序、QQ小程序| |hold-keyboard|boolean|false|focus时,点击页面的时候不收起键盘|微信小程序2.8.2| +|auto-blur|boolean|false|键盘收起时,是否自动失去焦点|APP(HBuilder x2.9.11)| |@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 8845aa784..80b2210c1 100644 --- a/docs/component/textarea.md +++ b/docs/component/textarea.md @@ -24,6 +24,7 @@ |adjust-position|Boolean|true|键盘弹起时,是否自动上推页面|App-Android(softinputMode 为 adjustResize 时无效)、微信小程序、百度小程序、QQ小程序| |disable-default-padding|boolean|false|是否去掉 iOS 下的默认内边距|微信小程序2.10.0| |hold-keyboard|boolean|false|focus时,点击页面的时候不收起键盘|微信小程序2.8.2| +|auto-blur|boolean|false|键盘收起时,是否自动失去焦点|APP(HBuilder x2.9.11)| |@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暂不支持| diff --git a/src/core/view/mixins/keyboard.js b/src/core/view/mixins/keyboard.js index 0c83e904d..26dc9e291 100644 --- a/src/core/view/mixins/keyboard.js +++ b/src/core/view/mixins/keyboard.js @@ -89,7 +89,7 @@ export default { }, autoBlur: { type: [Boolean, String], - default: true + default: false } }, directives: { -- GitLab