提交 fcc4ae31 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新首页视图上方菜单布局组件样式

上级 c8868853
<template> <template>
<div class="fullscren"> <div class="fullscren">
<Icon :type="fullScren == true ? 'ios-contract' : 'ios-expand'" color="#aaa" size="22" @click="handleScreen"/> <Icon :type="fullScren == true ? 'ios-contract' : 'ios-expand'" size="22" @click="handleScreen"/>
</div> </div>
</template> </template>
<script lang = 'ts'> <script lang = 'ts'>
......
<template> <template>
<div class="lockscren"> <div class="lockscren">
<span> <span>
<Icon type="md-lock" size="22" color="#aaa" @click="handleLock"/> <Icon type="md-lock" size="22" @click="handleLock"/>
<el-dialog :title="this.$t('components.lockScren.title')" <el-dialog :title="this.$t('components.lockScren.title')"
:visible.sync="box" :visible.sync="box"
width="30%" width="30%"
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
font-size: 19px; font-size: 19px;
padding-top: 2px; padding-top: 2px;
padding-right: 2px; padding-right: 2px;
color: #aaa;
cursor: pointer; cursor: pointer;
} }
......
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
popper-class='app-app-theme' popper-class='app-app-theme'
placement='bottom-end' placement='bottom-end'
:width="Object.is($i18n.locale, 'zh-CN') ? 180 : 250"> :width="Object.is($i18n.locale, 'zh-CN') ? 180 : 250">
<a> <icon class='app-theme-icon' type='md-settings' :size="22" />
<icon class='app-theme-icon' type='md-settings' :size="22" />
</a>
<template slot='content'> <template slot='content'>
<div class='app-theme-color'> <div class='app-theme-color'>
<template v-for="(theme, index) in defaultThemes"> <template v-for="(theme, index) in defaultThemes">
......
.index-view-layout-top { .index-view-layout--top {
.header-right { .index-view-layout-header {
height: 64px;
display: flex; display: flex;
align-items: center;
justify-content: space-between; justify-content: space-between;
align-items: center;
background-color: var(--app-color-black);
color: var(--app-color-gray-white);
.header__left {
font-size: 21px;
font-weight: 700;
margin-left: 50px;
.app-icon {
width: 36px;
height: 37px;
margin-right: 6px;
}
}
.header__right {
display: flex;
align-items: center;
}
}
.index-view-layout-content {
height: calc(100% - 64px);
overflow: auto;
padding: 20px 38px 0 38px;
background-color: var(--app-color-gray-gray-400);
} }
} }
\ No newline at end of file
<template> <template>
<layout class="index_view index-view-layout-top"> <layout class="index-view-layout index-view-layout--top">
<header class="index_header"> <header class="index-view-layout-header">
<div class="header-left"> <div class="header__left">
<slot name="headerLeft" /> <slot name="headerLeft" />
</div> </div>
<div class="header-center"> <div class="header__center">
<slot name="headerCenter" /> <slot name="headerCenter" />
</div> </div>
<div class="header-right"> <div class="header__right">
<slot name="headerRight" /> <slot name="headerRight" />
</div> </div>
</header> </header>
<content class="app-horizontal-layout"> <content class="index-view-layout-content">
<slot name="navPos" /> <slot name="navPos" />
</content> </content>
<footer class="layout-footer-center">
<slot name="footer"></slot>
</footer>
</layout> </layout>
</template> </template>
<script lang="ts"> <script lang="ts">
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
@import '../theme/default.theme.less'; @import '../theme/default.theme.less';
@import './app-code-list.less'; @import './app-code-list.less';
@import './var.css'; @import './var.css';
@import './var.less';
#app { #app {
height: 100vh; height: 100vh;
......
:root {
// 安永黑
--app-color-black: #232425;
// 安永灰1
--app-color-gray-100: #747480;
// 安永灰2
--app-color-gray-gray-200: #C4C4CD;
// 安永灰2 50%
--app-color-gray-gray-250: #E1E1E6;
// 安永灰4
--app-color-gray-gray-400: #F6F6FA;
// 安永白
--app-color-gray-white: #FFFFFF;
// 安永蓝
--app-color-gray-blue: #188CE5;
// 安永黄
--app-color-gray-yellow: #FFE600;
// 安永红
--app-color-gray-red: #B9251C;
// 安永橙
--app-color-gray-orange: #FF810A;
// 安永绿
--app-color-gray-green: #2DB757;
// 安永蓝绿
--app-color-gray-blue-green: #27ACAA;
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册