style(X-Pack): 表格组件优化

This commit is contained in:
jianneng-fit2cloud
2025-01-03 17:09:53 +08:00
parent ce796b1d0e
commit a2181d2555
2 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,8 @@ import { ElTable, ElPagination } from 'element-plus-secondary'
import EmptyBackground from '@/components/empty-background/src/EmptyBackground.vue'
import TableBody from './TableBody.vue'
import { propTypes } from '@/utils/propTypes'
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
const props = defineProps({
columns: propTypes.arrayOf(propTypes.string),
isSearch: propTypes.bool.def(false),
@@ -140,7 +142,7 @@ defineExpose({
<template #empty>
<empty-background
v-if="props.showEmptyImg"
:description="props.emptyDesc ? props.emptyDesc : $t('data_set.no_data')"
:description="props.emptyDesc ? props.emptyDesc : t('data_set.no_data')"
:img-type="imgType || 'noneWhite'"
/>
<div v-else :style="{ width: '100%' }" />