@ -153,11 +153,11 @@
show - overflow - tooltip
show - overflow - tooltip
> < / e l - t a b l e - c o l u m n >
> < / e l - t a b l e - c o l u m n >
< fu -table -operations
< fu -table -operations
: ellipsis = " 3"
: ellipsis = " mobile ? 0 : 3"
: buttons = "buttons"
: buttons = "buttons"
: label = "$t('commons.table.operate')"
: label = "$t('commons.table.operate')"
min - width = " 300"
: min - width = " mobile ? 'auto' : 300"
fixed = " right"
: fixed = " mobile ? false : ' right' "
fix
fix
/ >
/ >
< / ComplexTable >
< / ComplexTable >
@ -181,7 +181,7 @@
< / template >
< / template >
< script setup lang = "ts" >
< script setup lang = "ts" >
import { nextTick , onMounted , reactive , ref } from '@vue/runtime-core' ;
import { nextTick , onMounted , reactive , ref , computed } from '@vue/runtime-core' ;
import { GetFilesList , DeleteFile , GetFileContent , ComputeDirSize } from '@/api/modules/files' ;
import { GetFilesList , DeleteFile , GetFileContent , ComputeDirSize } from '@/api/modules/files' ;
import { computeSize , dateFormat , downloadFile , getIcon , getRandomStr } from '@/utils/util' ;
import { computeSize , dateFormat , downloadFile , getIcon , getRandomStr } from '@/utils/util' ;
import { File } from '@/api/interface/file' ;
import { File } from '@/api/interface/file' ;
@ -207,6 +207,8 @@ import { MsgSuccess, MsgWarning } from '@/utils/message';
import { ElMessageBox } from 'element-plus' ;
import { ElMessageBox } from 'element-plus' ;
import { useSearchable } from './hooks/searchable' ;
import { useSearchable } from './hooks/searchable' ;
import { ResultData } from '@/api/interface' ;
import { ResultData } from '@/api/interface' ;
import { GlobalStore } from '@/store' ;
const globalStore = GlobalStore ( ) ;
interface FilePaths {
interface FilePaths {
url : string ;
url : string ;
@ -269,6 +271,10 @@ const paginationConfig = reactive({
total : 0 ,
total : 0 ,
} ) ;
} ) ;
const mobile = computed ( ( ) => {
return globalStore . isMobile ( ) ;
} ) ;
const search = async ( ) => {
const search = async ( ) => {
loading . value = true ;
loading . value = true ;
req . page = paginationConfig . currentPage ;
req . page = paginationConfig . currentPage ;