mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 09:21:25 +08:00
486 B
486 B
#### 加载中
进行全局 loading,异步自行移除。
#### Message of loading
Display a global loading indicator, which is dismissed by itself asynchronously.
<template>
<a-button @click="success">Display a loading indicator</a-button>
</template>
<script>
export default {
methods: {
success() {
const hide = this.$message.loading('Action in progress..', 0);
setTimeout(hide, 2500);
},
},
};
</script>