[Doc] update changelog
This commit is contained in:
@@ -68,7 +68,7 @@ export default {
|
||||
### CouponCell API
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
|------|------|------|------|
|
||||
| title | Cell title | `String` | `Coupon` |
|
||||
| chosen-coupon | Index of chosen coupon | `Number` | `-1` |
|
||||
| coupons | Coupon list | `Array` | `[]` |
|
||||
@@ -77,7 +77,7 @@ export default {
|
||||
### CouponList API
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
|------|------|------|------|
|
||||
| v-model | Current exchange code | `String` | - |
|
||||
| chosen-coupon | Index of chosen coupon | `Number` | `-1` |
|
||||
| coupons | Coupon list | `Array` | `[]` |
|
||||
@@ -88,20 +88,19 @@ export default {
|
||||
| exchange-min-length | Min length to enable exchange button | `Number` | `1` |
|
||||
| displayed-coupon-index | Index of displayed coupon | `Number` | - |
|
||||
| close-button-text | Close button text | `String` | `Close` |
|
||||
| disabled-list-title | Disabled list title | `String` | `Unavailable` |
|
||||
| input-placeholder | Input placeholder | `String` | `Coupon code` |
|
||||
|
||||
### CouponList Event
|
||||
|
||||
| Event | Description | Arguments |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| change | Triggered when change chosen coupon | index: index of chosen coupon |
|
||||
| exchange | Triggered when exchange coupon | code: exchange code |
|
||||
|
||||
### Coupon Item Data Structure
|
||||
|
||||
| key | Description | Type |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| id | Id | `String` |
|
||||
| name | Name | `String` |
|
||||
| discount | Discount | `Number` |
|
||||
|
||||
@@ -89,7 +89,6 @@ export default create({
|
||||
code: String,
|
||||
closeButtonText: String,
|
||||
inputPlaceholder: String,
|
||||
disabledListTitle: String,
|
||||
exchangeButtonText: String,
|
||||
exchangeButtonLoading: Boolean,
|
||||
exchangeButtonDisabled: Boolean,
|
||||
|
||||
@@ -68,43 +68,43 @@ export default {
|
||||
|
||||
### CouponCell API
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| title | 单元格标题 | `String` | `优惠券码` |
|
||||
| chosen-coupon | 当前选中优惠券的索引 | `Number` | `-1` |
|
||||
| coupons | 可用优惠券列表 | `Array` | `[]` |
|
||||
| editable | 能否切换优惠券 | `Boolean` | `true` |
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| title | 单元格标题 | `String` | `优惠券` | - |
|
||||
| chosen-coupon | 当前选中优惠券的索引 | `Number` | `-1` | - |
|
||||
| coupons | 可用优惠券列表 | `Array` | `[]` | - |
|
||||
| editable | 能否切换优惠券 | `Boolean` | `true` | - |
|
||||
|
||||
### CouponList API
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | 当前输入的兑换码 | `String` | - |
|
||||
| chosen-coupon | 当前选中优惠券的索引 | `Number` | `-1` |
|
||||
| coupons | 可用优惠券列表 | `Array` | `[]` |
|
||||
| disabled-coupons | 不可用优惠券列表 | `Array` | `[]` |
|
||||
| exchange-button-text | 兑换按钮文字 | `String` | `兑换` |
|
||||
| exchange-button-loading | 是否在兑换按钮上显示加载动画 | `Boolean` | `false` |
|
||||
| exchange-button-disabled | 是否禁用兑换按钮 | `Boolean` | `false` |
|
||||
| exchange-min-length | 兑换码最小长度 | `Number` | `1` |
|
||||
| displayed-coupon-index | 滚动至特定优惠券位置 | `Number` | - |
|
||||
| show-close-button | 是否显示列表底部按钮 | `Boolean` | `true` |
|
||||
| close-button-text | 列表底部按钮文字 | `String` | `不使用优惠` |
|
||||
| disabled-list-title | 不可用券列表标题 | `String` | `不可用优惠` |
|
||||
| input-placeholder | 输入框文字提示 | `String` | `请输入优惠码` |
|
||||
| show-exchange-bar | 是否展示兑换栏 | `Boolean` | `true` |
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 当前输入的兑换码 | `String` | - | - |
|
||||
| chosen-coupon | 当前选中优惠券的索引 | `Number` | `-1` | - |
|
||||
| coupons | 可用优惠券列表 | `Array` | `[]` | - |
|
||||
| disabled-coupons | 不可用优惠券列表 | `Array` | `[]` | - |
|
||||
| exchange-button-text | 兑换按钮文字 | `String` | `兑换` | - |
|
||||
| exchange-button-loading | 是否显示兑换按钮加载动画 | `Boolean` | `false` | - |
|
||||
| exchange-button-disabled | 是否禁用兑换按钮 | `Boolean` | `false` | - |
|
||||
| exchange-min-length | 兑换码最小长度 | `Number` | `1` | - |
|
||||
| displayed-coupon-index | 滚动至特定优惠券位置 | `Number` | - | - |
|
||||
| show-close-button | 是否显示列表底部按钮 | `Boolean` | `true` | - |
|
||||
| close-button-text | 列表底部按钮文字 | `String` | `不使用优惠` | - |
|
||||
| input-placeholder | 输入框文字提示 | `String` | `请输入优惠码` | - |
|
||||
| show-exchange-bar | 是否展示兑换栏 | `Boolean` | `true` | - |
|
||||
|
||||
### CouponList Event
|
||||
|
||||
| 事件名 | 说明 | 参数 |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| change | 优惠券切换回调 | index, 选中优惠券的索引 |
|
||||
| exchange | 兑换优惠券回调 | code, 兑换码 |
|
||||
|
||||
### 数据格式
|
||||
#### 优惠券字段说明
|
||||
|
||||
| key | 说明 | 类型 |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| id | 优惠券 id | `String` |
|
||||
| name | 优惠券名称 | `String` |
|
||||
| discount | 折扣(0为满减券)88=>8.8折 | `Number` |
|
||||
|
||||
Reference in New Issue
Block a user