全局加载
何时使用
- 需要全局loading
代码演示
基本
<template><div><a-button type="primary" @click="show" style="margin-right: 20px">show</a-button><a-button type="primary" @click="hide">hide</a-button></div></template><script>export default {data() {return {};},methods: {show() {this.$YSpin.show();setTimeout(() => {this.$YSpin.hide();}, 3000);},hide() {this.$YSpin.hide();},}}</script>
