mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
fix: 解决文件选择框关闭再打开依然选中的问题 (#4243)
This commit is contained in:
parent
8cf8375911
commit
cd43bff44d
@ -8,7 +8,7 @@
|
|||||||
popper-class="file-list"
|
popper-class="file-list"
|
||||||
>
|
>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button :icon="Folder" :disabled="disabled" @click="popoverVisible = true"></el-button>
|
<el-button :icon="Folder" :disabled="disabled" @click="openPage()"></el-button>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
<el-button class="close" link @click="closePage">
|
<el-button class="close" link @click="closePage">
|
||||||
@ -145,6 +145,12 @@ const closePage = () => {
|
|||||||
selectRow.value = {};
|
selectRow.value = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const openPage = () => {
|
||||||
|
popoverVisible.value = true;
|
||||||
|
selectRow.value = {};
|
||||||
|
rowName.value = '';
|
||||||
|
};
|
||||||
|
|
||||||
const disabledDir = (row: File.File) => {
|
const disabledDir = (row: File.File) => {
|
||||||
if (props.isAll) {
|
if (props.isAll) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user