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>
|
<template>
|
||||||
<cell-group :class="b()">
|
<cell-group :class="b()" :border="border">
|
||||||
<cell
|
<cell
|
||||||
:title="title || $t('title')"
|
:title="title || $t('title')"
|
||||||
:value="value"
|
:value="value"
|
||||||
@ -21,6 +21,10 @@ export default create({
|
|||||||
|
|
||||||
props: {
|
props: {
|
||||||
title: String,
|
title: String,
|
||||||
|
border: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
coupons: {
|
coupons: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => []
|
default: () => []
|
||||||
|
@ -73,6 +73,7 @@ export default {
|
|||||||
| chosen-coupon | Index of chosen coupon | `Number` | `-1` |
|
| chosen-coupon | Index of chosen coupon | `Number` | `-1` |
|
||||||
| coupons | Coupon list | `Array` | `[]` |
|
| coupons | Coupon list | `Array` | `[]` |
|
||||||
| editable | Cell editable | `Boolean` | `true` |
|
| editable | Cell editable | `Boolean` | `true` |
|
||||||
|
| border | Whether to show outer border | `Boolean` | `true` |
|
||||||
|
|
||||||
### CouponList API
|
### CouponList API
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ export default {
|
|||||||
| chosen-coupon | 当前选中优惠券的索引 | `Number` | `-1` | - |
|
| chosen-coupon | 当前选中优惠券的索引 | `Number` | `-1` | - |
|
||||||
| coupons | 可用优惠券列表 | `Array` | `[]` | - |
|
| coupons | 可用优惠券列表 | `Array` | `[]` | - |
|
||||||
| editable | 能否切换优惠券 | `Boolean` | `true` | - |
|
| editable | 能否切换优惠券 | `Boolean` | `true` | - |
|
||||||
|
| border | 是否显示外边框 | `Boolean` | `true` | 1.3.10 |
|
||||||
|
|
||||||
### CouponList API
|
### CouponList API
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user