rayyy-vue-table-components 2.0.34 → 2.0.35

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayyy-vue-table-components",
3
- "version": "2.0.34",
3
+ "version": "2.0.35",
4
4
  "description": "Vue 3 + Element Plus 表格組件庫",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
@@ -81,6 +81,7 @@ const operatorWidth = computed(() => {
81
81
 
82
82
  <template>
83
83
  <el-table
84
+ v-if="data.length > 0"
84
85
  v-loading="loading"
85
86
  :element-loading-text="t('common.loading')"
86
87
  :data="data"
@@ -144,6 +145,8 @@ const operatorWidth = computed(() => {
144
145
  </template>
145
146
  </el-table-column>
146
147
  </el-table>
148
+
149
+ <el-empty v-else />
147
150
  </template>
148
151
 
149
152
  <style scoped lang="scss"></style>
@@ -1,11 +1,10 @@
1
1
  <script setup lang="ts" generic="T extends Record<string, unknown>">
2
2
  import type { SortChangValue, TableColumn } from '@/types'
3
3
  import type { TableColumnCtx } from 'element-plus'
4
- import { reactive, type VNode } from 'vue'
4
+ import { reactive, type VNode } from 'vue'
5
5
  import { Setting } from '@element-plus/icons-vue'
6
6
  import { BaseTable } from '@/components'
7
7
 
8
-
9
8
  defineProps<{
10
9
  data: T[]
11
10
  columns: TableColumn<T>[]