1. 通过 Table 属性设置 <div class="el-plus-table"> <el-table empty-text="暂无数据" :data="tableData" style="width: 100%"> <el-table-column prop="date" label="Date" width="180" /> <el-table-column prop="name" label="Name" width="180" /> <el-table-column prop="address" label="Address" /> </el-table> </div> 2. 通过 Table 插槽设置 <div class="el-plus-table"> <el-table :data="tableData" style="width: 100%"> <template #empty>暂无数据</template> <el-table-column prop="date" label="Date" width="180" /> <el-table-column prop="name" label="Name" width="180" /> <el-table-column prop="address" label="Address" /> </el-table> </div> 3. 效果图