更新 FileList.vue、FileNavigator.vue 和 FileToolbar.vue 中 axios 属性的类型定义为 Function

This commit is contained in:
jxxghp
2025-06-30 19:39:02 +08:00
parent 60ea884fe2
commit 18cf1ea3d7
3 changed files with 193 additions and 187 deletions
+8 -2
View File
@@ -24,7 +24,7 @@ const inProps = defineProps({
storage: String,
endpoints: Object as PropType<EndPoints>,
axios: {
type: Object as PropType<any>,
type: Function,
required: true,
},
refreshpending: Boolean,
@@ -554,6 +554,7 @@ onMounted(() => {
</script>
<template>
<div>
<VCard class="d-flex flex-column w-full h-full rounded-t-0" :class="{ 'rounded-s-0': showTree }">
<div v-if="!loading" class="flex">
<IconBtn v-if="display.mdAndUp.value">
@@ -650,7 +651,11 @@ onMounted(() => {
<VMenu activator="parent" close-on-content-click>
<VList>
<template v-for="(menu, i) in dropdownItems" :key="i">
<VListItem v-if="menu.show" :base-color="menu.props.color" @click="menu.props.click(item)">
<VListItem
v-if="menu.show"
:base-color="menu.props.color"
@click="menu.props.click(item)"
>
<template #prepend>
<VIcon :icon="menu.props.prependIcon" />
</template>
@@ -746,4 +751,5 @@ onMounted(() => {
:context="nameTestResult"
@close="nameTestDialog = false"
/>
</div>
</template>
+1 -1
View File
@@ -27,7 +27,7 @@ const props = defineProps({
},
endpoints: Object,
axios: {
type: Object as PropType<any>,
type: Function,
required: true,
},
})
+1 -1
View File
@@ -24,7 +24,7 @@ const inProps = defineProps({
},
endpoints: Object as PropType<EndPoints>,
axios: {
type: Object as PropType<any>,
type: Function,
required: true,
},
})