@yeez-tech/user-my-order 0.1.3 → 0.1.5

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.
@@ -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.3",
4
+ "version": "0.1.5",
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",
@@ -31,10 +32,12 @@
31
32
  "prepublishOnly": "npm run build:lib"
32
33
  },
33
34
  "peerDependencies": {
35
+ "@arco-design/web-vue": "^2.50.0",
34
36
  "lucide-vue-next": "^0.487.0",
35
37
  "vue": "^3.5.0"
36
38
  },
37
39
  "devDependencies": {
40
+ "@arco-design/web-vue": "^2.57.0",
38
41
  "@vitejs/plugin-vue": "^6.0.5",
39
42
  "lucide-vue-next": "^0.487.0",
40
43
  "postcss": "^8.4.0",
@@ -15,7 +15,17 @@ export interface Product {
15
15
  export interface Order {
16
16
  id: string
17
17
  orderNumber: string
18
- status: '交易成功' | '已付款' | '已退款' | '待审核' | '已拒绝' | '已兑换' | '未兑换' | '已结算'
18
+ status:
19
+ | '交易成功'
20
+ | '已付款'
21
+ | '已退款'
22
+ | '待审核'
23
+ | '审核通过'
24
+ | '退款中'
25
+ | '已拒绝'
26
+ | '已兑换'
27
+ | '未兑换'
28
+ | '已结算'
19
29
  createTime: string
20
30
  paymentMethod?: string
21
31
  totalAmount: number
@@ -43,7 +53,11 @@ export interface DownloadState {
43
53
  fileSize: string;
44
54
  }
45
55
 
46
- 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>
47
61
 
48
62
  export interface OrderManagementProps {
49
63
  orders: Order[]
@@ -59,8 +73,11 @@ export interface OrderManagementProps {
59
73
  onResumeDownload?: (productId: string) => void
60
74
  onOpenFile?: (productId: string) => void
61
75
  onContactSeller?: (productId: string) => void
76
+ onRequestRefund?: (productId: string) => void
77
+ onRequestAfterSales?: (productId: string) => void
62
78
  downloadStates?: Record<string, DownloadState>
63
79
  downloadStatusText?: DownloadStatusTextMap
80
+ refundStates?: RefundStatesMap
64
81
  }
65
82
 
66
83
  export interface OrderDetailPanelProps {