mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] CouponCell: add border prop (#1993)
This commit is contained in:
parent
edaad55e30
commit
917473aaff
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user