|
|
@ -3,175 +3,106 @@ |
|
|
|
<div class="group"> |
|
|
|
<!-- <div class="button">文件</div> --> |
|
|
|
<!-- <div class="button">计算机</div> --> |
|
|
|
<div |
|
|
|
class="button" |
|
|
|
@click="backFolder()" |
|
|
|
> |
|
|
|
<div class="button" @click="backFolder()"> |
|
|
|
{{ t("back") }} |
|
|
|
</div> |
|
|
|
<!-- 查看 --> |
|
|
|
<div |
|
|
|
class="button" |
|
|
|
@click="popoverChange()" |
|
|
|
> |
|
|
|
<div class="button" @click="popoverChange()"> |
|
|
|
{{ t("view") }} |
|
|
|
</div> |
|
|
|
<!-- <div class="button" @click="newFolder()">新建</div> --> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
v-if="isPopoverView" |
|
|
|
class="up-pop" |
|
|
|
> |
|
|
|
<div v-if="isPopoverView" class="up-pop"> |
|
|
|
<UpPopover v-model="chosenView"></UpPopover> |
|
|
|
</div> |
|
|
|
<ComputerNavBar |
|
|
|
v-model="router_url" |
|
|
|
@backFolder="backFolder()" |
|
|
|
@refresh="handleNavRefresh" |
|
|
|
@search="handleNavSearch" |
|
|
|
@changeHistory="handleHistoryChange" |
|
|
|
></ComputerNavBar> |
|
|
|
<ComputerNavBar v-model="router_url" @backFolder="backFolder()" @refresh="handleNavRefresh" |
|
|
|
@search="handleNavSearch" @changeHistory="handleHistoryChange"></ComputerNavBar> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="main" |
|
|
|
@click="handleOuterClick" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="left-tree" |
|
|
|
:style="{ |
|
|
|
<div class="main" @click="handleOuterClick"> |
|
|
|
<div v-if="!isMobileDevice()" class="left-tree" :style="{ |
|
|
|
width: leftWidth + 'px', |
|
|
|
}" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="disktopshow" |
|
|
|
@click="onTreeOpen('/C/Users/Desktop')" |
|
|
|
> |
|
|
|
<el-icon |
|
|
|
:size="20" |
|
|
|
color="#137bd2" |
|
|
|
> |
|
|
|
}"> |
|
|
|
<div class="disktopshow" @click="onTreeOpen('/C/Users/Desktop')"> |
|
|
|
<el-icon :size="20" color="#137bd2"> |
|
|
|
<Platform /> |
|
|
|
</el-icon> |
|
|
|
{{ t("desktop") }} |
|
|
|
</div> |
|
|
|
<div class="showName">{{ t("computer") }}</div> |
|
|
|
<FileTree |
|
|
|
:chosen-path="chosenTreePath" |
|
|
|
mode="list" |
|
|
|
:on-open="onTreeOpen" |
|
|
|
:on-refresh="onListRefresh" |
|
|
|
:file-list="rootFileList" |
|
|
|
:key="random" |
|
|
|
> |
|
|
|
<FileTree :chosen-path="chosenTreePath" mode="list" :on-open="onTreeOpen" :on-refresh="onListRefresh" |
|
|
|
:file-list="rootFileList" :key="random"> |
|
|
|
</FileTree> |
|
|
|
<div |
|
|
|
class="showName" |
|
|
|
v-if="shareShow" |
|
|
|
> |
|
|
|
<div class="showName" v-if="shareShow"> |
|
|
|
{{ t("share") }} |
|
|
|
</div> |
|
|
|
<FileTree |
|
|
|
v-if="shareShow" |
|
|
|
:chosen-path="chosenTreePath" |
|
|
|
mode="list" |
|
|
|
:on-open="onTreeOpen" |
|
|
|
:on-refresh="onListRefresh" |
|
|
|
:file-list="shareFileList" |
|
|
|
:key="random" |
|
|
|
> |
|
|
|
<FileTree v-if="shareShow" :chosen-path="chosenTreePath" mode="list" :on-open="onTreeOpen" |
|
|
|
:on-refresh="onListRefresh" :file-list="shareFileList" :key="random"> |
|
|
|
</FileTree> |
|
|
|
<QuickLink :on-open="onTreeOpen"></QuickLink> |
|
|
|
<div |
|
|
|
class="left-handle" |
|
|
|
@mousedown="leftHandleDown" |
|
|
|
></div> |
|
|
|
<div class="left-handle" @mousedown="leftHandleDown"></div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="desk-outer" |
|
|
|
@contextmenu.self="showOuterMenu($event)" |
|
|
|
@dragenter.prevent |
|
|
|
@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" |
|
|
|
> |
|
|
|
<div class="desk-outer" @contextmenu.self="showOuterMenu($event)" @dragenter.prevent @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> |
|
|
|
|
|
|
|
<div |
|
|
|
draggable="true" |
|
|
|
class="desk-item" |
|
|
|
v-if="creating" |
|
|
|
> |
|
|
|
<div draggable="true" class="desk-item" v-if="creating"> |
|
|
|
<div class="item_img"> |
|
|
|
<!-- <img draggable="false" width="50" :src="foldericon" /> --> |
|
|
|
<svg |
|
|
|
class="icon" |
|
|
|
aria-hidden="true" |
|
|
|
style="font-size: 1.2em" |
|
|
|
> |
|
|
|
<svg class="icon" aria-hidden="true" style="font-size: 1.2em"> |
|
|
|
<use xlink:href="#icon-folder"></use> |
|
|
|
</svg> |
|
|
|
</div> |
|
|
|
<input |
|
|
|
class="item_input" |
|
|
|
v-model="createInput" |
|
|
|
@blur="creatingEditEnd" |
|
|
|
/> |
|
|
|
<input class="item_input" v-model="createInput" @blur="creatingEditEnd" /> |
|
|
|
</div> |
|
|
|
<Chosen></Chosen> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script lang="ts" setup> |
|
|
|
import { inject, onMounted, ref } from "vue"; |
|
|
|
import { useComputer } from "@/hook/useComputer"; |
|
|
|
import { useContextMenu } from "@/hook/useContextMenu"; |
|
|
|
import { useFileDrag } from "@/hook/useFileDrag"; |
|
|
|
import { Rect, useRectChosen } from "@/hook/useRectChosen"; |
|
|
|
// import { getSystemConfig } from "@/system/config"; |
|
|
|
import { emitEvent, mountEvent } from "@/system/event"; |
|
|
|
import { |
|
|
|
import { inject, onMounted, ref } from "vue"; |
|
|
|
import { useComputer } from "@/hook/useComputer"; |
|
|
|
import { useContextMenu } from "@/hook/useContextMenu"; |
|
|
|
import { useFileDrag } from "@/hook/useFileDrag"; |
|
|
|
import { Rect, useRectChosen } from "@/hook/useRectChosen"; |
|
|
|
// import { getSystemConfig } from "@/system/config"; |
|
|
|
import { emitEvent, mountEvent } from "@/system/event"; |
|
|
|
import { |
|
|
|
BrowserWindow, |
|
|
|
dirname, |
|
|
|
Notify, |
|
|
|
OsFileWithoutContent, |
|
|
|
t, |
|
|
|
useSystem, |
|
|
|
} 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(); |
|
|
|
|
|
|
|
const browserWindow: BrowserWindow | undefined = inject("browserWindow"); |
|
|
|
const config = browserWindow?.config; |
|
|
|
const browserWindow: BrowserWindow | undefined = inject("browserWindow"); |
|
|
|
const config = browserWindow?.config; |
|
|
|
|
|
|
|
const router_url = ref(""); |
|
|
|
const router_url_history = ref<Array<string>>([]); |
|
|
|
const router_url_history_index = ref(0); |
|
|
|
const currentList = ref<Array<OsFileWithoutContent>>([]); |
|
|
|
const router_url = ref(""); |
|
|
|
const router_url_history = ref<Array<string>>([]); |
|
|
|
const router_url_history_index = ref(0); |
|
|
|
const currentList = ref<Array<OsFileWithoutContent>>([]); |
|
|
|
|
|
|
|
const system = useSystem(); |
|
|
|
const { dragFileToDrop } = useFileDrag(system); |
|
|
|
const { createDesktopContextMenu } = useContextMenu(); |
|
|
|
// 选择保存文件路径时,传递选择路径 |
|
|
|
const props = defineProps({ |
|
|
|
const system = useSystem(); |
|
|
|
const { dragFileToDrop } = useFileDrag(system); |
|
|
|
const { createDesktopContextMenu } = useContextMenu(); |
|
|
|
// 选择保存文件路径时,传递选择路径 |
|
|
|
const props = defineProps({ |
|
|
|
translateSavePath: { |
|
|
|
type: Function |
|
|
|
}, |
|
|
|
componentID:{ |
|
|
|
componentID: { |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
const setRouter = function (path: string) { |
|
|
|
}) |
|
|
|
const setRouter = function (path: string) { |
|
|
|
if (props.translateSavePath && props.componentID) { |
|
|
|
props.translateSavePath(path) |
|
|
|
// router_url_history.value.push(path); |
|
|
@ -188,10 +119,10 @@ |
|
|
|
} |
|
|
|
router_url_history_index.value = router_url_history.value.length; |
|
|
|
router_url_history.value.push(path); |
|
|
|
}; |
|
|
|
const choose = useChooseStore() |
|
|
|
}; |
|
|
|
const choose = useChooseStore() |
|
|
|
|
|
|
|
const { refersh, createFolder, backFolder, openFolder, onComputerMount } = |
|
|
|
const { refersh, createFolder, backFolder, openFolder, onComputerMount } = |
|
|
|
useComputer({ |
|
|
|
setRouter: setRouter, |
|
|
|
getRouter() { |
|
|
@ -248,7 +179,7 @@ |
|
|
|
return system.fs.search(keyword); |
|
|
|
}, |
|
|
|
}); |
|
|
|
function handleHistoryChange(offset: number) { |
|
|
|
function handleHistoryChange(offset: number) { |
|
|
|
if (router_url_history_index.value + offset < 0) return; |
|
|
|
if ( |
|
|
|
router_url_history_index.value + offset > |
|
|
@ -261,9 +192,9 @@ |
|
|
|
router_url_history.value[router_url_history_index.value]; |
|
|
|
|
|
|
|
refersh(); |
|
|
|
} |
|
|
|
const leftWidth = ref(200); |
|
|
|
function leftHandleDown(e: MouseEvent) { |
|
|
|
} |
|
|
|
const leftWidth = ref(200); |
|
|
|
function leftHandleDown(e: MouseEvent) { |
|
|
|
const startX = e.clientX; |
|
|
|
const startWidth = leftWidth.value; |
|
|
|
addEventListener("mousemove", leftHandleMove); |
|
|
@ -278,10 +209,10 @@ |
|
|
|
removeEventListener("mousemove", leftHandleMove); |
|
|
|
removeEventListener("mouseup", leftHandleUp); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const rootFileList = ref<Array<OsFileWithoutContent>>([]); |
|
|
|
const shareFileList = ref<Array<OsFileWithoutContent>>([ |
|
|
|
const rootFileList = ref<Array<OsFileWithoutContent>>([]); |
|
|
|
const shareFileList = ref<Array<OsFileWithoutContent>>([ |
|
|
|
{ |
|
|
|
ext: "", |
|
|
|
isDirectory: true, |
|
|
@ -299,10 +230,10 @@ |
|
|
|
atime: "", |
|
|
|
birthtime: "", |
|
|
|
} |
|
|
|
]); |
|
|
|
const random = ref(0); |
|
|
|
const shareShow = ref(false); |
|
|
|
onMounted(() => { |
|
|
|
]); |
|
|
|
const random = ref(0); |
|
|
|
const shareShow = ref(false); |
|
|
|
onMounted(() => { |
|
|
|
if (config) { |
|
|
|
router_url.value = config.path; |
|
|
|
} else { |
|
|
@ -336,32 +267,32 @@ |
|
|
|
if (pos !== -1) onTreeOpen(choose.saveFileContent[pos].defaultPath) |
|
|
|
// console.log('默认路径:',pos, choose.saveFileContent); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
function handleOuterClick() { |
|
|
|
function handleOuterClick() { |
|
|
|
emitEvent("mycomputer.click"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function onListRefresh() { |
|
|
|
function onListRefresh() { |
|
|
|
refersh(); |
|
|
|
system.fs.readdir("/").then((file: any) => { |
|
|
|
if (file) { |
|
|
|
rootFileList.value = [...file]; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/**------视图切换------ */ |
|
|
|
const isPopoverView = ref(false); |
|
|
|
function popoverChange() { |
|
|
|
/**------视图切换------ */ |
|
|
|
const isPopoverView = ref(false); |
|
|
|
function popoverChange() { |
|
|
|
isPopoverView.value = !isPopoverView.value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const chosenView = ref("icon"); |
|
|
|
const chosenView = ref("icon"); |
|
|
|
|
|
|
|
/**------树状列表打开------ */ |
|
|
|
const chosenTreePath = ref(""); |
|
|
|
async function onTreeOpen(path: string) { |
|
|
|
/**------树状列表打开------ */ |
|
|
|
const chosenTreePath = ref(""); |
|
|
|
async function onTreeOpen(path: string) { |
|
|
|
chosenTreePath.value = path; |
|
|
|
let file: any; |
|
|
|
if (path.indexOf('/F') === 0) { |
|
|
@ -374,29 +305,29 @@ |
|
|
|
openFolder(file); |
|
|
|
} |
|
|
|
router_url.value = path; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/**------框选--------- */ |
|
|
|
let chosenCallback: (rect: Rect) => void = () => { |
|
|
|
/**------框选--------- */ |
|
|
|
let chosenCallback: (rect: Rect) => void = () => { |
|
|
|
// |
|
|
|
}; |
|
|
|
function onChosen(callback: (rect: Rect) => void) { |
|
|
|
}; |
|
|
|
function onChosen(callback: (rect: Rect) => void) { |
|
|
|
chosenCallback = callback; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function backgroundDown(e: MouseEvent) { |
|
|
|
function backgroundDown(e: MouseEvent) { |
|
|
|
choseStart(e); |
|
|
|
addEventListener("mousemove", backgroundMove); |
|
|
|
addEventListener("mouseup", backgroundUp); |
|
|
|
} |
|
|
|
function backgroundMove(e: MouseEvent) { |
|
|
|
} |
|
|
|
function backgroundMove(e: MouseEvent) { |
|
|
|
chosing(e); |
|
|
|
const rectValue = getRect(); |
|
|
|
if (rectValue) { |
|
|
|
chosenCallback(rectValue); |
|
|
|
} |
|
|
|
} |
|
|
|
function backgroundUp() { |
|
|
|
} |
|
|
|
function backgroundUp() { |
|
|
|
choseEnd(); |
|
|
|
const rectValue = getRect(); |
|
|
|
if (rectValue) { |
|
|
@ -404,31 +335,31 @@ |
|
|
|
} |
|
|
|
removeEventListener("mousemove", backgroundMove); |
|
|
|
removeEventListener("mouseup", backgroundUp); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* ------------ 新建文件夹 ------------*/ |
|
|
|
const createInput = ref(t("new.folder")); |
|
|
|
const creating = ref(false); |
|
|
|
function creatingEditEnd() { |
|
|
|
/* ------------ 新建文件夹 ------------*/ |
|
|
|
const createInput = ref(t("new.folder")); |
|
|
|
const creating = ref(false); |
|
|
|
function creatingEditEnd() { |
|
|
|
if (creating.value) { |
|
|
|
createFolder(createInput.value); |
|
|
|
creating.value = false; |
|
|
|
createInput.value = t("new.folder"); |
|
|
|
} |
|
|
|
} |
|
|
|
function onBackClick() { |
|
|
|
} |
|
|
|
function onBackClick() { |
|
|
|
creatingEditEnd(); |
|
|
|
} |
|
|
|
/* ------------ 新建文件夹end ---------*/ |
|
|
|
} |
|
|
|
/* ------------ 新建文件夹end ---------*/ |
|
|
|
|
|
|
|
function showOuterMenu(e: MouseEvent) { |
|
|
|
function showOuterMenu(e: MouseEvent) { |
|
|
|
e.preventDefault(); |
|
|
|
createDesktopContextMenu(e, router_url.value, () => { |
|
|
|
refersh(); |
|
|
|
}); |
|
|
|
} |
|
|
|
/* ------------ 路径输入框 ------------*/ |
|
|
|
async function handleNavRefresh(path: string) { |
|
|
|
} |
|
|
|
/* ------------ 路径输入框 ------------*/ |
|
|
|
async function handleNavRefresh(path: string) { |
|
|
|
if (path == "") return; |
|
|
|
if (path.startsWith("search:")) { |
|
|
|
setRouter(path); |
|
|
@ -444,27 +375,29 @@ |
|
|
|
setRouter(dirname(path)); |
|
|
|
refersh(); |
|
|
|
} |
|
|
|
} |
|
|
|
async function handleNavSearch(path: string) { |
|
|
|
} |
|
|
|
async function handleNavSearch(path: string) { |
|
|
|
setRouter("search:" + path); |
|
|
|
refersh(); |
|
|
|
} |
|
|
|
/* ------------ 路径输入框end ---------*/ |
|
|
|
} |
|
|
|
/* ------------ 路径输入框end ---------*/ |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.uper { |
|
|
|
.uper { |
|
|
|
/* height: 40px; */ |
|
|
|
background-color: rgba(255, 235, 205, 0); |
|
|
|
font-size: 12px; |
|
|
|
font-weight: 300; |
|
|
|
/* border-bottom: 1px solid black; */ |
|
|
|
--button-item-height: 30px; |
|
|
|
} |
|
|
|
.main { |
|
|
|
} |
|
|
|
|
|
|
|
.main { |
|
|
|
display: flex; |
|
|
|
height: 100%; |
|
|
|
position: relative; |
|
|
|
top: 4px; |
|
|
|
|
|
|
|
.left-tree { |
|
|
|
position: relative; |
|
|
|
overflow-x: hidden; |
|
|
@ -474,6 +407,7 @@ |
|
|
|
background-color: rgba(255, 255, 255, 0.1); |
|
|
|
border-right: 1px solid rgba(134, 134, 134, 0.267); |
|
|
|
} |
|
|
|
|
|
|
|
.left-handle { |
|
|
|
position: absolute; |
|
|
|
right: 0; |
|
|
@ -483,6 +417,7 @@ |
|
|
|
background: rgba(0, 0, 0, 0); |
|
|
|
cursor: ew-resize; |
|
|
|
} |
|
|
|
|
|
|
|
.desk-outer { |
|
|
|
flex: 1; |
|
|
|
height: 100%; |
|
|
@ -495,9 +430,9 @@ |
|
|
|
position: relative; |
|
|
|
overflow-x: hidden; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.desk-item { |
|
|
|
.desk-item { |
|
|
|
position: relative; |
|
|
|
cursor: default; |
|
|
|
box-sizing: border-box; |
|
|
@ -506,29 +441,31 @@ |
|
|
|
background-color: rgba(119, 119, 119, 0); |
|
|
|
color: white; |
|
|
|
border: 1px solid rgba(0, 0, 0, 0); |
|
|
|
} |
|
|
|
.chosen { |
|
|
|
} |
|
|
|
|
|
|
|
.chosen { |
|
|
|
border: 1px dashed #3bdbff3d; |
|
|
|
background-color: #b9e3fd90; |
|
|
|
} |
|
|
|
.desk-item:hover { |
|
|
|
} |
|
|
|
|
|
|
|
.desk-item:hover { |
|
|
|
border: 1px solid rgba(149, 149, 149, 0.233); |
|
|
|
background-color: #b9e3fd5a; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.item_img { |
|
|
|
.item_img { |
|
|
|
width: 50px; |
|
|
|
height: 40px; |
|
|
|
overflow: hidden; |
|
|
|
padding: 10px; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.item_img img { |
|
|
|
.item_img img { |
|
|
|
user-select: none; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.item_name { |
|
|
|
.item_name { |
|
|
|
overflow: hidden; |
|
|
|
max-width: 200px; |
|
|
|
color: rgba(0, 0, 0, 0.664); |
|
|
@ -543,20 +480,20 @@ |
|
|
|
display: -webkit-box; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
-webkit-line-clamp: 2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.item_input { |
|
|
|
.item_input { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.group { |
|
|
|
.group { |
|
|
|
display: flex; |
|
|
|
border-bottom: 1px solid rgba(134, 134, 134, 0.267); |
|
|
|
|
|
|
|
user-select: none; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.button { |
|
|
|
.button { |
|
|
|
cursor: pointer; |
|
|
|
text-align: center; |
|
|
|
width: 50px; |
|
|
@ -572,31 +509,37 @@ |
|
|
|
transition: 0.1s; |
|
|
|
white-space: nowrap; |
|
|
|
user-select: none; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.button:hover { |
|
|
|
.button:hover { |
|
|
|
/* background-color: #137bd2; */ |
|
|
|
background-color: #1b6bad; |
|
|
|
color: white; |
|
|
|
} |
|
|
|
.showName { |
|
|
|
} |
|
|
|
|
|
|
|
.showName { |
|
|
|
font-size: 11px; |
|
|
|
text-indent: 5px; |
|
|
|
} |
|
|
|
.disktopshow { |
|
|
|
} |
|
|
|
|
|
|
|
.disktopshow { |
|
|
|
font-size: 12px; |
|
|
|
line-height: 20px; |
|
|
|
max-width: 200px; |
|
|
|
height: 30px; |
|
|
|
display: flex; |
|
|
|
align-items: center; /* 垂直居中对齐 */ |
|
|
|
justify-content: flex-start; /* 水平左对齐 */ |
|
|
|
align-items: center; |
|
|
|
/* 垂直居中对齐 */ |
|
|
|
justify-content: flex-start; |
|
|
|
/* 水平左对齐 */ |
|
|
|
user-select: none; |
|
|
|
|
|
|
|
.el-icon { |
|
|
|
margin-right: 3px; |
|
|
|
} |
|
|
|
} |
|
|
|
.disktopshow:hover { |
|
|
|
} |
|
|
|
|
|
|
|
.disktopshow:hover { |
|
|
|
background-color: #b1f1ff4c; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|