You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/card/demo/loading.md

37 lines
611 B

7 years ago
<cn>
#### 预加载的卡片
数据读入前会有文本块样式
</cn>
7 years ago
7 years ago
<us>
#### Loading card
Shows a loading indirector while the contents of the card is being featched
</us>
```html
<template>
<div>
<a-card :loading="loading" title="Card title">
whatever content
</a-card>
<a-button @click="handleClick" style="marginTop: 16px">Toggle loading</a-button>
</div>
7 years ago
</template>
<script>
export default {
data() {
return {
loading: true,
}
},
methods: {
handleClick() {
this.loading = !this.loading
}
},
}
</script>
7 years ago
```