From 12a8300713d728e7d663d64fab994890c8e16325 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 17 Apr 2019 17:41:46 +0800 Subject: [PATCH] [new feature] Collapse: add clickable prop (#1538) --- packages/collapse-item/index.ts | 1 + packages/collapse-item/index.wxml | 3 ++- packages/collapse/README.md | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/collapse-item/index.ts b/packages/collapse-item/index.ts index 34c5bd97..f95bd9e6 100644 --- a/packages/collapse-item/index.ts +++ b/packages/collapse-item/index.ts @@ -20,6 +20,7 @@ VantComponent({ icon: String, label: String, disabled: Boolean, + clickable: Boolean, border: { type: Boolean, value: true diff --git a/packages/collapse-item/index.wxml b/packages/collapse-item/index.wxml index a3fe5a8f..91afbc2d 100644 --- a/packages/collapse-item/index.wxml +++ b/packages/collapse-item/index.wxml @@ -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" diff --git a/packages/collapse/README.md b/packages/collapse/README.md index 9a50dbae..c9685e1d 100644 --- a/packages/collapse/README.md +++ b/packages/collapse/README.md @@ -135,6 +135,7 @@ Page({ | label | 标题栏描述信息 | `String` | - | | border | 是否显示内边框 | `Boolean` | `true` | | is-link | 是否展示标题栏右侧箭头并开启点击反馈 | `Boolean` | `true` | +| clickable | 是否开启点击反馈 | `Boolean` | `false` | | disabled | 是否禁用面板 | `Boolean` | `false` | ### CollapseItem Slot