ant-design-vue/antdv-demo/docs/empty/demo/simple.md

24 lines
472 B
Markdown
Raw Normal View History

2021-03-12 07:48:30 +00:00
<cn>
#### 选择图片
可以通过设置 `image``Empty.PRESENTED_IMAGE_SIMPLE` 选择另一种风格的图片。
</cn>
<us>
#### Chose image
You can choose another style of `image` by setting image to `Empty.PRESENTED_IMAGE_SIMPLE`.
</us>
```vue
<template>
<a-empty :image="simpleImage" />
</template>
<script>
import { Empty } from 'ant-design-vue';
export default {
beforeCreate() {
this.simpleImage = Empty.PRESENTED_IMAGE_SIMPLE;
},
};
</script>
```