feat(CouponCell): chosen-coupon can be string

This commit is contained in:
陈嘉涵
2020-02-02 22:30:47 +08:00
parent fa4f37bba8
commit 69560f4fce
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ export default {
| Attribute | Description | Type | Default |
|------|------|------|------|
| title | Cell title | *string* | `Coupon` |
| chosen-coupon | Index of chosen coupon | *number* | `-1` |
| chosen-coupon | Index of chosen coupon | *number \| string* | `-1` |
| coupons | Coupon list | *Coupon[]* | `[]` |
| editable | Cell editable | *boolean* | `true` |
| border | Whether to show innner border | *boolean* | `true` |
+1 -1
View File
@@ -78,7 +78,7 @@ export default {
| 参数 | 说明 | 类型 | 默认值 |
|------|------|------|------|
| title | 单元格标题 | *string* | `优惠券` |
| chosen-coupon | 当前选中优惠券的索引 | *number* | `-1` |
| chosen-coupon | 当前选中优惠券的索引 | *number \| string* | `-1` |
| coupons | 可用优惠券列表 | *Coupon[]* | `[]` |
| editable | 能否切换优惠券 | *boolean* | `true` |
| border | 是否显示内边框 | *boolean* | `true` |