biz-file-list 文件列表
biz-file-list 介绍
该组件用来在流程表单详情中显示附件列表。(根据businessType和businessId去fs服务中检索)
并提供启用/禁用下载功能
biz-file-list Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
emptyText | 空文本时的页面显示的信息 | String | — | — |
hasDownload | 是否启用下载 | Boolean | — | true |
businessType | 业务类型 | String | — | — |
businessId | 业务ID | [String, Number] | — | — |
biz-file-list 使用
<template>
<div>
<biz-file-list
emptyText="未上传附件"
:hasDownload="true"
businessType="demoType"
:businessId="1"
>
</biz-file-list>
</div>
</template>
<script>
import BizFileList from '@/components/BizFileList/BizFileList'
export default {
components: { BizFileList },
data() {
return {
}
}
}
</script>