From 5b25c6435088e918a1f5b093484b0ec8fbaff84d Mon Sep 17 00:00:00 2001 From: liuxiaomeiDcloud Date: Mon, 10 May 2021 17:03:06 +0800 Subject: [PATCH] =?UTF-8?q?update=20docs/component/input.md.=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85type=E5=8A=A8=E6=80=81=E5=88=87=E6=8D=A2=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/input.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/component/input.md b/docs/component/input.md index a96c80fe5..99b2d6db7 100644 --- a/docs/component/input.md +++ b/docs/component/input.md @@ -7,7 +7,7 @@ |属性名|类型|默认值|说明|平台差异说明| |:-|:-|:-|:-|:-| |value|String||输入框的初始内容|| -|type|String|text|input 的类型|H5 暂未支持动态切换请使用 v-if 进行整体切换| +|type|String|text|input 的类型|H5 暂未支持动态切换,详见下方 Tips,请使用 v-if 进行整体切换| |password|Boolean|false|是否是密码类型|H5和App写此属性时,type失效| |placeholder|String||输入框为空时占位符|| |placeholder-style|String||指定 placeholder 的样式|| @@ -35,6 +35,17 @@ - `input` 事件处理函数可以直接 return 一个字符串,将替换输入框的内容。仅微信小程序支持。 - 如果遇到 value 属性设置不生效的问题参考:[组件属性设置不生效解决办法](/vue-api?id=_4-组件属性设置不生效解决办法) - `input` 组件上有默认的 `min-height` 样式,如果 `min-height` 的值大于 `height` 的值那么 `height` 样式无效。 +- H5 暂未支持动态切换,请使用 `v-if`进行整体切换。 +```html + + + + + + +``` + + **type 有效值** -- GitLab