ant-design-vue/components/message/demo/loading.md

486 B
Raw Blame History

#### 加载中 进行全局 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>