mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-09-11 07:19:44 +08:00
feat(Field): add clickable prop (#1946)
This commit is contained in:
parent
66c7427393
commit
982dcd7a88
@ -24,6 +24,10 @@
|
|||||||
|
|
||||||
- `color`属性支持渐变色
|
- `color`属性支持渐变色
|
||||||
|
|
||||||
|
##### Field
|
||||||
|
|
||||||
|
- 新增`clickable`属性
|
||||||
|
|
||||||
##### Popup
|
##### Popup
|
||||||
|
|
||||||
- 新增`round`属性
|
- 新增`round`属性
|
||||||
|
@ -176,6 +176,7 @@ Page({
|
|||||||
| disabled | 是否禁用输入框 | *boolean* | `false` |
|
| disabled | 是否禁用输入框 | *boolean* | `false` |
|
||||||
| readonly | 是否只读 | *boolean* | `false` |
|
| readonly | 是否只读 | *boolean* | `false` |
|
||||||
| clearable | 是否启用清除控件 | *boolean* | `false` |
|
| clearable | 是否启用清除控件 | *boolean* | `false` |
|
||||||
|
| clickable | 是否开启点击反馈 | *boolean* | `false` |
|
||||||
| required | 是否显示表单必填星号 | *boolean* | `false` |
|
| required | 是否显示表单必填星号 | *boolean* | `false` |
|
||||||
| password | 是否是密码类型 | *boolean* | `false` |
|
| password | 是否是密码类型 | *boolean* | `false` |
|
||||||
| title-width | 标题宽度 | *string* | `90px` |
|
| title-width | 标题宽度 | *string* | `90px` |
|
||||||
|
@ -25,6 +25,7 @@ VantComponent({
|
|||||||
password: Boolean,
|
password: Boolean,
|
||||||
iconClass: String,
|
iconClass: String,
|
||||||
clearable: Boolean,
|
clearable: Boolean,
|
||||||
|
clickable: Boolean,
|
||||||
inputAlign: String,
|
inputAlign: String,
|
||||||
customStyle: String,
|
customStyle: String,
|
||||||
confirmType: String,
|
confirmType: String,
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
border="{{ border }}"
|
border="{{ border }}"
|
||||||
is-link="{{ isLink }}"
|
is-link="{{ isLink }}"
|
||||||
required="{{ required }}"
|
required="{{ required }}"
|
||||||
|
clickable="{{ clickable }}"
|
||||||
custom-style="{{ customStyle }}"
|
custom-style="{{ customStyle }}"
|
||||||
title-width="{{ titleWidth }}"
|
title-width="{{ titleWidth }}"
|
||||||
custom-class="van-field"
|
custom-class="van-field"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user