在index.html加上
<body>
<div id="app">
<img src="./loading.gif" style="position: absolute;width: 64px;left: 0;right: 0;top: 0;bottom: 0;margin: auto; ">
</div>
<!-- built files will be auto injected -->
</body>
// 修改的是css
/* 修改loading动画 */
.el-loading-spinner .circular{ display: none; }
.el-loading-spinner{ background: url(../../public/loading.gif) center no-repeat;height: 68px;background-size: auto 68px; margin-top: -34px !important; }
自定义element ui动画
最新推荐文章于 2022-12-07 17:14:09 发布