diff --git a/packages/field/README.md b/packages/field/README.md index 1f21d3a2..f6ff1228 100644 --- a/packages/field/README.md +++ b/packages/field/README.md @@ -257,6 +257,7 @@ Page({ | disable-default-padding | 是否去掉 iOS 下的默认内边距,只对 textarea 有效 | _boolean_ | `true` | | cursor | 指定 focus 时的光标位置 | _number_ | `-1` | | clear-trigger `v1.8.4` | 显示清除图标的时机,`always` 表示输入框不为空时展示,
`focus` 表示输入框聚焦且不为空时展示 | _string_ | `focus` | +| always-embed `v1.9.2` | 强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效) | _boolean_ | `false` | ### Events diff --git a/packages/field/input.wxml b/packages/field/input.wxml index 3ecab243..efe9a08d 100644 --- a/packages/field/input.wxml +++ b/packages/field/input.wxml @@ -17,6 +17,7 @@ adjust-position="{{ adjustPosition }}" selection-end="{{ selectionEnd }}" selection-start="{{ selectionStart }}" + always-embed="{{ alwaysEmbed }}" password="{{ password || type === 'password' }}" bindinput="onInput" bindtap="onClickInput" diff --git a/packages/field/props.ts b/packages/field/props.ts index 9610842f..9606ffc7 100644 --- a/packages/field/props.ts +++ b/packages/field/props.ts @@ -49,6 +49,7 @@ export const inputProps: WechatMiniprogram.Component.PropertyOption = { password: Boolean, confirmType: String, confirmHold: Boolean, + alwaysEmbed: Boolean, }; export const textareaProps: WechatMiniprogram.Component.PropertyOption = {