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>
|
2018-03-20 13:48:01 +00:00
|
|
|
|
import { message } from 'antd'
|
2018-02-06 08:43:59 +00:00
|
|
|
|
export default {
|
|
|
|
|
methods: {
|
|
|
|
|
success () {
|
2018-03-20 13:48:01 +00:00
|
|
|
|
const hide = message.loading('Action in progress..', 0);
|
2018-02-06 08:43:59 +00:00
|
|
|
|
setTimeout(hide, 2500);
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
```
|
|
|
|
|
|