官网说明 tabal表格中Table Attributes: empty-text 空数据时显示的文本内容, 也可以通过 #empty 设置 string
https://element-plus.gitee.io/zh-CN/component/table.html#table-attributes
问题是 这个 #empty 怎么设置没弄明白
官网说明 tabal表格中Table Attributes: empty-text 空数据时显示的文本内容, 也可以通过 #empty 设置 string
https://element-plus.gitee.io/zh-CN/component/table.html#table-attributes
问题是 这个 #empty 怎么设置没弄明白
如果非得用slot方式可以用这样
<el-table>
<template #empty>用slot方式的显示为空</template>
</el-table>