[new feature] Collapse: add clickable prop (#1538)

This commit is contained in:
neverland 2019-04-17 17:41:46 +08:00 committed by GitHub
parent f635a9c490
commit 12a8300713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@ VantComponent({
icon: String,
label: String,
disabled: Boolean,
clickable: Boolean,
border: {
type: Boolean,
value: true

View File

@ -5,9 +5,10 @@
title="{{ title }}"
title-class="title-class"
icon="{{ icon }}"
is-link="{{ isLink }}"
value="{{ value }}"
label="{{ label }}"
is-link="{{ isLink }}"
clickable="{{ clickable }}"
border="{{ border && expanded }}"
class="{{ utils.bem('collapse-item__title', { disabled, expanded }) }}"
right-icon-class="van-cell__right-icon"

View File

@ -135,6 +135,7 @@ Page({
| label | 标题栏描述信息 | `String` | - |
| border | 是否显示内边框 | `Boolean` | `true` |
| is-link | 是否展示标题栏右侧箭头并开启点击反馈 | `Boolean` | `true` |
| clickable | 是否开启点击反馈 | `Boolean` | `false` |
| disabled | 是否禁用面板 | `Boolean` | `false` |
### CollapseItem Slot