element 在弹框上loading加载

element 在弹框上loading加载
在需要弹出的元素上加

<el-table :data="tableData.data" stripe style="width: 100%" v-loading="fullscreenLoading" 
				 element-loading-text="正在加载数据"
				:element-loading-spinner="svg"
				element-loading-svg-view-box="-10, -10, 50, 50"
				element-loading-background="rgba(0, 0, 0, 0.8)">
</el-table>
setup() {
		const svg = `
        <path class="path" d="
          M 30 15
          L 28 17
          M 25.61 25.61
          A 15 15, 0, 0, 1, 15 30
          A 15 15, 0, 1, 1, 27.99 7.5
          L 15 15
        " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
      `;
		const fullscreenLoading = ref(false)
}
//用法
fullscreenLoading.value = true
fullscreenLoading.value = false
上一篇:巧用 CSS 实现动态线条 Loading 动画


下一篇:ERROR A malformed block was encountered while loading a block