@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yeez-tech/user-my-order",
3
3
  "private": false,
4
- "version": "0.1.5",
4
+ "version": "0.1.7",
5
5
  "description": "我的订单页面(Vue 3):数据总览 + 订单列表/详情;受控数据 + 回调接入业务。",
6
6
  "type": "module",
7
7
  "main": "./dist/user-my-order.cjs",
@@ -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>