getList() {
let that = this
//打卡加载遮罩层
const loading = this.$loading({
lock: true,
text: '拼命加载中,请稍后...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.5)',
target: document.querySelector('.box')
});
//模拟
setTimeOut(function(){
loading.close(); //关闭加载遮罩层
},100)
},
vue element 针对某个div进行加载提示
最新推荐文章于 2023-07-27 17:14:36 发布