@aquiferre/ui-kit 0.1.7 → 0.1.8
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.
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
<div class="text-xs mt-1">
|
|
32
32
|
<span v-if="item.status === 'uploading'" class="text-accent-primary">
|
|
33
|
-
上传中 {{ item.progress }}%
|
|
33
|
+
上传中 {{ item.progress.toFixed(2) }}%
|
|
34
34
|
</span>
|
|
35
35
|
<span v-else-if="item.status === 'success'" class="text-accent-success">✓ 完成</span>
|
|
36
36
|
<span v-else-if="item.status === 'error'" class="text-accent-danger">✗ {{ item.error }}</span>
|
|
@@ -95,7 +95,7 @@ async function handleFileSelect(event: Event) {
|
|
|
95
95
|
|
|
96
96
|
try {
|
|
97
97
|
await props.uploadFile(file, (percent) => {
|
|
98
|
-
item.progress = percent
|
|
98
|
+
item.progress = parseFloat(percent.toFixed(2))
|
|
99
99
|
})
|
|
100
100
|
item.status = 'success'
|
|
101
101
|
emit('uploaded')
|