mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 01:38:11 +08:00
style(X-Pack): 表格组件优化
This commit is contained in:
@@ -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%' }" />
|
||||
|
||||
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 356f2e4760...62cfd98aa3
Reference in New Issue
Block a user