2021-02-06 23:36:46 +08:00
|
|
|
<template>
|
|
|
|
<el-container class="home">
|
|
|
|
|
|
|
|
<!-- 侧边栏 -->
|
|
|
|
<el-aside class="home-aside">
|
2021-02-11 15:55:06 +08:00
|
|
|
<el-menu class="side-nav" default-active="search"
|
|
|
|
:collapse="config.sideMenuCollapse" @select="changeCategory"
|
|
|
|
>
|
2021-02-06 23:36:46 +08:00
|
|
|
|
2021-02-08 00:46:51 +08:00
|
|
|
<!-- 搜索引擎 -->
|
|
|
|
<el-menu-item index="search">
|
|
|
|
<i class="el-icon-search"></i>
|
|
|
|
<span slot="title">搜索</span>
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
<!-- 全部链接 -->
|
2021-02-06 23:36:46 +08:00
|
|
|
<el-menu-item index="all">
|
|
|
|
<i class="el-icon-menu"></i>
|
2021-02-08 00:46:51 +08:00
|
|
|
<span slot="title">全部链接</span>
|
2021-02-06 23:36:46 +08:00
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
<!-- 分类 -->
|
2021-02-11 15:55:06 +08:00
|
|
|
<el-menu-item v-for="(item, itemIndex) in navLinks.list"
|
|
|
|
:key="'list-' + itemIndex" :index="itemIndex.toString()"
|
|
|
|
>
|
2021-05-09 15:54:36 +08:00
|
|
|
<i :class="item.icon || 'el-icon-link'"></i>
|
2021-02-06 23:36:46 +08:00
|
|
|
<span slot="title">{{ item.title }}</span>
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
</el-menu>
|
|
|
|
</el-aside>
|
|
|
|
|
|
|
|
<!-- 内容 -->
|
|
|
|
<el-main class="home-content">
|
2021-02-10 01:33:23 +08:00
|
|
|
<div class="wrapper">
|
2021-02-06 23:36:46 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 搜索引擎 -->
|
|
|
|
<div v-show="show.searchEngine" class="search-engine">
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 搜索栏 -->
|
|
|
|
<div class="search-bar shadow-3">
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 输入 -->
|
|
|
|
<input v-model="searchEngine.keyword" class="input" type="text"
|
2021-05-09 15:54:36 +08:00
|
|
|
@blur="searchEngine.isFocus = false" @focus="searchEngine.isFocus = true"
|
2021-02-10 01:33:23 +08:00
|
|
|
@keydown.enter.exact="searchEngineSubmit()"
|
|
|
|
/>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 清除 -->
|
|
|
|
<div v-show="searchEngine.keyword.length > 0" class="btn btn-clear"
|
|
|
|
@click="searchEngine.keyword = ''"
|
|
|
|
>
|
|
|
|
<i class="el-icon-close"></i>
|
|
|
|
</div>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 搜索 -->
|
|
|
|
<div class="btn btn-search" @click="searchEngineSubmit()">
|
|
|
|
<i class="el-icon-search"></i>
|
|
|
|
</div>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
</div>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 选择搜索引擎 -->
|
2021-05-09 15:54:36 +08:00
|
|
|
<el-radio-group v-model="config.searchEngine" size="small"
|
|
|
|
:class="['search-type', { fade: searchEngine.isFocus }]"
|
|
|
|
>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 自动生成 -->
|
|
|
|
<el-radio v-for="item in searchEngine.types" :key="item.name"
|
|
|
|
:label="item.name" class="shadow-2"
|
|
|
|
>
|
|
|
|
<Icon :path="item.icon || 'website/default.svg'" size="1.2em" />
|
|
|
|
<i class="name">{{ item.name }}</i>
|
|
|
|
<i class="desc">{{ item.desc }}</i>
|
|
|
|
</el-radio>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 占位 -->
|
|
|
|
<el-radio label="0"></el-radio>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
</el-radio-group>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
</div>
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
<!-- 链接搜索框 -->
|
|
|
|
<el-input v-show="show.linkSearch" v-model="linkSearch.keyword"
|
|
|
|
class="link-search shadow-2" placeholder="搜索链接" clearable
|
2021-02-08 00:46:51 +08:00
|
|
|
>
|
2021-02-10 01:33:23 +08:00
|
|
|
<el-select slot="prepend" v-model="linkSearch.type" placeholder="类型">
|
|
|
|
<el-option label="全部" value="all"></el-option>
|
|
|
|
<el-option label="标题" value="title"></el-option>
|
|
|
|
<el-option label="链接" value="link"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
<!-- 链接列表树 -->
|
|
|
|
<el-tree v-show="show.linkTree" ref="linkTree" class="link-tree shadow-2"
|
|
|
|
:data="currentLinks" node-key="id" empty-text=""
|
|
|
|
:props="{ label: 'title', children: 'sub' }" :filter-node-method="searchLink"
|
|
|
|
:default-expand-all="false" :expand-on-click-node="true"
|
|
|
|
>
|
|
|
|
<div slot-scope="{ node, data }" class="link-item" :title="data.update"
|
|
|
|
@click="openLink(data.link, data.showOnly)"
|
|
|
|
>
|
|
|
|
<span class="title">{{ node.label }}</span>
|
|
|
|
<span class="link">{{ data.link }}</span>
|
|
|
|
</div>
|
|
|
|
</el-tree>
|
2021-02-06 23:36:46 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
</div>
|
2021-02-06 23:36:46 +08:00
|
|
|
</el-main>
|
|
|
|
|
|
|
|
</el-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-02-10 01:33:23 +08:00
|
|
|
import Icon from '@/components/Icon.vue';
|
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
export default {
|
|
|
|
name: 'Home',
|
2021-02-10 01:33:23 +08:00
|
|
|
components: {
|
|
|
|
Icon
|
|
|
|
},
|
2021-05-23 23:35:58 +08:00
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
|
next(vm => {
|
|
|
|
vm.utils.changeTitle();
|
|
|
|
});
|
|
|
|
},
|
2021-02-06 23:36:46 +08:00
|
|
|
data() {
|
|
|
|
return {
|
2021-02-10 01:33:23 +08:00
|
|
|
config: this.$root.config.storage,
|
|
|
|
utils: this.$root.utils,
|
2021-02-08 00:46:51 +08:00
|
|
|
// 显示的内容
|
|
|
|
show: {
|
|
|
|
searchEngine: true,
|
|
|
|
linkSearch: false,
|
|
|
|
linkTree: false,
|
|
|
|
},
|
|
|
|
// 搜索引擎
|
|
|
|
searchEngine: {
|
2021-05-09 15:54:36 +08:00
|
|
|
isFocus: false,
|
2021-02-08 00:46:51 +08:00
|
|
|
keyword: '',
|
2021-02-10 01:33:23 +08:00
|
|
|
types: this.$root.config.searchEngines
|
2021-02-08 00:46:51 +08:00
|
|
|
},
|
2021-02-10 01:33:23 +08:00
|
|
|
// 导航链接
|
2021-02-06 23:36:46 +08:00
|
|
|
navLinks: this.$root.navLinks,
|
|
|
|
// 当前显示的链接
|
|
|
|
currentLinks: [],
|
2021-02-07 00:39:03 +08:00
|
|
|
// 搜索链接
|
|
|
|
linkSearch: {
|
|
|
|
debounce: null,
|
|
|
|
keyword: '',
|
|
|
|
type: 'all'
|
|
|
|
}
|
2021-02-06 23:36:46 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
watch: {
|
2021-02-07 00:39:03 +08:00
|
|
|
'linkSearch.keyword': {
|
2021-02-06 23:36:46 +08:00
|
|
|
handler(value) {
|
2021-02-07 00:39:03 +08:00
|
|
|
clearTimeout(this.linkSearch.debounce);
|
2021-02-06 23:36:46 +08:00
|
|
|
|
2021-02-07 00:39:03 +08:00
|
|
|
this.linkSearch.debounce = setTimeout(() => {
|
2021-02-06 23:36:46 +08:00
|
|
|
this.$refs.linkTree.filter(value);
|
|
|
|
}, 500);
|
|
|
|
}
|
2021-02-07 00:39:03 +08:00
|
|
|
},
|
|
|
|
'linkSearch.type': {
|
|
|
|
handler() {
|
|
|
|
// 更改搜索类型时自动重新搜索
|
|
|
|
this.$refs.linkTree.filter(this.linkSearch.keyword);
|
|
|
|
}
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2021-05-22 18:14:46 +08:00
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
/**
|
|
|
|
* 更改当前显示的分类
|
|
|
|
*/
|
|
|
|
changeCategory(index) {
|
2021-02-08 00:46:51 +08:00
|
|
|
if (index == 'search') {
|
|
|
|
this.currentLinks = [];
|
|
|
|
this.show.searchEngine = true;
|
|
|
|
this.show.linkSearch = false;
|
|
|
|
this.show.linkTree = false;
|
|
|
|
} else if (index == 'all') {
|
2021-02-10 01:33:23 +08:00
|
|
|
this.currentLinks = this.navLinks.list;
|
2021-02-08 00:46:51 +08:00
|
|
|
this.show.searchEngine = false;
|
|
|
|
this.show.linkSearch = true;
|
|
|
|
this.show.linkTree = true;
|
2021-02-06 23:36:46 +08:00
|
|
|
} else {
|
2021-02-10 01:33:23 +08:00
|
|
|
this.currentLinks = this.navLinks.list[Number(index)].sub;
|
2021-02-08 00:46:51 +08:00
|
|
|
this.show.searchEngine = false;
|
|
|
|
this.show.linkSearch = true;
|
|
|
|
this.show.linkTree = true;
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
2021-02-08 00:46:51 +08:00
|
|
|
|
|
|
|
this.linkSearch.keyword = '';
|
2021-02-06 23:36:46 +08:00
|
|
|
},
|
2021-05-22 18:14:46 +08:00
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
/**
|
|
|
|
* 打开链接
|
|
|
|
*
|
|
|
|
* @param {string} link 需要打开的链接
|
2021-02-08 00:46:51 +08:00
|
|
|
* @param {boolean} showOnly 是否仅显示链接
|
2021-02-06 23:36:46 +08:00
|
|
|
*/
|
2021-02-08 00:46:51 +08:00
|
|
|
openLink(link, showOnly) {
|
|
|
|
if (link === undefined) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (showOnly) {
|
|
|
|
window.prompt('请复制后手动在新标签页中打开', link);
|
|
|
|
} else {
|
2021-02-06 23:36:46 +08:00
|
|
|
window.open(link, '_blank');
|
|
|
|
}
|
|
|
|
},
|
2021-05-22 18:14:46 +08:00
|
|
|
|
2021-02-08 00:46:51 +08:00
|
|
|
/**
|
|
|
|
* 搜索引擎
|
|
|
|
*/
|
|
|
|
searchEngineSubmit() {
|
2021-02-11 15:55:06 +08:00
|
|
|
var vm = this;
|
2021-02-08 00:46:51 +08:00
|
|
|
var search = this.searchEngine;
|
|
|
|
var keyword = search.keyword;
|
|
|
|
var types = search.types;
|
|
|
|
var url = '';
|
|
|
|
|
|
|
|
if (keyword == '') {
|
|
|
|
return false;
|
2021-05-22 18:14:46 +08:00
|
|
|
} else {
|
|
|
|
// 编码
|
|
|
|
keyword = window.encodeURIComponent(keyword);
|
2021-02-08 00:46:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
for (let index in types) {
|
2021-02-11 15:55:06 +08:00
|
|
|
if (types[index].name == vm.config.searchEngine) {
|
2021-02-08 00:46:51 +08:00
|
|
|
url = types[index].url.replace(/%keyword%/, keyword);
|
2021-02-11 15:55:06 +08:00
|
|
|
vm.openLink(url);
|
2021-02-08 00:46:51 +08:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-05-22 18:14:46 +08:00
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
/**
|
|
|
|
* 搜索链接
|
|
|
|
*/
|
|
|
|
searchLink(value, data) {
|
|
|
|
// 关键词为空,显示全部
|
2021-02-07 00:39:03 +08:00
|
|
|
|
2021-05-23 23:08:26 +08:00
|
|
|
if (value === '') {
|
|
|
|
return true;
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
|
2021-05-23 23:08:26 +08:00
|
|
|
// 小写
|
|
|
|
value = value.toLowerCase();
|
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
// 过滤后
|
2021-02-07 00:39:03 +08:00
|
|
|
|
|
|
|
var searchType = this.linkSearch.type;
|
2021-05-23 23:08:26 +08:00
|
|
|
var title = data.title.toLowerCase();
|
|
|
|
var link = (data.link || '');
|
2021-02-07 00:39:03 +08:00
|
|
|
var result = false;
|
|
|
|
|
|
|
|
if (searchType == 'all') {
|
|
|
|
// 全部
|
2021-05-23 23:08:26 +08:00
|
|
|
result = ((title.indexOf(value) !== -1) || (link.indexOf(value) !== -1));
|
2021-02-07 00:39:03 +08:00
|
|
|
} else if (searchType == 'title') {
|
|
|
|
// 标题
|
2021-05-23 23:08:26 +08:00
|
|
|
result = (title.indexOf(value) !== -1);
|
2021-02-07 00:39:03 +08:00
|
|
|
} else if (searchType == 'link') {
|
|
|
|
// 链接
|
2021-05-23 23:08:26 +08:00
|
|
|
result = (link.indexOf(value) !== -1);
|
2021-02-07 00:39:03 +08:00
|
|
|
}
|
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
return result;
|
2021-05-22 18:14:46 +08:00
|
|
|
},
|
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
.home-aside {
|
2021-02-08 00:46:51 +08:00
|
|
|
// width: 18rem !important;
|
|
|
|
width: auto !important;
|
2021-02-06 23:36:46 +08:00
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
|
|
.side-nav {
|
|
|
|
min-height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.home-content {
|
2021-02-10 01:33:23 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2021-02-06 23:36:46 +08:00
|
|
|
position: relative;
|
2021-02-08 00:46:51 +08:00
|
|
|
padding: 1rem;
|
|
|
|
background-color: @colorWhite;
|
2021-04-17 00:55:21 +08:00
|
|
|
overflow-y: scroll;
|
2021-02-08 00:46:51 +08:00
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
.wrapper {
|
|
|
|
width: 100%;
|
2021-02-11 15:55:06 +08:00
|
|
|
min-width: 16rem;
|
2021-02-10 01:33:23 +08:00
|
|
|
max-width: 60rem;
|
|
|
|
}
|
|
|
|
|
2021-02-08 00:46:51 +08:00
|
|
|
/deep/ .search-engine {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.search-bar {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: sticky;
|
2021-05-03 00:56:58 +08:00
|
|
|
top: .5rem;
|
2021-02-08 00:46:51 +08:00
|
|
|
z-index: 100;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 40rem;
|
|
|
|
height: 2.8rem;
|
2021-05-03 00:56:58 +08:00
|
|
|
border-radius: .25rem;
|
2021-02-08 00:46:51 +08:00
|
|
|
background-color: #FFF;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.input {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding-left: 1rem;
|
2021-02-10 01:33:23 +08:00
|
|
|
width: 0;
|
2021-02-08 00:46:51 +08:00
|
|
|
height: 100%;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-shrink: 0;
|
|
|
|
width: 2.8rem;
|
|
|
|
height: 2.8rem;
|
|
|
|
background-color: transparent;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-clear {
|
|
|
|
width: 2rem;
|
2021-05-03 00:56:58 +08:00
|
|
|
opacity: .5;
|
2021-02-10 01:33:23 +08:00
|
|
|
transition: opacity @transitionTime;
|
2021-02-08 00:46:51 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-search {
|
|
|
|
color: @colorPrimary;
|
2021-02-10 01:33:23 +08:00
|
|
|
transition: background @transitionTime, color @transitionTime;
|
2021-02-08 00:46:51 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: @colorPrimary;
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-type {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 2rem 0;
|
|
|
|
font-size: 1rem;
|
2021-05-09 15:54:36 +08:00
|
|
|
transition: opacity calc(@transitionTime * 4);
|
|
|
|
|
|
|
|
&.fade {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2021-02-08 00:46:51 +08:00
|
|
|
|
|
|
|
> label {
|
2021-05-03 00:56:58 +08:00
|
|
|
margin: 1em .5em;
|
2021-02-08 00:46:51 +08:00
|
|
|
margin-top: 0;
|
|
|
|
padding: 1em;
|
|
|
|
width: 45%;
|
2021-02-10 01:33:23 +08:00
|
|
|
min-width: 18em;
|
2021-05-03 00:56:58 +08:00
|
|
|
border-bottom: solid .15rem transparent;
|
|
|
|
border-radius: .25em;
|
2021-02-08 00:46:51 +08:00
|
|
|
background-color: #FFF;
|
|
|
|
text-align: left;
|
|
|
|
font-weight: normal;
|
2021-02-10 01:33:23 +08:00
|
|
|
transition: border @transitionTime;
|
2021-02-08 00:46:51 +08:00
|
|
|
|
|
|
|
// 隐藏占位元素
|
|
|
|
&:last-child {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 若占位元素为第奇数个,不显示
|
|
|
|
&:last-child:nth-child(odd) {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-02-10 01:33:23 +08:00
|
|
|
|
|
|
|
&.is-checked {
|
|
|
|
border-bottom-color: @colorPrimary;
|
|
|
|
}
|
2021-02-08 00:46:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.el-radio__input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-radio__label {
|
|
|
|
padding: 0;
|
2021-02-10 01:33:23 +08:00
|
|
|
transition: color @transitionTime;
|
2021-02-08 00:46:51 +08:00
|
|
|
|
|
|
|
i {
|
2021-02-10 01:33:23 +08:00
|
|
|
vertical-align: middle;
|
2021-02-08 00:46:51 +08:00
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
.fn-icon {
|
2021-05-03 00:56:58 +08:00
|
|
|
margin-right: .4em;
|
2021-02-10 01:33:23 +08:00
|
|
|
}
|
|
|
|
|
2021-02-08 00:46:51 +08:00
|
|
|
.desc {
|
2021-05-03 00:56:58 +08:00
|
|
|
margin-left: .5em;
|
|
|
|
font-size: .8em;
|
2021-02-08 00:46:51 +08:00
|
|
|
color: #CCC;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/deep/ .link-search {
|
|
|
|
@height: 2.8rem;
|
2021-02-06 23:36:46 +08:00
|
|
|
|
|
|
|
position: sticky;
|
|
|
|
z-index: 100;
|
|
|
|
top: 0;
|
|
|
|
margin-bottom: 1rem;
|
2021-05-03 00:56:58 +08:00
|
|
|
border-radius: .25rem;
|
2021-02-08 00:46:51 +08:00
|
|
|
line-height: @height;
|
|
|
|
overflow: hidden;
|
2021-02-07 00:39:03 +08:00
|
|
|
|
2021-02-08 00:46:51 +08:00
|
|
|
> div, > input {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-input-group__prepend {
|
2021-02-07 00:39:03 +08:00
|
|
|
background-color: #FFF;
|
|
|
|
|
|
|
|
.el-select .el-input {
|
|
|
|
width: 4.5rem;
|
|
|
|
|
|
|
|
input {
|
2021-05-03 00:56:58 +08:00
|
|
|
padding: 0 .75rem;
|
2021-02-07 00:39:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-08 00:46:51 +08:00
|
|
|
|
|
|
|
.el-input__inner {
|
|
|
|
height: @height;
|
|
|
|
line-height: @height;
|
|
|
|
}
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.link-tree {
|
2021-05-03 00:56:58 +08:00
|
|
|
padding: .5rem;
|
|
|
|
border-radius: .25rem;
|
2021-02-06 23:36:46 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
/deep/ .el-tree-node__content {
|
|
|
|
height: 3.6em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link-item {
|
|
|
|
> span {
|
2021-02-08 00:46:51 +08:00
|
|
|
display: -webkit-box;
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
2021-05-03 00:56:58 +08:00
|
|
|
margin-top: .2rem;
|
|
|
|
opacity: .5;
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|