mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
[improvement] CouponCell: add border prop (#1993)
This commit is contained in:
@@ -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: () => []
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -74,6 +74,7 @@ export default {
|
||||
| chosen-coupon | 当前选中优惠券的索引 | `Number` | `-1` | - |
|
||||
| coupons | 可用优惠券列表 | `Array` | `[]` | - |
|
||||
| editable | 能否切换优惠券 | `Boolean` | `true` | - |
|
||||
| border | 是否显示外边框 | `Boolean` | `true` | 1.3.10 |
|
||||
|
||||
### CouponList API
|
||||
|
||||
|
Reference in New Issue
Block a user