feat: 目录选择增加显示隐藏文件夹 (#3315)

This commit is contained in:
zhengkunwang
2023-12-14 03:22:12 +00:00
committed by GitHub
parent c873c18a42
commit e8bc1310da
+7 -3
View File
@@ -103,7 +103,7 @@ const rowName = ref('');
const data = ref();
const loading = ref(false);
const paths = ref<string[]>([]);
const req = reactive({ path: '/', expand: true, page: 1, pageSize: 300 });
const req = reactive({ path: '/', expand: true, page: 1, pageSize: 300, showHidden: true });
const selectRow = ref();
const popoverVisible = ref(false);
@@ -196,13 +196,17 @@ const search = async (req: File.ReqFile) => {
};
onMounted(() => {
req.path = props.path;
if (props.path != '') {
req.path = props.path;
}
rowName.value = '';
search(req);
});
onUpdated(() => {
req.path = props.path;
if (props.path != '') {
req.path = props.path;
}
search(req);
});
</script>