verce-vue-test 0.0.50 → 0.0.51
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 +1 -1
- package/src/views/HomeView.vue +31 -31
package/package.json
CHANGED
package/src/views/HomeView.vue
CHANGED
|
@@ -85,8 +85,8 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
85
85
|
{
|
|
86
86
|
id: 'rmb',
|
|
87
87
|
title: '人民币',
|
|
88
|
-
amount: '
|
|
89
|
-
decimal: '
|
|
88
|
+
amount: '--',
|
|
89
|
+
decimal: '.--',
|
|
90
90
|
unit: 'CNY',
|
|
91
91
|
symbol: '¥',
|
|
92
92
|
background: cardRmbBg,
|
|
@@ -99,11 +99,11 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
99
99
|
{
|
|
100
100
|
id: 'usd',
|
|
101
101
|
title: '美元',
|
|
102
|
-
amount: '
|
|
103
|
-
decimal: '
|
|
102
|
+
amount: '--',
|
|
103
|
+
decimal: '.--',
|
|
104
104
|
balances: [
|
|
105
|
-
{ key: 'domestic', label: '境内', amount: '
|
|
106
|
-
{ key: 'overseas', label: '境外', amount: '
|
|
105
|
+
{ key: 'domestic', label: '境内', amount: '--', decimal: '.--' },
|
|
106
|
+
{ key: 'overseas', label: '境外', amount: '--', decimal: '.--' },
|
|
107
107
|
],
|
|
108
108
|
unit: 'USD',
|
|
109
109
|
symbol: '$',
|
|
@@ -117,8 +117,8 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
117
117
|
{
|
|
118
118
|
id: 'clearing',
|
|
119
119
|
title: '城银清',
|
|
120
|
-
amount: '
|
|
121
|
-
decimal: '
|
|
120
|
+
amount: '--',
|
|
121
|
+
decimal: '.--',
|
|
122
122
|
unit: 'CNY',
|
|
123
123
|
icon: School,
|
|
124
124
|
background: cardClearingBg,
|
|
@@ -131,11 +131,11 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
131
131
|
{
|
|
132
132
|
id: 'eur',
|
|
133
133
|
title: '欧元',
|
|
134
|
-
amount: '
|
|
135
|
-
decimal: '
|
|
134
|
+
amount: '--',
|
|
135
|
+
decimal: '.--',
|
|
136
136
|
balances: [
|
|
137
|
-
{ key: 'domestic', label: '境内', amount: '
|
|
138
|
-
{ key: 'overseas', label: '境外', amount: '
|
|
137
|
+
{ key: 'domestic', label: '境内', amount: '--', decimal: '.--' },
|
|
138
|
+
{ key: 'overseas', label: '境外', amount: '--', decimal: '.--' },
|
|
139
139
|
],
|
|
140
140
|
unit: 'EUR',
|
|
141
141
|
symbol: '€',
|
|
@@ -149,8 +149,8 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
149
149
|
{
|
|
150
150
|
id: 'cross-border-rmb',
|
|
151
151
|
title: '跨境人民币',
|
|
152
|
-
amount: '
|
|
153
|
-
decimal: '
|
|
152
|
+
amount: '--',
|
|
153
|
+
decimal: '.--',
|
|
154
154
|
unit: 'CNY',
|
|
155
155
|
icon: Compass,
|
|
156
156
|
background: cardCrossBorderBg,
|
|
@@ -163,11 +163,11 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
163
163
|
{
|
|
164
164
|
id: 'hkd',
|
|
165
165
|
title: '港元',
|
|
166
|
-
amount: '
|
|
167
|
-
decimal: '
|
|
166
|
+
amount: '--',
|
|
167
|
+
decimal: '.--',
|
|
168
168
|
balances: [
|
|
169
|
-
{ key: 'domestic', label: '境内', amount: '
|
|
170
|
-
{ key: 'overseas', label: '境外', amount: '
|
|
169
|
+
{ key: 'domestic', label: '境内', amount: '--', decimal: '.--' },
|
|
170
|
+
{ key: 'overseas', label: '境外', amount: '--', decimal: '.--' },
|
|
171
171
|
],
|
|
172
172
|
unit: 'HKD',
|
|
173
173
|
symbol: 'HK$',
|
|
@@ -182,8 +182,8 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
182
182
|
{
|
|
183
183
|
id: 'digital-currency',
|
|
184
184
|
title: '数字货币',
|
|
185
|
-
amount: '
|
|
186
|
-
decimal: '
|
|
185
|
+
amount: '--',
|
|
186
|
+
decimal: '.--',
|
|
187
187
|
unit: 'CNY',
|
|
188
188
|
icon: Connection,
|
|
189
189
|
background: cardDigitalBg,
|
|
@@ -196,11 +196,11 @@ const balanceCards = shallowRef<BalanceCard[]>([
|
|
|
196
196
|
{
|
|
197
197
|
id: 'jpy',
|
|
198
198
|
title: '日元',
|
|
199
|
-
amount: '
|
|
200
|
-
decimal: '
|
|
199
|
+
amount: '--',
|
|
200
|
+
decimal: '.--',
|
|
201
201
|
balances: [
|
|
202
|
-
{ key: 'domestic', label: '境内', amount: '
|
|
203
|
-
{ key: 'overseas', label: '境外', amount: '
|
|
202
|
+
{ key: 'domestic', label: '境内', amount: '--', decimal: '.--' },
|
|
203
|
+
{ key: 'overseas', label: '境外', amount: '--', decimal: '.--' },
|
|
204
204
|
],
|
|
205
205
|
unit: 'JPY',
|
|
206
206
|
symbol: '¥',
|
|
@@ -285,7 +285,7 @@ function formatHomeBalanceAmount(value: unknown): HomeBalanceAmount {
|
|
|
285
285
|
const text = normalizeNumberText(value)
|
|
286
286
|
|
|
287
287
|
if (!text) {
|
|
288
|
-
return { amount: '
|
|
288
|
+
return { amount: '--', decimal: '.--' }
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
const isNegative = text.startsWith('-')
|
|
@@ -616,8 +616,8 @@ function addThousands(value: string) {
|
|
|
616
616
|
linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28)),
|
|
617
617
|
#ffffff;
|
|
618
618
|
box-shadow:
|
|
619
|
-
0 0 0 1px
|
|
620
|
-
0 0.12rem clamp(0.28rem, 0.5vw, 0.55rem)
|
|
619
|
+
0 0 0 1px rgba(255, 255, 255, 0.72) inset,
|
|
620
|
+
0 0.12rem clamp(0.28rem, 0.5vw, 0.55rem) var(--card-glow),
|
|
621
621
|
0 0 clamp(0.4rem, 0.75vw, 0.85rem) rgba(255, 255, 255, 0.76) inset,
|
|
622
622
|
0.24rem 0 0 var(--accent) inset;
|
|
623
623
|
}
|
|
@@ -634,7 +634,7 @@ function addThousands(value: string) {
|
|
|
634
634
|
border-radius: var(--card-radius) 0 0 var(--card-radius);
|
|
635
635
|
background: linear-gradient(180deg, var(--accent-soft), var(--accent-deep));
|
|
636
636
|
box-shadow:
|
|
637
|
-
0.08rem 0 0
|
|
637
|
+
0.08rem 0 0 rgba(255, 255, 255, 0.78),
|
|
638
638
|
0 0 clamp(0.45rem, 0.85vw, 1rem) var(--card-glow);
|
|
639
639
|
}
|
|
640
640
|
|
|
@@ -782,9 +782,9 @@ function addThousands(value: string) {
|
|
|
782
782
|
place-items: center;
|
|
783
783
|
padding-inline: clamp(0.22rem, 0.36vw, 0.38rem);
|
|
784
784
|
overflow: hidden;
|
|
785
|
-
border: 1px solid
|
|
785
|
+
border: 1px solid var(--card-border);
|
|
786
786
|
border-radius: 999px;
|
|
787
|
-
color:
|
|
787
|
+
color: var(--accent-deep);
|
|
788
788
|
background: rgba(255, 255, 255, 0.62);
|
|
789
789
|
font-size: clamp(0.62rem, 0.8vw, 0.86rem);
|
|
790
790
|
font-weight: 800;
|
|
@@ -835,7 +835,7 @@ function addThousands(value: string) {
|
|
|
835
835
|
.unit-label {
|
|
836
836
|
max-width: 100%;
|
|
837
837
|
margin-top: clamp(0.35rem, 0.75vw, 0.85rem);
|
|
838
|
-
color:
|
|
838
|
+
color: var(--accent-deep);
|
|
839
839
|
font-size: clamp(0.95rem, 1.35vw, 1.55rem);
|
|
840
840
|
font-weight: 500;
|
|
841
841
|
line-height: 1;
|