[improvement] CouponCell: add border prop (#1993)

This commit is contained in:
neverland 2018-10-29 18:04:09 +08:00 committed by GitHub
parent edaad55e30
commit 917473aaff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<cell-group :class="b()">
<cell-group :class="b()" :border="border">
<cell
:title="title || $t('title')"
:value="value"
@ -21,6 +21,10 @@ export default create({
props: {
title: String,
border: {
type: Boolean,
default: true
},
coupons: {
type: Array,
default: () => []

View File

@ -73,6 +73,7 @@ export default {
| chosen-coupon | Index of chosen coupon | `Number` | `-1` |
| coupons | Coupon list | `Array` | `[]` |
| editable | Cell editable | `Boolean` | `true` |
| border | Whether to show outer border | `Boolean` | `true` |
### CouponList API

View File

@ -74,6 +74,7 @@ export default {
| chosen-coupon | 当前选中优惠券的索引 | `Number` | `-1` | - |
| coupons | 可用优惠券列表 | `Array` | `[]` | - |
| editable | 能否切换优惠券 | `Boolean` | `true` | - |
| border | 是否显示外边框 | `Boolean` | `true` | 1.3.10 |
### CouponList API