mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
feat(Field): add new prop fixed @rex-zsd (#925)
This commit is contained in:
parent
2e2c36fd73
commit
59eb467a5c
@ -140,6 +140,7 @@ Page({
|
||||
| label | 输入框左侧文本 | `String` | - |
|
||||
| value | 当前输入的值 | `String | Number` | - |
|
||||
| type | 可设置为任意原生类型, 如 `number` `idcard` `textarea` `digit` | `String` | `text` |
|
||||
| fixed | 如果 type 为 `textarea` 且在一个 `position:fixed` 的区域,需要显示指定属性 fixed 为 true | `Boolean` | `false` |
|
||||
| focus | 获取焦点 | `Boolean` | `false` |
|
||||
| border | 是否显示内边框 | `Boolean` | `true` |
|
||||
| disabled | 是否禁用输入框 | `Boolean` | `false` |
|
||||
|
@ -9,6 +9,7 @@ VantComponent({
|
||||
icon: String,
|
||||
label: String,
|
||||
error: Boolean,
|
||||
fixed: Boolean,
|
||||
focus: Boolean,
|
||||
center: Boolean,
|
||||
isLink: Boolean,
|
||||
|
@ -14,6 +14,7 @@
|
||||
<textarea
|
||||
wx:if="{{ type === 'textarea' }}"
|
||||
class="{{ inputClass }}"
|
||||
fixed="{{ fixed }}"
|
||||
focus="{{ focus }}"
|
||||
value="{{ value }}"
|
||||
disabled="{{ disabled || readonly }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user