2018-02-06 08:43:59 +00:00
|
|
|
|
|
|
|
|
|
<cn>
|
|
|
|
|
#### 加载中
|
|
|
|
|
进行全局 loading,异步自行移除。
|
|
|
|
|
</cn>
|
|
|
|
|
|
|
|
|
|
<us>
|
|
|
|
|
#### Message of loading
|
|
|
|
|
Display a global loading indicator, which is dismissed by itself asynchronously.
|
|
|
|
|
</us>
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<template>
|
|
|
|
|
<a-button @click="success">Display a loading indicator</a-button>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
methods: {
|
|
|
|
|
success () {
|
2018-04-08 13:17:20 +00:00
|
|
|
|
const hide = this.$message.loading('Action in progress..', 0);
|
2018-02-06 08:43:59 +00:00
|
|
|
|
setTimeout(hide, 2500);
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
```
|
|
|
|
|
|