@yeez-tech/user-my-order 0.1.4 → 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 +62 -22
- package/dist/_/347/224/263/350/257/267/351/200/200/346/254/276 1.svg" +14 -0
- package/dist/user-my-order.cjs +1 -1
- package/dist/user-my-order.css +1 -1
- package/dist/user-my-order.js +337 -166
- package/dist//345/224/256/345/220/216 1.svg" +4 -0
- package/package.json +3 -2
- package/typings/index.d.ts +18 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16.6302 5.86255L15.0705 2.09605C14.9904 1.90146 14.8541 1.73514 14.6791 1.61829C14.504 1.50144 14.2982 1.43935 14.0877 1.43995H4.00771C3.57661 1.43995 3.1914 1.69734 3.0258 2.09605L1.4643 5.86255C1.4103 5.99215 1.3833 6.12895 1.3833 6.27024V15.6392C1.3833 16.2252 1.8603 16.7022 2.44621 16.7022H15.6483C16.2342 16.7022 16.7112 16.2252 16.7112 15.6392V6.26936C16.7112 6.12896 16.6842 5.99215 16.6302 5.86257V5.86255ZM4.0203 2.51995H14.0778L15.3828 5.66995H2.71351L4.0203 2.51995ZM2.4633 15.6212L2.46151 6.74995H15.6312V15.6212H2.4633Z" fill="#4749AD"/>
|
|
3
|
+
<path d="M10.3598 13.9039H6.05957V12.8239H10.3598C10.9853 12.8239 11.4947 12.3145 11.4947 11.689C11.4947 11.0635 10.9853 10.5541 10.3598 10.5541H6.16307V9.60455L8.02426 7.76855L8.78297 8.53716L7.83347 9.47407H10.3598C11.5811 9.47407 12.5747 10.4677 12.5747 11.689C12.5747 12.9103 11.5811 13.9039 10.3598 13.9039Z" fill="#4749AD"/>
|
|
4
|
+
</svg>
|
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.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"description": "我的订单页面(Vue 3):数据总览 + 订单列表/详情;受控数据 + 回调接入业务。",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/user-my-order.cjs",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
|
20
|
-
"typings"
|
|
20
|
+
"typings",
|
|
21
|
+
"README.md"
|
|
21
22
|
],
|
|
22
23
|
"sideEffects": [
|
|
23
24
|
"**/*.css",
|
package/typings/index.d.ts
CHANGED
|
@@ -53,7 +53,15 @@ export interface DownloadState {
|
|
|
53
53
|
fileSize: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export type DownloadStatusTextMap = Partial<Record<DownloadStatus, string
|
|
56
|
+
export type DownloadStatusTextMap = Partial<Record<DownloadStatus, string>>
|
|
57
|
+
|
|
58
|
+
export type RefundAction = 'refundable' | 'after_sales'
|
|
59
|
+
|
|
60
|
+
export type RefundStatesMap = Record<string, RefundAction>
|
|
61
|
+
|
|
62
|
+
export type DownloadButtonVisibleMap = Record<string, boolean>
|
|
63
|
+
|
|
64
|
+
export type ContactSellerButtonVisibleMap = Record<string, boolean>
|
|
57
65
|
|
|
58
66
|
export interface OrderManagementProps {
|
|
59
67
|
orders: Order[]
|
|
@@ -69,14 +77,23 @@ export interface OrderManagementProps {
|
|
|
69
77
|
onResumeDownload?: (productId: string) => void
|
|
70
78
|
onOpenFile?: (productId: string) => void
|
|
71
79
|
onContactSeller?: (productId: string) => void
|
|
80
|
+
onRequestRefund?: (productId: string) => void
|
|
81
|
+
onRequestAfterSales?: (productId: string) => void
|
|
72
82
|
downloadStates?: Record<string, DownloadState>
|
|
73
83
|
downloadStatusText?: DownloadStatusTextMap
|
|
84
|
+
downloadButtonVisible?: DownloadButtonVisibleMap
|
|
85
|
+
contactSellerButtonVisible?: ContactSellerButtonVisibleMap
|
|
86
|
+
refundStates?: RefundStatesMap
|
|
74
87
|
}
|
|
75
88
|
|
|
76
89
|
export interface OrderDetailPanelProps {
|
|
77
90
|
order: Order
|
|
91
|
+
refundStates?: RefundStatesMap
|
|
92
|
+
contactSellerButtonVisible?: ContactSellerButtonVisibleMap
|
|
78
93
|
onContactSeller?: (productId: string) => void
|
|
79
94
|
onViewProduct?: (order: Order, product: Product) => void
|
|
95
|
+
onRequestRefund?: (productId: string) => void
|
|
96
|
+
onRequestAfterSales?: (productId: string) => void
|
|
80
97
|
}
|
|
81
98
|
|
|
82
99
|
export declare const OrderManagement: DefineComponent<OrderManagementProps>
|