elementUi-2.13.2版本添加暂无数据
1.实现效果如下:
2. 代码实现
<el-table empty-taxt="暂无数据"></el-table> css样式设置: .el-table__empty-text { display: block; text-align: center; width: 500px; // height: 200px; padding-top: 100px; background:url('../assets/images/nothing.png') no-repeat;//阿里icon找的64大小的图片 background-position:50% 50% ; color: #909399; box-sizing: border-box; }