mg-ocr-invoice 0.4.8 → 0.4.10

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.
Files changed (30) hide show
  1. package/dist/index.es.js +10618 -11509
  2. package/dist/index.umd.js +41 -41
  3. package/dist/style.css +9 -1
  4. package/dist/types/components/InoviceConfirmDialog/InoviceConfirmDialog.vue.d.ts +114 -0
  5. package/dist/types/components/Invoice/index.vue.d.ts +1 -0
  6. package/dist/types/components/InvoiceList/Skeleton.vue.d.ts +14 -0
  7. package/dist/types/components/InvoiceList/const.d.ts +1 -1
  8. package/dist/types/components/InvoiceList/index.vue.d.ts +1 -0
  9. package/dist/types/components/InvoicePopup/InvoicePopup.vue.d.ts +61 -0
  10. package/dist/types/components/Loading/index.vue.d.ts +11 -0
  11. package/dist/types/components/Message/index.vue.d.ts +32 -0
  12. package/dist/types/components/OCRInvoice/const.d.ts +0 -2
  13. package/dist/types/index.d.ts +0 -1
  14. package/dist/types/main.d.ts +0 -1
  15. package/dist/types/utils/common.d.ts +3 -0
  16. package/dist/types/utils/components.d.ts +35 -0
  17. package/dist/types/utils/upload.d.ts +0 -1
  18. package/package.json +3 -4
  19. package/src/components/InoviceConfirmDialog/InoviceConfirmDialog.vue +273 -0
  20. package/src/components/Invoice/index.vue +327 -271
  21. package/src/components/InvoiceList/Skeleton.vue +121 -0
  22. package/src/components/InvoiceList/index.vue +451 -402
  23. package/src/components/InvoicePopup/InvoicePopup.vue +217 -0
  24. package/src/components/Loading/index.vue +60 -0
  25. package/src/components/Message/index.vue +108 -0
  26. package/src/components/OCRInvoice/const.ts +0 -4
  27. package/src/components/OCRInvoice/index.vue +5 -7
  28. package/src/components/PaymentMode/index.vue +25 -38
  29. package/dist/types/styles/vantimpCss.d.ts +0 -15
  30. package/dist/types/utils/getUrlParams.d.ts +0 -1
@@ -0,0 +1,121 @@
1
+ <template>
2
+ <div class="skeleton-card">
3
+ <div class="skeleton-title"></div>
4
+
5
+ <div class="skeleton-tags">
6
+ <div class="skeleton-tag"></div>
7
+ <div class="skeleton-tag"></div>
8
+ </div>
9
+
10
+ <div class="skeleton-content">
11
+ <div class="skeleton-row" v-for="item in $props.row">
12
+ <div class="skeleton-label"></div>
13
+ <div class="skeleton-value"></div>
14
+ </div>
15
+ </div>
16
+ </div>
17
+ </template>
18
+ <script lang="ts" setup>
19
+ const $props = defineProps({
20
+ row: {
21
+ type: Number,
22
+ default() {
23
+ return 3
24
+ },
25
+ },
26
+ })
27
+ </script>
28
+ <style scoped>
29
+ .skeleton-card {
30
+ background: #fff;
31
+ position: relative;
32
+ overflow: hidden;
33
+ animation: skeleton-loading 1.2s infinite alternate;
34
+ }
35
+
36
+ /* 标题区域 */
37
+ .skeleton-title {
38
+ width: 80px;
39
+ height: 20px;
40
+ background: #f0f0f0;
41
+ border-radius: 4px;
42
+ margin-bottom: 8px;
43
+ }
44
+
45
+ /* 标签组 */
46
+ .skeleton-tags {
47
+ display: flex;
48
+ gap: 12px;
49
+ margin-bottom: 16px;
50
+ }
51
+ .skeleton-tag {
52
+ height: 18px;
53
+ background: #f0f0f0;
54
+ border-radius: 3px;
55
+ }
56
+ .skeleton-tag:first-child {
57
+ width: 70px;
58
+ }
59
+ .skeleton-tag:last-child {
60
+ width: 40px;
61
+ }
62
+
63
+ /* 内容区域 */
64
+ .skeleton-content {
65
+ display: flex;
66
+ flex-direction: column;
67
+ gap: 12px;
68
+ }
69
+ .skeleton-row {
70
+ display: flex;
71
+ gap: 12px;
72
+ }
73
+ .skeleton-label {
74
+ width: 70px;
75
+ height: 14px;
76
+ background: #f0f0f0;
77
+ border-radius: 2px;
78
+ }
79
+ .skeleton-value {
80
+ flex: 1;
81
+ height: 14px;
82
+ background: #f0f0f0;
83
+ border-radius: 2px;
84
+ }
85
+
86
+ /* 加载动画 */
87
+ @keyframes skeleton-loading {
88
+ 0% {
89
+ opacity: 0.6;
90
+ }
91
+ 100% {
92
+ opacity: 1;
93
+ }
94
+ }
95
+
96
+ /* 渐变动画 */
97
+ .skeleton-card::after {
98
+ content: '';
99
+ position: absolute;
100
+ top: 0;
101
+ left: 0;
102
+ right: 0;
103
+ bottom: 0;
104
+ background: linear-gradient(
105
+ 90deg,
106
+ transparent,
107
+ rgba(255, 255, 255, 0.3),
108
+ transparent
109
+ );
110
+ animation: skeleton-shine 1.5s infinite;
111
+ }
112
+
113
+ @keyframes skeleton-shine {
114
+ 0% {
115
+ transform: translateX(-100%);
116
+ }
117
+ 100% {
118
+ transform: translateX(100%);
119
+ }
120
+ }
121
+ </style>