From 02b8022f2a5990ccabea190affe652d04b82d657 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 17 Nov 2024 09:43:10 +0800 Subject: [PATCH] docs(Field): add `inputmode` to document (#13214) --- packages/vant/src/field/README.md | 3 ++- packages/vant/src/field/README.zh-CN.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/vant/src/field/README.md b/packages/vant/src/field/README.md index 76897add2..d029e2a43 100644 --- a/packages/vant/src/field/README.md +++ b/packages/vant/src/field/README.md @@ -354,7 +354,8 @@ Use `label-align` prop to align the input value, can be set to `center`, `right` | autocapitalize `v4.6.2` | HTML native attribute, see [MDN - autocapitalize](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize)
| _string_ | - | | enterkeyhint | HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)
| _string_ | - | | spellcheck `v4.6.2` | HTML native attribute, see [MDN - spellcheck](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
| _boolean_ | - | -| autocorrect `v4.6.2` | Safari only, see [MDN - autocorrect](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocorrect)
| _string_ | - | +| autocorrect `v4.6.2` | HTML native attribute, Safari only, see [MDN - autocorrect](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocorrect)
| _string_ | - | +| inputmode `v4.9.9` | HTML native attribute, see [MDN - inputmode](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode) | _string_ | Set automatically according to the `type` prop | ### Events diff --git a/packages/vant/src/field/README.zh-CN.md b/packages/vant/src/field/README.zh-CN.md index 83824b6f4..26606fd35 100644 --- a/packages/vant/src/field/README.zh-CN.md +++ b/packages/vant/src/field/README.zh-CN.md @@ -383,7 +383,8 @@ export default { | autocapitalize `v4.6.2` | HTML 原生属性,用于控制文本输入时是否自动大写,此 API 仅在部分浏览器支持,详见 [MDN - autocapitalize](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize) | _string_ | - | | enterkeyhint | HTML 原生属性,用于控制回车键样式,此 API 仅在部分浏览器支持,详见 [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)
| _string_ | - | | spellcheck `v4.6.2` | HTML 原生属性,用于检查元素的拼写错误,此 API 仅在部分浏览器支持,详见 [MDN - spellcheck](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
| _boolean_ | - | -| autocorrect `v4.6.2` | 仅 Safari 适用,用于自动更正输入的文本,详见 [MDN - autocorrect](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocorrect)
| _string_ | - | +| autocorrect `v4.6.2` | HTML 原生属性,仅 Safari 适用,用于自动更正输入的文本,详见 [MDN - autocorrect](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocorrect)
| _string_ | - | +| inputmode `v4.9.9` | HTML 原生属性,用于指定输入框的输入模式,详见 [MDN - inputmode](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode) | _string_ | 根据 `type` 属性自动设置 | ### Events