基础用法
<template>
<el-empty description="description" />
</template>
自定义图片
通过设置 image 属性传入图片 URL。
<template>
<el-empty
image="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
/>
</template>
图片尺寸
通过使用 image-size 属性来控制图片大小。
<template>
<el-empty :image-size="200" />
</template>
底部内容
使用默认插槽可在底部插入内容。
<template>
<el-empty>
<el-button type="primary">Button</el-button>
</el-empty>
</template>