<template>
|
<div id="vol-container" :class="['vol-theme-' + theme]">
|
<div class="vol-aside" :style="{ width: menuWidth + 'px' }">
|
<div class="header" :style="{ width: menuWidth - 1 + 'px' }">
|
<img v-show="!isCollapse" v-bind:src="logo" />
|
<Icon type="ios-list" @click="toggleLeft" class="collapse-menu" />
|
</div>
|
<div class="vol-menu">
|
<el-scrollbar style="height: 100%">
|
<VolMenu
|
:onSelect="onSelect"
|
:isCollapse="isCollapse"
|
:list="menuOptions"
|
></VolMenu>
|
</el-scrollbar>
|
</div>
|
</div>
|
<div class="vol-container" :style="{ left: menuWidth - 1 + 'px' }">
|
<div class="vol-header">
|
<span class="header-text"></span>
|
<div class="header-info">
|
<div class="h-link">
|
<ul>
|
<li
|
v-for="(item, index) in links"
|
:key="index"
|
v-bind:class="{ actived: selectId == item.id }"
|
>
|
<a href="javascript:void(0)" @click="to(item)">{{
|
item.text
|
}}</a>
|
</li>
|
</ul>
|
</div>
|
<div>
|
<img class="user-header" :src="userImg" :onerror="errorImg" />
|
</div>
|
<div class="user">
|
<span>{{ userName }}</span>
|
<br />
|
<span>{{ date }}</span>
|
<!-- <span>星期五</span> -->
|
</div>
|
<div class="settings">
|
<Icon
|
:size="20"
|
type="md-settings"
|
@click="
|
() => {
|
theme_moel = true;
|
}
|
"
|
/>
|
<!-- <Icon type="md-paw" /> -->
|
</div>
|
</div>
|
</div>
|
<div class="vol-path">
|
<!-- 2020.05.31增加顶部导tabs超出后滚动 -->
|
<Tabs
|
@on-click="selectNav"
|
:before-remove="removeNav"
|
v-model="selectId"
|
type="card"
|
:animated="false"
|
class="header-navigation"
|
>
|
<!-- 2020.07.31增加手动打开tabs -->
|
<TabPane
|
:class="{ active: navIndex == selectId }"
|
:name="item.navIndex"
|
:closable="navIndex != 0"
|
v-for="(item, navIndex) in navigation"
|
:key="navIndex"
|
:label="item.name"
|
></TabPane>
|
</Tabs>
|
</div>
|
<div class="vol-main" id="vol-main">
|
<el-scrollbar style="height: 100%">
|
<!-- 2020.06.03增加路由切换时加载提示 -->
|
<loading v-show="$store.getters.isLoading()"></loading>
|
<!-- 2020.10.09增加路由keepAlive属性设置不缓存组件(默认缓存组件) -->
|
<keep-alive>
|
<router-view
|
v-if="
|
!$route.meta ||
|
($route.meta && !$route.meta.hasOwnProperty('keepAlive'))
|
"
|
></router-view>
|
</keep-alive>
|
<router-view
|
v-if="$route.meta && $route.meta.hasOwnProperty('keepAlive')"
|
></router-view>
|
</el-scrollbar>
|
</div>
|
</div>
|
<!-- 2020.04.02增加换皮肤功能 -->
|
<Drawer
|
class="theme-selector"
|
title="选择皮肤颜色"
|
:closable="false"
|
v-model="theme_moel"
|
>
|
<div
|
@click="changeThen(item.name)"
|
class="item"
|
v-for="(item, index) in theme_color"
|
:key="index"
|
:style="{ background: item.color }"
|
></div>
|
</Drawer>
|
</div>
|
</template>
|
<script>
|
import loading from "@/components/basic/RouterLoading";
|
import VolMenu from "@/components/basic/VolElementMenu.vue";
|
let imgUrl = require("@/assets/imgs/wcs_x.png");
|
var $vueIndex;
|
export default {
|
data() {
|
return {
|
menuWidth: 200,
|
isCollapse: false,
|
menu_theme: "light",
|
theme_moel: false,
|
theme_color: [
|
{ name: "dark", color: "#272929" },
|
// { name: "blue", color: "rgb(45, 140, 240)" },
|
// { name: "red", color: "rgb(237, 64, 20)" },
|
// { name: "orange", color: "rgb(255, 153, 0)" },
|
{ name: "white", color: "#fff" },
|
{ name: "green", color: "rgb(25, 190, 107)" },
|
], //2020.04.02增加换皮肤功能
|
errorImg: 'this.src="' + require("@/assets/imgs/error-img.png") + '"',
|
userName: "--",
|
userImg: "",
|
selectId: 0,
|
navigation: [{ name: "首页", id: 0, path: "/home" }],
|
logo: imgUrl,
|
date: "",
|
theme: "dark",
|
links: [
|
// { text: "大屏数据", path: "/bigdata", id: -3 },
|
{ text: "个人中心", path: "/UserInfo", id: -1 },
|
{ text: "安全退出", path: "/login", id: -4 },
|
],
|
menuOptions: [],
|
};
|
},
|
components: {
|
VolMenu,
|
loading,
|
},
|
created() {
|
let theme = localStorage.getItem("vol_theme");
|
if (theme) {
|
this.theme = theme;
|
}
|
this.menu_theme = this.theme == "white" ? "dark" : "light";
|
let userInfo = this.$store.getters.getUserInfo();
|
this.userName = userInfo.userName;
|
this.userImg = this.base.getImgSrc(userInfo.img, this.http.ipAddress);
|
/* 2020.07.31增加手动打开tabs*/
|
/***注意同时更新main.js中Vue.prototype.$tabs = {};***/
|
Object.assign(this.$tabs, { open: this.open, close: this.close });
|
$vueIndex = this;
|
this.showTime();
|
setInterval(function () {
|
$vueIndex.showTime();
|
}, 1000);
|
this.http.ajax({
|
url: "api/menu/getTreeMenu",
|
json: true,
|
success: function (data) {
|
data.forEach((d) => {
|
if (!d.icon) d.icon = "ios-aperture";
|
d.path = (d.url || "").replace("/Manager", "");
|
d.to = (d.url || "").replace("/Manager", "");
|
});
|
$vueIndex.$store.dispatch("setPermission", data);
|
$vueIndex.menuOptions = data;
|
},
|
type: "get",
|
async: false,
|
});
|
/* 2020.07.31增加手动打开tabs*/
|
//当前刷新是不是首页
|
if (this.$route.path != this.navigation[0].path) {
|
//查找系统菜单
|
let item = this.menuOptions.find((x) => {
|
return x.path == this.$route.path;
|
});
|
if (item) return this.onSelect(item.id);
|
//查找顶部快捷连接
|
item = this.links.find((x) => {
|
return x.path == this.$route.path;
|
});
|
//查找最后一次跳转的页面
|
if (!item) {
|
item = this.getItem();
|
}
|
if (item) {
|
return this.open(item, false);
|
}
|
}
|
this.selectId = 0;
|
},
|
methods: {
|
toggleLeft() {
|
this.isCollapse = !this.isCollapse;
|
this.menuWidth = this.isCollapse ? 63 : 200;
|
},
|
changeThen(name) {
|
if (this.theme != name) {
|
this.theme = name;
|
}
|
this.menu_theme = this.theme == "white" ? "dark" : "light";
|
localStorage.setItem("vol_theme", name);
|
},
|
to(item) {
|
/* 2020.07.31增加手动打开tabs*/
|
if (item.path == "#") {
|
window.open("https://github.com/cq-panda/Vue.NetCore");
|
return;
|
}
|
//2020.07.31
|
//2020.08.08修复退出登录切换帐号后权限缓存没刷新的问题
|
if (typeof item == "string" || item.path == "/login") {
|
if (item == "/login" || item.path == "/login") {
|
this.$store.commit("clearUserInfo", "");
|
window.location.href = "/";
|
return;
|
}
|
this.$router.push({ path: item });
|
return;
|
}
|
if (item.path == "#") return;
|
this.open(item);
|
},
|
open(item, useRoute) {
|
/* 2020.07.31增加手动打开tabs*/
|
let _index = this.navigation.findIndex((x) => {
|
return x.path == item.path;
|
});
|
if (_index == -1) {
|
this.navigation.push({
|
name: item.name || item.text || "无标题",
|
path: item.path,
|
});
|
//新打开的tab移至最后一个选项
|
this.selectId = this.navigation.length - 1;
|
//return;
|
} else {
|
this.selectId = _index;
|
}
|
if (useRoute === undefined) {
|
//非标准菜单,记录最后一次跳转的页面,用于刷新
|
this.setItem(item);
|
this.$router.push(item);
|
}
|
},
|
setItem(item) {
|
/* 2020.07.31增加手动打开tabs*/
|
localStorage.setItem(
|
window.location.origin + "_tabs",
|
JSON.stringify(item)
|
);
|
},
|
getItem() {
|
/* 2020.07.31增加手动打开tabs*/
|
let nav = localStorage.getItem(window.location.origin + "_tabs");
|
return nav ? JSON.parse(nav) : null;
|
},
|
close(path) {
|
/* 2020.07.31增加手动打开tabs*/
|
let index = this.navigation.findIndex((x) => {
|
return x.path == path;
|
});
|
if (index == -1) {
|
return this.$Message.error("未找到菜单");
|
}
|
this.removeNav(index);
|
},
|
selectNav(index) {
|
/* 2020.07.31增加手动打开tabs*/
|
this.selectId = index;
|
this.$router.push({
|
path: this.navigation[index].path,
|
});
|
},
|
removeNav(_index) {
|
//2020.06.02修复关闭tabs时,可能关闭两个tabs的问题
|
/* 2020.07.31增加手动打开tabs*/
|
return new Promise(() => {
|
//关闭的当前项,跳转到前一个页面
|
if (this.selectId == _index) {
|
this.setItem(this.navigation[_index - 1]);
|
this.$router.push({
|
path: this.navigation[_index - 1].path,
|
});
|
this.navigation.splice(_index, 1);
|
this.selectId = this.selectId - 1;
|
return;
|
}
|
if (_index < this.selectId) {
|
this.selectId = this.selectId - 1;
|
}
|
this.navigation.splice(_index, 1);
|
});
|
},
|
getSelectMenuName(id) {
|
return this.menuOptions.find(function (x) {
|
return x.id == id;
|
});
|
},
|
onSelect(treeId) {
|
/* 2020.07.31增加手动打开tabs*/
|
var item = $vueIndex.getSelectMenuName(treeId);
|
this.open(item, false);
|
},
|
showTime() {
|
var week = new Array(
|
"星期一",
|
"星期二",
|
"星期三",
|
"星期四",
|
"星期五",
|
"星期六",
|
"星期日"
|
);
|
var date = new Date();
|
var year = date.getFullYear();
|
var month = date.getMonth() + 1;
|
var day = date.getDate();
|
var hour = date.getHours();
|
var minutes = date.getMinutes();
|
var second = date.getSeconds();
|
this.date =
|
year +
|
"." +
|
(month < 10 ? "0" + month : month) +
|
"." +
|
(day < 10 ? "0" + day : day) + //202.08.08修复日期天数小于10时添加0
|
"" +
|
" " +
|
(hour < 10 ? "0" + hour : hour) +
|
":" +
|
(minutes < 10 ? "0" + minutes : minutes) +
|
":" +
|
(second < 10 ? "0" + second : second) +
|
" " + //2020.08.30修复首页日期星期天不显示的问题
|
(week[date.getDay() - 1] || week[6]);
|
},
|
handleOpen(key, keyPath) {
|
console.log(key, keyPath);
|
},
|
handleClose(key, keyPath) {
|
console.log(key, keyPath);
|
},
|
},
|
};
|
</script>
|
|
|
<style scoped>
|
body {
|
height: 100%;
|
width: 100%;
|
}
|
.vol-aside {
|
height: 100%;
|
position: absolute;
|
/* width: 200px; */
|
float: left;
|
overflow: hidden;
|
}
|
.vol-aside .tac {
|
text-align: left;
|
}
|
/* .vol-aside .el-submenu .el-menu-item {
|
max-width: 200px;
|
min-width: 190px;
|
} */
|
.vol-aside .header {
|
text-align: center;
|
position: absolute;
|
height: 60px;
|
/* width: 199px; */
|
position: relative;
|
line-height: 60px;
|
/* background-color: rgb(1, 5, 8); */
|
}
|
.vol-aside .vol-menu {
|
position: absolute;
|
width: 100%;
|
top: 60px;
|
bottom: 0;
|
background: white;
|
border-right: 1px solid #e3e3e3;
|
}
|
|
.vol-aside .vol-menu >>> .ivu-menu {
|
text-align: left;
|
position: unset;
|
width: 100% !important;
|
}
|
.vol-aside .vol-menu >>> .is-horizontal {
|
display: none !important;
|
}
|
.vol-aside .vol-menu >>> .is-vertical {
|
width: 2px;
|
}
|
/* .vol-aside .vol-menu .vol-el-menu {
|
border-right: 1px solid #eee;
|
} */
|
.vol-container {
|
min-width: 800px;
|
right: 0;
|
display: inline-block;
|
position: absolute;
|
margin: 0;
|
/* left: 199px; */
|
box-sizing: border-box;
|
height: 100%;
|
}
|
|
.vol-container .vol-path {
|
position: relative;
|
width: 100%;
|
display: inline-block;
|
/* border-top: 1px solid #e4e4e4; */
|
border-bottom: 1px solid #eee;
|
/* z-index: 1; */
|
}
|
.vol-container .vol-path span {
|
position: relative;
|
margin-right: 10px;
|
color: #969696;
|
}
|
.vol-header {
|
height: 61px;
|
width: 100%;
|
position: relative;
|
border-bottom: 1px solid #eee;
|
/* line-height: 60px; */
|
/* background-color: #272929; */
|
}
|
.vol-main {
|
border-left: 1px solid #eee;
|
position: absolute;
|
width: 100%;
|
/* height: 100%; */
|
bottom: 0;
|
top: 93px;
|
margin: 0;
|
/* padding: 15px; */
|
overflow: auto;
|
}
|
</style>
|
|
<style lang="less" scoped>
|
.header {
|
padding: 5px;
|
}
|
.header img {
|
height: 100%;
|
margin-right: 25px;
|
}
|
.header-info {
|
right: 20px;
|
display: inline-block;
|
position: absolute;
|
height: 100%;
|
/* width: 300px; */
|
/* text-align: right; */
|
}
|
.header-info > div {
|
float: left;
|
height: 100%;
|
}
|
.user-header {
|
background: white;
|
height: 52px;
|
width: 52px;
|
border-radius: 50%;
|
margin-right: 0px;
|
top: 4px;
|
position: relative;
|
/* right: 35px; */
|
border: 1px solid #dfdfdf;
|
/* float: right; */
|
}
|
.header-text {
|
vertical-align: middle;
|
height: 100%;
|
position: absolute;
|
|
text-align: center;
|
font-size: 15px;
|
left: 21px;
|
line-height: 60px;
|
letter-spacing: 2px;
|
}
|
.vol-header .user {
|
padding: 12px;
|
position: relative;
|
display: inline-block;
|
height: 100%;
|
}
|
.vol-header .settings {
|
padding-top: 10px;
|
color: #d4d2d2;
|
}
|
.vol-header .user span {
|
position: relative;
|
}
|
.header-info:hover {
|
cursor: pointer;
|
}
|
.header-navigation {
|
cursor: pointer;
|
box-shadow: 3px 0px 6px #f6f7f7;
|
border-bottom: 1px solid #eee;
|
// border-top: 1px solid #eee;
|
height: 32px;
|
overflow: hidden;
|
line-height: 32px;
|
display: block;
|
margin: 0;
|
padding: 0;
|
outline: 0;
|
list-style: none;
|
position: relative;
|
z-index: 900;
|
font-weight: initial;
|
}
|
.header-navigation li {
|
position: relative;
|
float: left;
|
padding: 0 20px;
|
min-width: 80px;
|
border-right: 1px solid #eee;
|
}
|
|
.header-navigation li .icon-romve {
|
top: 5px;
|
position: absolute;
|
/* margin-left: 5px; */
|
right: 6px;
|
}
|
/* .header-navigation li:hover .icon-romve {
|
display: block;
|
} */
|
.vol-header .user span:first-child {
|
font-size: 15px;
|
font-weight: bolder;
|
/* letter-spacing: 3px; */
|
}
|
|
.h-link ul {
|
height: 100%;
|
display: inline-block;
|
}
|
|
.h-link li {
|
height: 100%;
|
list-style: none;
|
float: left;
|
padding: 20px 10px;
|
position: relative;
|
cursor: pointer;
|
z-index: 3;
|
/*transition: all .2s ease-in-out;*/
|
}
|
|
.h-link a {
|
color: #b0b0b0;
|
font-size: 15px;
|
text-decoration: none;
|
padding: 20px 20px;
|
}
|
|
img[src=""],
|
img:not([src]) {
|
opacity: 0;
|
}
|
</style>
|
|
<style lang="less" scoped>
|
//黑色
|
.vol-theme-dark {
|
.header {
|
background: #101010;
|
}
|
.header-text {
|
color: white;
|
}
|
.vol-header {
|
background-color: #272929;
|
}
|
.h-link a:hover {
|
color: #b0b0b0;
|
}
|
.h-link a:hover {
|
color: #dfdfdf;
|
}
|
.h-link .actived {
|
border-bottom: 2px solid white;
|
}
|
.h-link .actived a {
|
color: white !important;
|
}
|
.vol-header .user {
|
color: #ececec;
|
}
|
.vol-header .settings {
|
color: #d4d2d2;
|
}
|
.vol-aside .vol-menu {
|
background: black;
|
}
|
.header-navigation li.active {
|
background: #607d8b;
|
/* border-bottom: 3px solid #03a9f4; */
|
color: white;
|
/* border-bottom: 2px solid #03a9f4; */
|
}
|
.header-navigation li:hover {
|
cursor: pointer;
|
background: #607d8b;
|
color: white;
|
}
|
}
|
</style>
|
|
<style scoped>
|
.vol-theme-white .vol-aside >>> .vol-el-menu-item {
|
background: black;
|
color: white;
|
}
|
.vol-theme-dark .vol-aside >>> .vol-menu .el-submenu {
|
background: black;
|
}
|
.vol-theme-dark .vol-aside >>> .vol-menu .el-submenu__title * {
|
color: #d6d6d6;
|
}
|
.vol-theme-dark .vol-aside >>> .vol-el-menu-item .el-menu-item {
|
color: #eee;
|
background: #1f1f1f;
|
}
|
.vol-theme-dark .vol-aside >>> .vol-el-menu-item .el-menu-item.is-active,
|
.vol-theme-dark .vol-aside >>> .menu-item-lv1 {
|
background: black;
|
}
|
|
.vol-theme-dark .vol-aside >>> .menu-item-lv1 {
|
background: black;
|
color: #d6d6d6;
|
}
|
|
.vol-theme-dark .vol-aside >>> .vol-el-menu-item .el-menu-item:hover {
|
background: black;
|
}
|
.vol-theme-dark .vol-aside >>> .el-submenu__title:hover {
|
background-color: black;
|
}
|
.vol-theme-dark .vol-aside >>> .el-submenu__title:hover * {
|
color: white;
|
}
|
</style>
|
|
|
|
<style lang="less" scoped>
|
//红色
|
.vol-theme-red {
|
.header-text {
|
color: #dcdfe6;
|
}
|
.vol-header,
|
.header {
|
background-color: rgb(237, 64, 20);
|
}
|
|
.h-link a:hover {
|
color: #dfdfdf;
|
}
|
.h-link .actived {
|
border-bottom: 2px solid white;
|
}
|
|
.h-link a,
|
.h-link .actived a,
|
.vol-header .settings,
|
.vol-header .user {
|
color: white;
|
}
|
|
.header-navigation li.active,
|
.header-navigation li:hover {
|
background: rgb(237, 64, 20);
|
color: #fff;
|
}
|
.vol-header .header-text {
|
color: #fbfbfb;
|
}
|
}
|
</style>
|
|
|
|
<style lang="less" scoped>
|
//橙色
|
.vol-theme-orange {
|
.header-text {
|
color: #dcdfe6;
|
}
|
.vol-header,
|
.header {
|
background-color: rgb(255, 153, 0);
|
}
|
|
.h-link a:hover {
|
color: #dfdfdf;
|
}
|
.h-link .actived {
|
border-bottom: 2px solid white;
|
}
|
|
.h-link a,
|
.h-link .actived a,
|
.vol-header .settings,
|
.vol-header .user {
|
color: white;
|
}
|
|
.header-navigation li.active,
|
.header-navigation li:hover {
|
background: rgb(255, 153, 0);
|
color: #fff;
|
}
|
.vol-header .header-text {
|
color: #fbfbfb;
|
}
|
}
|
</style>
|
|
|
<style lang="less" scoped>
|
//绝色
|
.vol-theme-green {
|
.header-text {
|
color: #dcdfe6;
|
}
|
.vol-header,
|
.header {
|
background-color: rgb(25, 190, 107);
|
}
|
|
.h-link a:hover {
|
color: #dfdfdf;
|
}
|
.h-link .actived {
|
border-bottom: 2px solid white;
|
}
|
|
.h-link a,
|
.h-link .actived a,
|
.vol-header .settings,
|
.vol-header .user {
|
color: white;
|
}
|
|
.header-navigation li.active,
|
.header-navigation li:hover {
|
background: rgb(25, 190, 107);
|
color: #fff;
|
}
|
.vol-header .header-text {
|
color: #fbfbfb;
|
}
|
}
|
</style>
|
|
|
<style lang="less" scoped>
|
//蓝色
|
.vol-theme-blue {
|
.header-text {
|
color: #dcdfe6;
|
}
|
.vol-header,
|
.header {
|
background-color: rgb(45, 140, 240);
|
}
|
|
.h-link a:hover {
|
color: #dfdfdf;
|
}
|
.h-link .actived {
|
border-bottom: 2px solid white;
|
}
|
|
.h-link a,
|
.h-link .actived a,
|
.vol-header .settings,
|
.vol-header .user {
|
color: white;
|
}
|
|
.header-navigation li.active,
|
.header-navigation li:hover {
|
background: #1a89ff;
|
color: white;
|
}
|
.vol-header .header-text {
|
color: #fbfbfb;
|
}
|
}
|
</style>
|
|
<style scoped>
|
</style>
|
|
|
<style lang="less" scoped>
|
//白色
|
.vol-theme-white {
|
// .vol-aside .vol-menu {
|
// // background: #0159fb;
|
// }
|
|
.header {
|
background-color: #434956;
|
}
|
.h-link a:hover {
|
color: #505252;
|
}
|
.h-link a {
|
color: #211f1f;
|
}
|
|
.header-navigation {
|
box-shadow: -7px 11px 10px -13px #678aa7;
|
border-bottom: 1px solid #eee;
|
// border-top: 1px solid #eee;
|
height: 32px;
|
overflow: hidden;
|
line-height: 32px;
|
display: block;
|
margin: 0;
|
padding: 0;
|
outline: 0;
|
list-style: none;
|
position: relative;
|
z-index: 900;
|
font-weight: 400;
|
}
|
.header-navigation li.active,
|
.header-navigation li:hover {
|
// background: #1a89ff;
|
color: white;
|
}
|
}
|
</style>
|
<style scoped>
|
.vol-theme-white .vol-aside >>> .vol-el-menu-item {
|
background: #363e4f;
|
color: white;
|
}
|
.vol-theme-white .vol-aside >>> .vol-menu .el-submenu,
|
.vol-theme-white .vol-aside >>> .menu-item-lv1 {
|
background: #515a6e;
|
}
|
.vol-theme-white .vol-aside >>> .vol-menu {
|
background: #515a6e;
|
}
|
.vol-theme-white .vol-aside >>> .vol-menu .el-submenu__title *,
|
.vol-theme-white .vol-aside >>> .menu-item-lv1 * {
|
color: #d6d6d6;
|
}
|
.vol-theme-white .vol-aside >>> .vol-el-menu-item .el-menu-item {
|
color: #eee;
|
}
|
.vol-theme-white .vol-aside >>> .vol-el-menu-item .el-menu-item.is-active,
|
.vol-theme-white .vol-aside >>> .menu-item-lv1.is-active {
|
background: #59647b;
|
color: #fff;
|
}
|
.vol-theme-white .vol-aside >>> .vol-el-menu-item .el-menu-item:hover {
|
background: #6a758c;
|
}
|
.vol-theme-white .vol-aside >>> .el-submenu__title:hover {
|
background-color: #525865;
|
}
|
.vol-theme-white .vol-aside >>> .el-submenu__title:hover * {
|
color: white;
|
}
|
</style>
|
|
<style>
|
.el-scrollbar__wrap {
|
overflow-x: hidden;
|
}
|
.el-scrollbar__bar.is-vertical {
|
/*background: #e9e7e7;*/
|
color: #ffffff;
|
/*z-index不能超过1058,否则会影响弹出框select标签(2020-02-02)*/
|
z-index: 999;
|
right: 0;
|
width: 6px;
|
}
|
*::-webkit-scrollbar {
|
width: 10px;
|
height: 7px;
|
background-color: transparent;
|
}
|
*::-webkit-scrollbar-track {
|
background-color: #f0f6ff;
|
}
|
*::-webkit-scrollbar-thumb {
|
/* background-color: #73abb1; */
|
border-radius: 3px;
|
}
|
.scrollbarHide::-webkit-scrollbar {
|
display: none;
|
}
|
.scrollbarShow::-webkit-scrollbar {
|
display: block;
|
}
|
.ivu-select-dropdown::-webkit-scrollbar {
|
width: 6px;
|
height: 13px;
|
}
|
.ivu-select-dropdown::-webkit-scrollbar {
|
width: 6px;
|
height: 14px;
|
}
|
.ivu-select-dropdown::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
background: #dadac9;
|
}
|
.animated {
|
-webkit-animation-duration: 1s;
|
animation-duration: 1s;
|
-webkit-animation-fill-mode: both;
|
animation-fill-mode: both;
|
}
|
@-webkit-keyframes fadeInLeftBig {
|
0% {
|
opacity: 0;
|
-webkit-transform: translate3d(-50px, 0, 0);
|
transform: translate3d(-50px, 0, 0);
|
}
|
to {
|
opacity: 1;
|
-webkit-transform: none;
|
transform: none;
|
}
|
}
|
@keyframes fadeInLeftBig {
|
0% {
|
opacity: 0;
|
-webkit-transform: translate3d(-50px, 0, 0);
|
transform: translate3d(-50px, 0, 0);
|
}
|
to {
|
opacity: 1;
|
-webkit-transform: none;
|
transform: none;
|
}
|
}
|
.fadeInLeftBig {
|
-webkit-animation-name: fadeInLeftBig;
|
animation-name: fadeInLeftBig;
|
}
|
</style>
|
<style lang="less" scoped>
|
.theme-selector {
|
.item {
|
cursor: pointer;
|
width: 230px;
|
height: 80px;
|
border-radius: 5px;
|
margin-bottom: 17px;
|
border: 1px solid #d4d2d2;
|
}
|
}
|
</style>
|
|
<style scoped>
|
/* 2020.05.31增加顶部导tabs超出后滚动 */
|
.header-navigation >>> .ivu-tabs-nav-prev {
|
z-index: 999;
|
border-radius: 3px;
|
text-align: center;
|
width: 30px;
|
background: #f8f8f9;
|
border-right: 1px solid #d8d7d7;
|
}
|
.header-navigation >>> .ivu-tabs-nav-next {
|
z-index: 999;
|
border-radius: 3px;
|
text-align: center;
|
width: 30px;
|
background: #f8f8f9;
|
border-left: 1px solid #d8d7d7;
|
}
|
</style>
|
|
<style lang="less" scoped>
|
.collapse-menu {
|
font-size: 22px;
|
color: #fff;
|
font-weight: bold;
|
line-height: 60px;
|
position: absolute;
|
top: 0;
|
right: 5px;
|
cursor: pointer;
|
}
|
</style>
|