mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[new feature] Collapse: add clickable prop (#1538)
This commit is contained in:
parent
f635a9c490
commit
12a8300713
@ -20,6 +20,7 @@ VantComponent({
|
|||||||
icon: String,
|
icon: String,
|
||||||
label: String,
|
label: String,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
|
clickable: Boolean,
|
||||||
border: {
|
border: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true
|
value: true
|
||||||
|
@ -5,9 +5,10 @@
|
|||||||
title="{{ title }}"
|
title="{{ title }}"
|
||||||
title-class="title-class"
|
title-class="title-class"
|
||||||
icon="{{ icon }}"
|
icon="{{ icon }}"
|
||||||
is-link="{{ isLink }}"
|
|
||||||
value="{{ value }}"
|
value="{{ value }}"
|
||||||
label="{{ label }}"
|
label="{{ label }}"
|
||||||
|
is-link="{{ isLink }}"
|
||||||
|
clickable="{{ clickable }}"
|
||||||
border="{{ border && expanded }}"
|
border="{{ border && expanded }}"
|
||||||
class="{{ utils.bem('collapse-item__title', { disabled, expanded }) }}"
|
class="{{ utils.bem('collapse-item__title', { disabled, expanded }) }}"
|
||||||
right-icon-class="van-cell__right-icon"
|
right-icon-class="van-cell__right-icon"
|
||||||
|
@ -135,6 +135,7 @@ Page({
|
|||||||
| label | 标题栏描述信息 | `String` | - |
|
| label | 标题栏描述信息 | `String` | - |
|
||||||
| border | 是否显示内边框 | `Boolean` | `true` |
|
| border | 是否显示内边框 | `Boolean` | `true` |
|
||||||
| is-link | 是否展示标题栏右侧箭头并开启点击反馈 | `Boolean` | `true` |
|
| is-link | 是否展示标题栏右侧箭头并开启点击反馈 | `Boolean` | `true` |
|
||||||
|
| clickable | 是否开启点击反馈 | `Boolean` | `false` |
|
||||||
| disabled | 是否禁用面板 | `Boolean` | `false` |
|
| disabled | 是否禁用面板 | `Boolean` | `false` |
|
||||||
|
|
||||||
### CollapseItem Slot
|
### CollapseItem Slot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user