mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 21:18:14 +08:00
488 B
488 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>