From 8554e40676debe883ff93402d6d903097ce29a74 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Sat, 18 May 2024 15:28:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A4=BA=E4=BE=8B=E6=BC=94?= =?UTF-8?q?=E7=A4=BAinput=E6=A1=86=E5=A6=82=E4=BD=95=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8E=A7=E5=88=B6=E4=B8=8D=E8=A2=AB=E8=BD=AF?= =?UTF-8?q?=E9=94=AE=E7=9B=98=E9=81=AE=E6=8C=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/navbar-lite/navbar-lite.uvue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pages/template/navbar-lite/navbar-lite.uvue b/pages/template/navbar-lite/navbar-lite.uvue index add066a3..03afcbdc 100644 --- a/pages/template/navbar-lite/navbar-lite.uvue +++ b/pages/template/navbar-lite/navbar-lite.uvue @@ -36,8 +36,8 @@ - - + + @@ -51,7 +51,8 @@ title: 'Hello uni-app', isLeft: false, navigationBarTextColor: '#000', - indexView: 0 + indexView: 0, + inputBottom: '0px' } }, methods: { @@ -98,6 +99,12 @@ }, ChangeView(e:UniRadioGroupChangeEvent){ this.indexView = parseInt(e.detail.value) + }, + onInputFocus(e:UniInputFocusEvent ) { + this.inputBottom = `${e.detail.height}px`; + }, + onInputBlur(e:UniInputBlurEvent) { + this.inputBottom = '0px'; }, // 自动化测试 getLifeCycleNum() : number { -- GitLab