element-table 无数据的时候,把“暂无数据” 改成其他文字或图片
文章目录
在el-table 里面插入
<template v-slot:empty>
<span style="color: #969799;">No more data</span>
</template><el-table :data="tableData" style="width: 100%" :header-cell-style="{background:'#F0F2F5',color:'#585858',textAlign: 'center'}" >
<template v-slot:"empty">
<span style="color: #969799;">No more data</span>
</template>
<el-table-column prop="content" label="OrderId" min-width="100" show-overflow-tooltip> </el-table-column>
<el-table-column prop="amount" label="amount" min-width="80" show-overflow-tooltip> </el-table-column>
</el-table>
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论