@aquiferre/ui-kit 0.1.7 → 0.1.9

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.
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="table-container relative w-full">
2
+ <div class="table-container" :class="{ relative: loading }">
3
3
  <table class="table">
4
4
  <thead class="table-header">
5
5
  <tr>
@@ -27,7 +27,7 @@
27
27
  </tr>
28
28
  </thead>
29
29
  <tbody class="table-body">
30
- <tr v-if="!loading && data.length === 0">
30
+ <tr v-if="!loading && data.length === 0" class="table-row">
31
31
  <td :colspan="colspan" class="table-empty">
32
32
  {{ emptyText }}
33
33
  </td>
@@ -35,7 +35,7 @@
35
35
  <tr
36
36
  v-for="(row, index) in data"
37
37
  :key="row[rowKey] ?? index"
38
- class="table-row cursor-pointer"
38
+ class="table-row"
39
39
  @click="handleRowClick(row)"
40
40
  >
41
41
  <td v-if="selectable" class="table-cell" @click.stop>
@@ -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')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquiferre/ui-kit",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "index.ts",