@@ -242,11 +242,10 @@ import useGlobalConfigStore from "~/stores/global-config";
242
242
// element table 表格加载动画
243
243
import " ~/assets/table-animation.less" ;
244
244
// element 图标
245
- import { Calendar , Coin , Document , FolderOpened } from " @element-plus/icons-vue" ;
245
+ import { Calendar , Coin , Document } from " @element-plus/icons-vue" ;
246
246
247
- // 右键菜单
248
- import { Contextmenu , ContextmenuDivider , ContextmenuItem } from " v-contextmenu" ;
249
247
import useFileContextMenu from " ~/composables/file/useFileContextMenu" ;
248
+ const { showFileMenu } = useFileContextMenu ();
250
249
251
250
// 文件类别数据相关
252
251
import useFileData from " ~/composables/file/useFileData" ;
@@ -329,7 +328,6 @@ let storageConfigStore = useStorageConfigStore();
329
328
let globalConfigStore = useGlobalConfigStore ();
330
329
331
330
const currentInstance = getCurrentInstance ();
332
- const { showFileMenu , contextMenuTargetFile } = useFileContextMenu (currentInstance);
333
331
334
332
let { checkSelectable, selectRowsChange, selectRow, selectRows, selectStatistics, tableRowClassName, clearSelection } = useFileSelect (currentInstance);
335
333
@@ -622,36 +620,6 @@ const showDialog = (readmeText) => {
622
620
623
621
}
624
622
625
- // 右键菜单
626
- .v-contextmenu-item {
627
- // 文字和图标的距离
628
- :deep (label ) {
629
- @apply ml- 2.5 ;
630
- }
631
-
632
- // 图标位置修正为居中
633
- :deep(.contextmenu-icon ) {
634
- @apply top- [1px ] pt- [1px ];
635
- }
636
- }
637
-
638
- .zfile-index-body {
639
- // 工具条
640
- .zfile-index-hover-tools {
641
- @apply absolute z-10 bottom-0 sm :bottom- 10 left- 0 right- 0 mx- auto w- fit;
642
-
643
- .zfile-index-hover-body {
644
- @apply bg- [#313136] w-fit px-5 h-12 py-2 text-white rounded mx-auto space-x-6 text- 2xl ;
645
-
646
- svg {
647
- @apply inline text-white cursor-pointer outline-none ;
648
- & :hover {
649
- @apply text-blue- 400;
650
- }
651
- }
652
- }
653
- }
654
- }
655
623
</style >
656
624
657
625
<route lang="yaml">
0 commit comments