mirror of
https://github.com/1Panel-dev/1Panel
synced 2024-11-21 23:29:44 +00:00
fix: 解决文件选择框关闭再打开依然选中的问题 (#4243)
This commit is contained in:
parent
8cf8375911
commit
cd43bff44d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user