feat: emptyText

This commit is contained in:
2023-07-21 21:38:41 +08:00
parent 3d8246b1f5
commit 49a39a22bb

View File

@ -1,6 +1,6 @@
<template>
<div w-full>
<el-table border :data="fileList" w-full>
<el-table border :empty-text="emptyText" :data="fileList" w-full>
<el-table-column align="center" :label="label1">
<template #default="{ row }">
<template v-if="row.createdBy">
@ -78,6 +78,8 @@ const props = withDefaults(defineProps<{
label2?: string
/** 列3的文字 */
label3?: string
/** 空白文字 */
emptyText?: string
/** 文件列表支持v-model */
fileList?: FileVO[]
/** 再次上传确认的提示文字 */
@ -102,6 +104,7 @@ const props = withDefaults(defineProps<{
allowDelete: true,
allowReplace: false,
disabled: false,
emptyText: '暂无上传文件',
hideAdd: false,
label1: '文件名称',
label2: '图片上传',