fix: 解决文件选择框关闭再打开依然选中的问题 (#4243)

This commit is contained in:
zhengkunwang 2024-03-20 11:32:07 +08:00 committed by GitHub
parent 8cf8375911
commit cd43bff44d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@
popper-class="file-list"
>
<template #reference>
<el-button :icon="Folder" :disabled="disabled" @click="popoverVisible = true"></el-button>
<el-button :icon="Folder" :disabled="disabled" @click="openPage()"></el-button>
</template>
<div>
<el-button class="close" link @click="closePage">
@ -145,6 +145,12 @@ const closePage = () => {
selectRow.value = {};
};
const openPage = () => {
popoverVisible.value = true;
selectRow.value = {};
rowName.value = '';
};
const disabledDir = (row: File.File) => {
if (props.isAll) {
return false;