You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

169 lines
2.8 KiB

@use './mixin.scss';
@use './transition.scss';
@use './element-ui.scss';
@use './font-awesome/font-awesome.scss';
body {
height: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family:
Helvetica Neue,
Helvetica,
PingFang SC,
Hiragino Sans GB,
Microsoft YaHei,
SimSun,
sans-serif;
font-weight: 400;
}
label {
font-weight: 700;
}
html {
height: 100%;
box-sizing: border-box;
}
#app {
height: 100%;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
a:focus,
a:active {
outline: none;
}
a,
a:focus,
a:hover {
cursor: pointer;
color: inherit;
text-decoration: none;
}
div:focus {
outline: none;
}
.clearfix {
&:after {
visibility: hidden;
display: block;
font-size: 0;
content: ' ';
clear: both;
height: 0;
}
}
//设置 弹出框的默认最小高度
.el-dialog {
.app-container {
min-height: 40vh;
}
}
// 表格布局
.app-container {
width: 100%;
flex-grow: 1;
display: flex;
flex-direction: column;
.search-container {
.el-form {
.el-form-item {
margin-bottom: 0px;
}
//全局input输入框长度不设置时clearable会导致宽度自动变更
.el-input {
width: 180px !important;
}
}
}
//表格不带分页样式
.full-table-container {
margin-top: 10px;
flex: 1;
.el-card__body {
height: 100%;
.el-table {
height: 100%;
}
}
}
//表格带分页样式
.paged-table-container {
margin-top: 10px;
flex: 1;
.el-card__body {
height: 100%;
.el-table {
height: calc(100% - 45px);
}
}
}
}
//边侧 主页面布局 适合左边树形结构 右边表格
.app-container-main-aside {
width: 100%;
flex-grow: 1;
display: flex;
.app-container-aside {
width: 300px; //必须有一个宽度 如果需要自定以请重写
height: 100%;
flex-grow: 0;
flex-shrink: 0;
.el-card {
height: 100%;
}
}
.app-container-main {
height: 100%;
width: calc(100% - 300px); //必须有一个宽度 如果需要自定以请重写
display: flex;
flex-direction: column;
margin-left: 10px;
.search-container {
.el-form {
.el-form-item {
margin-bottom: 0px;
}
//全局input输入框长度不设置时clearable会导致宽度自动变更
.el-input {
width: 200px !important;
}
}
}
//设置表格自适应高度
.paged-table-container {
flex: 1;
.el-card__body {
height: 100%;
.el-table {
height: calc(100% - 45px);
}
}
}
}
}
#nprogress .bar {
background: var(--el-color-primary) !important; //自定义颜色
}