fix: 部分 el-table 增加 empty-text 属性 防止 no data和loading同时出现

This commit is contained in:
@changcode
2022-09-08 16:22:36 +08:00
parent 66d5e134a8
commit bb2cf79f3f
8 changed files with 8 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
.single-value__content { .single-value__content {
margin: 10px 0 12px 0; margin: 10px 0 12px 0;
display: flex; display: flex;
align-items: center;
.single-value__content-number { .single-value__content-number {
font-family: Helvetica-Bold; font-family: Helvetica-Bold;
font-size: 24px; font-size: 24px;

View File

@@ -42,6 +42,7 @@
width="100%" width="100%"
@selection-change="handleDetailSelectionChange" @selection-change="handleDetailSelectionChange"
:row-class-name="rowClassName" :row-class-name="rowClassName"
empty-text=" "
ref="tb"> ref="tb">
<el-table-column type="selection" align="center" label="" width="30px" style="border-left:0px;" /> <el-table-column type="selection" align="center" label="" width="30px" style="border-left:0px;" />

View File

@@ -4,6 +4,7 @@
ref="dataTable" ref="dataTable"
:data="tableData" :data="tableData"
:height="height" :height="height"
empty-text=" "
border border
@header-dragend="dragend" @header-dragend="dragend"
@sort-change="tableDataSort" @sort-change="tableDataSort"

View File

@@ -5,6 +5,7 @@
:data="tableData" :data="tableData"
:height="height" :height="height"
:expand-row-keys="expandedIds" :expand-row-keys="expandedIds"
empty-text=" "
row-key="id" row-key="id"
border border
tooltip-effect="light" tooltip-effect="light"

View File

@@ -4,6 +4,7 @@
ref="dataTable" ref="dataTable"
:data="tableData" :data="tableData"
:height="height" :height="height"
empty-text=" "
border border
@header-dragend="dragend" @header-dragend="dragend"
@sort-change="tableDataSort" @sort-change="tableDataSort"

View File

@@ -6,6 +6,7 @@
:data="tableData" :data="tableData"
style="width: 70%;" style="width: 70%;"
tooltip-effect="light" tooltip-effect="light"
empty-text=" "
border="none" border="none"
:size="'mini'" :size="'mini'"
:height="'100%'"> :height="'100%'">

View File

@@ -6,6 +6,7 @@
:ref="`dataTable_${index}`" :ref="`dataTable_${index}`"
:data="tableData" :data="tableData"
class="npm-recent-table" class="npm-recent-table"
empty-text=" "
height="100%" height="100%"
> >
<template v-for="(item, index) in customTableTitles" :key="index"> <template v-for="(item, index) in customTableTitles" :key="index">

View File

@@ -17,6 +17,7 @@
:row-style="rowStyle" :row-style="rowStyle"
:cell-style="{'text-align':'left','padding': '1px 0','border':'0px'}" :cell-style="{'text-align':'left','padding': '1px 0','border':'0px'}"
class="customer-no-border-table" class="customer-no-border-table"
empty-text=" "
style="width: 100%; height: 300px;" style="width: 100%; height: 300px;"
@row-click="filter" @row-click="filter"
> >