We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe0c512 commit b874df4Copy full SHA for b874df4
src/input/index.js
@@ -71,6 +71,11 @@ Component({
71
showEye: {
72
type: Boolean,
73
value: false
74
+ },
75
+ // 键盘弹起时,是否自动上推页面
76
+ adjustPosition:{
77
+ type: Boolean,
78
+ value: true
79
}
80
},
81
src/input/index.wxml
@@ -14,6 +14,7 @@
14
<!-- 小程序表单组件 -->
15
<input
16
wx:if="{{type !== 'password'}}"
17
+ adjust-position="{{adjustPosition}}"
18
class="input {{hideLabel?'hideLabel':''}} l-input-class"
19
value="{{ value }}"
20
type="{{type}}"
@@ -29,6 +30,7 @@
29
30
bindconfirm="handleInputConfirm" />
31
32
wx:else
33
34
35
36
password="{{true}}"
0 commit comments