mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
docs(Coupon): fix docs type (#11865)
This commit is contained in:
parent
cff0631b2b
commit
be0d498c0e
@ -105,8 +105,8 @@ export default {
|
||||
| --- | --- | --- | --- |
|
||||
| v-model | Current exchange code | _string_ | - |
|
||||
| chosen-coupon | Index of chosen coupon | _number_ | `-1` |
|
||||
| coupons | Coupon list | _Coupon[]_ | `[]` |
|
||||
| disabled-coupons | Disabled coupon list | _Coupon[]_ | `[]` |
|
||||
| coupons | Coupon list | _CouponInfo[]_ | `[]` |
|
||||
| disabled-coupons | Disabled coupon list | _CouponInfo[]_ | `[]` |
|
||||
| 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` |
|
||||
@ -134,7 +134,7 @@ export default {
|
||||
| list-footer | Coupon list bottom |
|
||||
| disabled-list-footer | Unavailable coupons list bottom |
|
||||
|
||||
### Data Structure of Coupon
|
||||
### Data Structure of CouponInfo
|
||||
|
||||
| Key | Description | Type |
|
||||
| ----------- | ----------------------------------- | -------- |
|
||||
@ -154,7 +154,7 @@ export default {
|
||||
The component exports the following type definitions:
|
||||
|
||||
```ts
|
||||
import type { CouponCellProps, CouponListProps } from 'vant';
|
||||
import type { CouponCellProps, CouponListProps, CouponInfo } from 'vant';
|
||||
```
|
||||
|
||||
## Theming
|
||||
|
@ -105,8 +105,8 @@ export default {
|
||||
| --- | --- | --- | --- |
|
||||
| v-model:code | 当前输入的兑换码 | _string_ | - |
|
||||
| chosen-coupon | 当前选中优惠券的索引 | _number_ | `-1` |
|
||||
| coupons | 可用优惠券列表 | _Coupon[]_ | `[]` |
|
||||
| disabled-coupons | 不可用优惠券列表 | _Coupon[]_ | `[]` |
|
||||
| coupons | 可用优惠券列表 | _CouponInfo[]_ | `[]` |
|
||||
| disabled-coupons | 不可用优惠券列表 | _CouponInfo[]_ | `[]` |
|
||||
| enabled-title | 可用优惠券列表标题 | _string_ | `可使用优惠券` |
|
||||
| disabled-title | 不可用优惠券列表标题 | _string_ | `不可使用优惠券` |
|
||||
| exchange-button-text | 兑换按钮文字 | _string_ | `兑换` |
|
||||
@ -136,7 +136,7 @@ export default {
|
||||
| list-footer | 优惠券列表底部 |
|
||||
| disabled-list-footer | 不可用优惠券列表底部 |
|
||||
|
||||
### Coupon 数据结构
|
||||
### CouponInfo 数据结构
|
||||
|
||||
| 键名 | 说明 | 类型 |
|
||||
| ----------- | ------------------------------- | -------- |
|
||||
@ -156,7 +156,7 @@ export default {
|
||||
组件导出以下类型定义:
|
||||
|
||||
```ts
|
||||
import type { CouponCellProps, CouponListProps } from 'vant';
|
||||
import type { CouponCellProps, CouponListProps, CouponInfo } from 'vant';
|
||||
```
|
||||
|
||||
## 主题定制
|
||||
|
Loading…
x
Reference in New Issue
Block a user