|
@ -3,128 +3,58 @@ |
|
|
<div class="group"> |
|
|
<div class="group"> |
|
|
<!-- <div class="button">文件</div> --> |
|
|
<!-- <div class="button">文件</div> --> |
|
|
<!-- <div class="button">计算机</div> --> |
|
|
<!-- <div class="button">计算机</div> --> |
|
|
<div |
|
|
<div class="button" @click="backFolder()"> |
|
|
class="button" |
|
|
|
|
|
@click="backFolder()" |
|
|
|
|
|
> |
|
|
|
|
|
{{ t("back") }} |
|
|
{{ t("back") }} |
|
|
</div> |
|
|
</div> |
|
|
<!-- 查看 --> |
|
|
<!-- 查看 --> |
|
|
<div |
|
|
<div class="button" @click="popoverChange()"> |
|
|
class="button" |
|
|
|
|
|
@click="popoverChange()" |
|
|
|
|
|
> |
|
|
|
|
|
{{ t("view") }} |
|
|
{{ t("view") }} |
|
|
</div> |
|
|
</div> |
|
|
<!-- <div class="button" @click="newFolder()">新建</div> --> |
|
|
<!-- <div class="button" @click="newFolder()">新建</div> --> |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div v-if="isPopoverView" class="up-pop"> |
|
|
v-if="isPopoverView" |
|
|
|
|
|
class="up-pop" |
|
|
|
|
|
> |
|
|
|
|
|
<UpPopover v-model="chosenView"></UpPopover> |
|
|
<UpPopover v-model="chosenView"></UpPopover> |
|
|
</div> |
|
|
</div> |
|
|
<ComputerNavBar |
|
|
<ComputerNavBar v-model="router_url" @backFolder="backFolder()" @refresh="handleNavRefresh" |
|
|
v-model="router_url" |
|
|
@search="handleNavSearch" @changeHistory="handleHistoryChange"></ComputerNavBar> |
|
|
@backFolder="backFolder()" |
|
|
|
|
|
@refresh="handleNavRefresh" |
|
|
|
|
|
@search="handleNavSearch" |
|
|
|
|
|
@changeHistory="handleHistoryChange" |
|
|
|
|
|
></ComputerNavBar> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div class="main" @click="handleOuterClick"> |
|
|
class="main" |
|
|
<div v-if="!isMobileDevice()" class="left-tree" :style="{ |
|
|
@click="handleOuterClick" |
|
|
|
|
|
> |
|
|
|
|
|
<div |
|
|
|
|
|
class="left-tree" |
|
|
|
|
|
:style="{ |
|
|
|
|
|
width: leftWidth + 'px', |
|
|
width: leftWidth + 'px', |
|
|
}" |
|
|
}"> |
|
|
> |
|
|
<div class="disktopshow" @click="onTreeOpen('/C/Users/Desktop')"> |
|
|
<div |
|
|
<el-icon :size="20" color="#137bd2"> |
|
|
class="disktopshow" |
|
|
|
|
|
@click="onTreeOpen('/C/Users/Desktop')" |
|
|
|
|
|
> |
|
|
|
|
|
<el-icon |
|
|
|
|
|
:size="20" |
|
|
|
|
|
color="#137bd2" |
|
|
|
|
|
> |
|
|
|
|
|
<Platform /> |
|
|
<Platform /> |
|
|
</el-icon> |
|
|
</el-icon> |
|
|
{{ t("desktop") }} |
|
|
{{ t("desktop") }} |
|
|
</div> |
|
|
</div> |
|
|
<div class="showName">{{ t("computer") }}</div> |
|
|
<div class="showName">{{ t("computer") }}</div> |
|
|
<FileTree |
|
|
<FileTree :chosen-path="chosenTreePath" mode="list" :on-open="onTreeOpen" :on-refresh="onListRefresh" |
|
|
:chosen-path="chosenTreePath" |
|
|
:file-list="rootFileList" :key="random"> |
|
|
mode="list" |
|
|
|
|
|
:on-open="onTreeOpen" |
|
|
|
|
|
:on-refresh="onListRefresh" |
|
|
|
|
|
:file-list="rootFileList" |
|
|
|
|
|
:key="random" |
|
|
|
|
|
> |
|
|
|
|
|
</FileTree> |
|
|
</FileTree> |
|
|
<div |
|
|
<div class="showName" v-if="shareShow"> |
|
|
class="showName" |
|
|
|
|
|
v-if="shareShow" |
|
|
|
|
|
> |
|
|
|
|
|
{{ t("share") }} |
|
|
{{ t("share") }} |
|
|
</div> |
|
|
</div> |
|
|
<FileTree |
|
|
<FileTree v-if="shareShow" :chosen-path="chosenTreePath" mode="list" :on-open="onTreeOpen" |
|
|
v-if="shareShow" |
|
|
:on-refresh="onListRefresh" :file-list="shareFileList" :key="random"> |
|
|
:chosen-path="chosenTreePath" |
|
|
|
|
|
mode="list" |
|
|
|
|
|
:on-open="onTreeOpen" |
|
|
|
|
|
:on-refresh="onListRefresh" |
|
|
|
|
|
:file-list="shareFileList" |
|
|
|
|
|
:key="random" |
|
|
|
|
|
> |
|
|
|
|
|
</FileTree> |
|
|
</FileTree> |
|
|
<QuickLink :on-open="onTreeOpen"></QuickLink> |
|
|
<QuickLink :on-open="onTreeOpen"></QuickLink> |
|
|
<div |
|
|
<div class="left-handle" @mousedown="leftHandleDown"></div> |
|
|
class="left-handle" |
|
|
|
|
|
@mousedown="leftHandleDown" |
|
|
|
|
|
></div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div class="desk-outer" @contextmenu.self="showOuterMenu($event)" @dragenter.prevent @dragover.prevent |
|
|
class="desk-outer" |
|
|
@drop.stop="dragFileToDrop($event, router_url)" @click.self="onBackClick" @mousedown="backgroundDown"> |
|
|
@contextmenu.self="showOuterMenu($event)" |
|
|
<FileList :on-chosen="onChosen" :on-refresh="onListRefresh" :on-open="openFolder" :file-list="currentList" |
|
|
@dragenter.prevent |
|
|
theme="blue" :mode="chosenView"> |
|
|
@dragover.prevent |
|
|
|
|
|
@drop.stop="dragFileToDrop($event, router_url)" |
|
|
|
|
|
@click.self="onBackClick" |
|
|
|
|
|
@mousedown="backgroundDown" |
|
|
|
|
|
> |
|
|
|
|
|
<FileList |
|
|
|
|
|
:on-chosen="onChosen" |
|
|
|
|
|
:on-refresh="onListRefresh" |
|
|
|
|
|
:on-open="openFolder" |
|
|
|
|
|
:file-list="currentList" |
|
|
|
|
|
theme="blue" |
|
|
|
|
|
:mode="chosenView" |
|
|
|
|
|
> |
|
|
|
|
|
</FileList> |
|
|
</FileList> |
|
|
|
|
|
|
|
|
<div |
|
|
<div draggable="true" class="desk-item" v-if="creating"> |
|
|
draggable="true" |
|
|
|
|
|
class="desk-item" |
|
|
|
|
|
v-if="creating" |
|
|
|
|
|
> |
|
|
|
|
|
<div class="item_img"> |
|
|
<div class="item_img"> |
|
|
<!-- <img draggable="false" width="50" :src="foldericon" /> --> |
|
|
<!-- <img draggable="false" width="50" :src="foldericon" /> --> |
|
|
<svg |
|
|
<svg class="icon" aria-hidden="true" style="font-size: 1.2em"> |
|
|
class="icon" |
|
|
|
|
|
aria-hidden="true" |
|
|
|
|
|
style="font-size: 1.2em" |
|
|
|
|
|
> |
|
|
|
|
|
<use xlink:href="#icon-folder"></use> |
|
|
<use xlink:href="#icon-folder"></use> |
|
|
</svg> |
|
|
</svg> |
|
|
</div> |
|
|
</div> |
|
|
<input |
|
|
<input class="item_input" v-model="createInput" @blur="creatingEditEnd" /> |
|
|
class="item_input" |
|
|
|
|
|
v-model="createInput" |
|
|
|
|
|
@blur="creatingEditEnd" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<Chosen></Chosen> |
|
|
<Chosen></Chosen> |
|
|
</div> |
|
|
</div> |
|
@ -148,6 +78,7 @@ |
|
|
} from "@/system/index.ts"; |
|
|
} from "@/system/index.ts"; |
|
|
|
|
|
|
|
|
import { useChooseStore } from "@/stores/choose"; |
|
|
import { useChooseStore } from "@/stores/choose"; |
|
|
|
|
|
import { isMobileDevice } from "@/util/device"; |
|
|
|
|
|
|
|
|
const { choseStart, chosing, choseEnd, getRect, Chosen } = useRectChosen(); |
|
|
const { choseStart, chosing, choseEnd, getRect, Chosen } = useRectChosen(); |
|
|
|
|
|
|
|
@ -460,11 +391,13 @@ |
|
|
/* border-bottom: 1px solid black; */ |
|
|
/* border-bottom: 1px solid black; */ |
|
|
--button-item-height: 30px; |
|
|
--button-item-height: 30px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.main { |
|
|
.main { |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
position: relative; |
|
|
position: relative; |
|
|
top: 4px; |
|
|
top: 4px; |
|
|
|
|
|
|
|
|
.left-tree { |
|
|
.left-tree { |
|
|
position: relative; |
|
|
position: relative; |
|
|
overflow-x: hidden; |
|
|
overflow-x: hidden; |
|
@ -474,6 +407,7 @@ |
|
|
background-color: rgba(255, 255, 255, 0.1); |
|
|
background-color: rgba(255, 255, 255, 0.1); |
|
|
border-right: 1px solid rgba(134, 134, 134, 0.267); |
|
|
border-right: 1px solid rgba(134, 134, 134, 0.267); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.left-handle { |
|
|
.left-handle { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
right: 0; |
|
|
right: 0; |
|
@ -483,6 +417,7 @@ |
|
|
background: rgba(0, 0, 0, 0); |
|
|
background: rgba(0, 0, 0, 0); |
|
|
cursor: ew-resize; |
|
|
cursor: ew-resize; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.desk-outer { |
|
|
.desk-outer { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
height: 100%; |
|
|
height: 100%; |
|
@ -507,10 +442,12 @@ |
|
|
color: white; |
|
|
color: white; |
|
|
border: 1px solid rgba(0, 0, 0, 0); |
|
|
border: 1px solid rgba(0, 0, 0, 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.chosen { |
|
|
.chosen { |
|
|
border: 1px dashed #3bdbff3d; |
|
|
border: 1px dashed #3bdbff3d; |
|
|
background-color: #b9e3fd90; |
|
|
background-color: #b9e3fd90; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.desk-item:hover { |
|
|
.desk-item:hover { |
|
|
border: 1px solid rgba(149, 149, 149, 0.233); |
|
|
border: 1px solid rgba(149, 149, 149, 0.233); |
|
|
background-color: #b9e3fd5a; |
|
|
background-color: #b9e3fd5a; |
|
@ -579,23 +516,29 @@ |
|
|
background-color: #1b6bad; |
|
|
background-color: #1b6bad; |
|
|
color: white; |
|
|
color: white; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.showName { |
|
|
.showName { |
|
|
font-size: 11px; |
|
|
font-size: 11px; |
|
|
text-indent: 5px; |
|
|
text-indent: 5px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.disktopshow { |
|
|
.disktopshow { |
|
|
font-size: 12px; |
|
|
font-size: 12px; |
|
|
line-height: 20px; |
|
|
line-height: 20px; |
|
|
max-width: 200px; |
|
|
max-width: 200px; |
|
|
height: 30px; |
|
|
height: 30px; |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; /* 垂直居中对齐 */ |
|
|
align-items: center; |
|
|
justify-content: flex-start; /* 水平左对齐 */ |
|
|
/* 垂直居中对齐 */ |
|
|
|
|
|
justify-content: flex-start; |
|
|
|
|
|
/* 水平左对齐 */ |
|
|
user-select: none; |
|
|
user-select: none; |
|
|
|
|
|
|
|
|
.el-icon { |
|
|
.el-icon { |
|
|
margin-right: 3px; |
|
|
margin-right: 3px; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.disktopshow:hover { |
|
|
.disktopshow:hover { |
|
|
background-color: #b1f1ff4c; |
|
|
background-color: #b1f1ff4c; |
|
|
} |
|
|
} |
|
|