1. 每次看见El-ui 里面的 no Data 就感觉 其他都是中文输出,这突然来了英文很别扭机会来了

我们可以通过table 的solt属性为empty时 在封装的table 组件内设置自定义的返回样式


    <el-table
      v-loading="isLoading"
      :data="listData"
      ref="multipleTable"
      :height="heightStyle"
      show-summary
      stripe
      border
      :header-cell-style="{
        textAlign: 'center',
        background: '#F8F8F8',
        color: '#606060',
        borderColor: '#D0D0D0',
      }"
      row-key="id"
      @select="onTableSelect"
      @cell-click="tableCellClick"
    >
    <template slot="empty">
      <el-empty description="未查询到相关数据"></el-empty>
    </template>
    .....
  1. 如果想要自定义图片可以加入class 然后进行修饰
最后修改:2023 年 02 月 06 日 05 : 32 PM
如果觉得我的文章对你有用,请随意赞赏