@yeez-tech/user-my-order 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -2
- package/dist/user-my-order.cjs +1 -1
- package/dist/user-my-order.css +1 -1
- package/dist/user-my-order.js +243 -145
- package/package.json +1 -1
- package/typings/index.d.ts +10 -0
package/package.json
CHANGED
package/typings/index.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export type RefundAction = 'refundable' | 'after_sales'
|
|
|
59
59
|
|
|
60
60
|
export type RefundStatesMap = Record<string, RefundAction>
|
|
61
61
|
|
|
62
|
+
export type DownloadButtonVisibleMap = Record<string, boolean>
|
|
63
|
+
|
|
64
|
+
export type ContactSellerButtonVisibleMap = Record<string, boolean>
|
|
65
|
+
|
|
62
66
|
export interface OrderManagementProps {
|
|
63
67
|
orders: Order[]
|
|
64
68
|
currentOrderPage?: number
|
|
@@ -77,13 +81,19 @@ export interface OrderManagementProps {
|
|
|
77
81
|
onRequestAfterSales?: (productId: string) => void
|
|
78
82
|
downloadStates?: Record<string, DownloadState>
|
|
79
83
|
downloadStatusText?: DownloadStatusTextMap
|
|
84
|
+
downloadButtonVisible?: DownloadButtonVisibleMap
|
|
85
|
+
contactSellerButtonVisible?: ContactSellerButtonVisibleMap
|
|
80
86
|
refundStates?: RefundStatesMap
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
export interface OrderDetailPanelProps {
|
|
84
90
|
order: Order
|
|
91
|
+
refundStates?: RefundStatesMap
|
|
92
|
+
contactSellerButtonVisible?: ContactSellerButtonVisibleMap
|
|
85
93
|
onContactSeller?: (productId: string) => void
|
|
86
94
|
onViewProduct?: (order: Order, product: Product) => void
|
|
95
|
+
onRequestRefund?: (productId: string) => void
|
|
96
|
+
onRequestAfterSales?: (productId: string) => void
|
|
87
97
|
}
|
|
88
98
|
|
|
89
99
|
export declare const OrderManagement: DefineComponent<OrderManagementProps>
|