调整breadcrumb

This commit is contained in:
qxz 2020-05-15 19:22:35 +08:00
parent 22c7d79fa0
commit b33128d78d
4 changed files with 19 additions and 7 deletions

View File

@ -11,6 +11,10 @@
"error": "Copy failed" "error": "Copy failed"
}, },
"list": { "list": {
"view": {
"gridMode": "Grid view",
"listMode": "List view"
},
"auth": "Directory encryption, please enter password", "auth": "Directory encryption, please enter password",
"title": { "title": {
"file": "File", "file": "File",

View File

@ -11,6 +11,10 @@
"error": "复制失败" "error": "复制失败"
}, },
"list": { "list": {
"view": {
"gridMode": "网格视图",
"listMode": "列表视图"
},
"auth": "目录加密,请输入密码", "auth": "目录加密,请输入密码",
"title": { "title": {
"file": "文件", "file": "文件",

View File

@ -11,6 +11,10 @@
"error": "復制失敗" "error": "復制失敗"
}, },
"list": { "list": {
"view": {
"gridMode": "網格視圖",
"listMode": "列表視圖"
},
"auth": "目錄加密,請輸入密碼", "auth": "目錄加密,請輸入密碼",
"title": { "title": {
"file": "文件", "file": "文件",

View File

@ -25,11 +25,11 @@
<div <div
class="level-item" class="level-item"
v-show="$route.meta.view==='list'" v-show="$route.meta.view==='list'"
:title="$route.meta.view==='list'?'列表视图':'网格视图'" :title="listMode?$t('list.view.listMode'):$t('list.view.gridMode')"
@click="changeView" @click="changeView"
> >
<span class="icon"> <span class="icon">
<i :class="'fa'+(listMode ? ' fa-th': ' fa-th-list')" aria-hidden="true"></i> <i :class="'fa'+(listMode ? ' fa-th-list': ' fa-th')" aria-hidden="true"></i>
</span> </span>
</div> </div>
</div> </div>
@ -45,7 +45,7 @@ export default {
return { return {
navs: [], navs: [],
index: "/", index: "/",
listMode: true listMode: false
}; };
}, },
mounted () { mounted () {
@ -111,13 +111,13 @@ export default {
} }
.level-right { .level-right {
.level-item { .level-item {
border-radius: 50%; // border-radius: 50%;
// height: 40px; // height: 40px;
// width: 40px; // width: 40px;
&:hover { &:hover {
border: 1px dotted transparent; // border: 1px dotted transparent;
background: rgba(0, 0, 0, 0.12); // background: rgba(0, 0, 0, 0.12);
text-decoration: none; // text-decoration: none;
cursor: pointer; cursor: pointer;
} }
} }