• div中添加el-loading(局部loading的使用)


    效果:在div中实现el-loading

    1. class="content-main">
    2. {{ hotList }}
  • getHotList(columnType) {
  • this.$nextTick(() => {
  • var loading = this.$loading({
  • lock: true,
  • text: "努力加载中...",
  • spinner: "el-icon-loading",
  • background: "rgba(0, 0, 0, 0.5)",
  • target: document.querySelector(".content-main") // 替换成你的类名
  • });
  • try {
  • getPolicyList({columnType, pageNum: 1, pageSize: 10}).then(res15 => {
  • this.hotList = res15.data.rows
  • }).finally(() => {
  • loading.close();
  • })
  • } catch (error) {
  • console.error(error);
  • }
  • })
  • },
  • 相关阅读:
    JavaScript-Object.defineProperty函数
    python--文件操作
    m基于matlab的光通信的信道估计,均衡,抑制papr误码率仿真,对比ZF,RLS,MMSE三种算法
    xss基础
    汽车行驶中是怎么保障轴瓦安全的?
    JAVA毕业设计102—基于Java+Springboot+vue的个人理财管理系统(源码+数据库)
    configure: error: library ‘crypto‘ is required for OpenSSL
    降低半导体金属线电阻的沉积和蚀刻技术
    leetcode做题笔记133. 克隆图
    24/8/9算法笔记 决策树VS线性回归
  • 原文地址:https://blog.csdn.net/m0_74149462/article/details/134553193