附件修改

This commit is contained in:
XaoLi717 2025-01-15 15:19:44 +08:00
parent 67da503933
commit 921ca46d22

View File

@ -24,19 +24,19 @@
<Icon icon="ep:upload-filled" /> <Icon icon="ep:upload-filled" />
选取文件 选取文件
</el-button> </el-button>
<template v-if="isShowTip && !disabled" #tip> <template #tip>
<div v-if="props.showSyncButton"> <div v-if="isShowTip && !disabled">
<el-button type="primary" @click="SyncFiles"> <div style="font-size: 8px">
<Icon icon="ep:upload-filled" /> 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>
同步文件 </div>
</el-button> <div style="font-size: 8px">
</div> 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b> 的文件
<div style="font-size: 8px"> </div>
大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>
</div>
<div style="font-size: 8px">
格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b> 的文件
</div> </div>
<el-button v-if="props.showSyncButton" type="primary" @click="SyncFiles">
<Icon icon="ep:upload-filled" />
同步文件
</el-button>
</template> </template>
<template #file="row"> <template #file="row">
<div class="flex items-center"> <div class="flex items-center">
@ -77,7 +77,7 @@
>编辑后下载 >编辑后下载
</el-link> </el-link>
</div> </div>
<div class="ml-10px"> <div v-if="!disabled" class="ml-10px">
<el-button link type="danger" @click="handleRemove(row.file)"> 删除</el-button> <el-button link type="danger" @click="handleRemove(row.file)"> 删除</el-button>
</div> </div>
<div class="ml-10px" v-if="lod&&props.showSyncButton"> <div class="ml-10px" v-if="lod&&props.showSyncButton">
@ -129,10 +129,11 @@ const props = defineProps({
autoUpload: propTypes.bool.def(true), // autoUpload: propTypes.bool.def(true), //
drag: propTypes.bool.def(false), // drag: propTypes.bool.def(false), //
isShowTip: propTypes.bool.def(true), // isShowTip: propTypes.bool.def(true), //
disabled: propTypes.bool.def(false), // ==> false // ==> false-> - -
//OnlyOffice disabled: propTypes.bool.def(false),
//OnlyOffice -> -
openOnlyOffice: propTypes.bool.def(false), openOnlyOffice: propTypes.bool.def(false),
// // -> -
showSyncButton: propTypes.bool.def(false), showSyncButton: propTypes.bool.def(false),
}) })