[Doc] detailed Array typing

This commit is contained in:
陈嘉涵
2019-07-11 20:44:51 +08:00
parent 019c75506a
commit 2c4adff307
34 changed files with 67 additions and 66 deletions
+4 -4
View File
@@ -74,7 +74,7 @@ export default {
|------|------|------|------|
| title | Cell title | `string` | `Coupon` |
| chosen-coupon | Index of chosen coupon | `number` | `-1` |
| coupons | Coupon list | `Array` | `[]` |
| coupons | Coupon list | `Coupon[]` | `[]` |
| editable | Cell editable | `boolean` | `true` |
| border | Whether to show innner border | `boolean` | `true` |
| currency | Currency symbol | `string` | `¥` |
@@ -85,8 +85,8 @@ export default {
|------|------|------|------|
| v-model | Current exchange code | `string` | - |
| chosen-coupon | Index of chosen coupon | `number` | `-1` |
| coupons | Coupon list | `Array` | `[]` |
| disabled-coupons | Disabled coupon list | `Array` | `[]` |
| coupons | Coupon list | `Coupon[]` | `[]` |
| disabled-coupons | Disabled coupon list | `Coupon[]` | `[]` |
| enabled-title | Title of coupon list | `string` | `Available` | - |
| disabled-title | Title of disabled coupon list | `string` | `Unavailable` | - |
| exchange-button-text | Exchange button text | `string` | `Exchange` |
@@ -105,7 +105,7 @@ export default {
| change | Triggered when change chosen coupon | index: index of chosen coupon |
| exchange | Triggered when exchange coupon | code: exchange code |
### Coupon Item Data Structure
### Coupon Data Structure
| key | Description | Type |
|------|------|------|