123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- /* 设置 notification、message 层级在 loading 之上 */
- .el-message,
- .el-notification {
- z-index: 2070 !important;
- }
- label {
- font-weight: 700;
- }
- .el-form-item__label {
- // display: list-item;
- // overflow: hidden;
- font-weight: 700;
- // text-overflow: ellipsis;
- // white-space: nowrap;
- }
- .dialog-slot-c {
- .el-tabs__content {
- max-height: 52vh;
- overflow: hidden;
- overflow: auto;
- }
- }
- // .el-form-item--default {
- // margin-bottom: 12px;
- // }
- /* el-alert */
- .el-alert {
- border: 1px solid;
- }
- .el-select {
- width: 100%;
- }
- .el-date-editor.el-input {
- width: 100%;
- }
- .el-input-number {
- width: 100%;
- }
- /* 当前页面最大化 css */
- .main-maximize {
- .aside-split,
- .el-aside,
- .el-header,
- .el-footer,
- .tabs-box {
- display: none !important;
- }
- }
- /* mask image */
- .mask-image {
- padding-right: 50px;
- mask-image: linear-gradient(90deg, #000000 0%, #000000 calc(100% - 50px), transparent);
- }
- /* custom card */
- .card {
- box-sizing: border-box;
- padding: 12px;
- overflow-x: hidden;
- background-color: var(--el-bg-color);
- border: 1px solid var(--el-border-color-light);
- border-radius: 6px;
- box-shadow: 0 0 12px rgb(0 0 0 / 5%);
- }
- /* ProTable 不需要 card 样式(在组件内使用 ProTable 会使用到) */
- .no-card {
- .card {
- padding: 0;
- background-color: transparent;
- border: none;
- border-radius: 0;
- box-shadow: none;
- }
- .table-search {
- padding: 12px 0 0 !important;
- margin-bottom: 0 !important;
- }
- }
- /* content-box (常用内容盒子) */
- .content-box {
- display: flex;
- flex-direction: column;
- align-items: center;
- height: 100%;
- .text {
- margin: 20px 0 30px;
- font-size: 23px;
- font-weight: bold;
- color: var(--el-text-color-regular);
- }
- .el-descriptions {
- width: 100%;
- padding: 40px 0 0;
- .el-descriptions__title {
- font-size: 18px;
- }
- .el-descriptions__label {
- width: 200px;
- }
- }
- }
- .content-box-c {
- height: 100%;
- padding: 32px 24px;
- .el-collapse {
- // border: none;
- border-top: none;
- // border: 1px solid var(--el-collapse-border-color);
- border-radius: 6px;
- }
- .el-collapse-item {
- margin-bottom: 20px;
- }
- .el-collapse-item__wrap {
- border-bottom: none;
- }
- .el-collapse-item__content {
- padding: 18px 18px 0;
- border-bottom: 1px;
- }
- .el-collapse-item__header {
- height: 35px;
- padding-left: 24px;
- font-weight: 700;
- color: var(--el-color-white);
- background-color: var(--el-color-primary);
- border-top-left-radius: 6px;
- border-top-right-radius: 6px;
- &:hover {
- color: #ffffff;
- background: var(--el-color-primary-light-5);
- border-color: var(--el-color-primary-light-5);
- transition: 0.1s;
- }
- &.active {
- font-weight: bold;
- color: #ffffff;
- background: var(--el-color-primary);
- border-color: var(--el-color-primary);
- }
- }
- }
- /* main-box (树形表格 treeFilter 页面会使用,左右布局 flex) */
- .main-box {
- display: flex;
- width: 100%;
- height: 100%;
- .table-box {
- // 这里减去的 230px 是 treeFilter 组件宽度
- width: calc(100% - 230px);
- }
- }
- /* proTable */
- .table-box,
- .table-main {
- display: flex;
- flex: 1;
- flex-direction: column;
- width: 100%;
- height: 100%;
- // table-search 表格搜索样式
- .table-search {
- padding: 18px 18px 0;
- margin-bottom: 6px;
- .el-form {
- .el-form-item__content > * {
- width: 100%;
- }
- .el-select {
- width: 100%;
- }
- // 去除时间选择器上下 padding
- .el-range-editor.el-input__wrapper {
- padding: 0 10px;
- }
- }
- .operation {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- margin-bottom: 18px;
- }
- }
- // 表格 header 样式
- .table-header {
- .header-button-lf {
- float: left;
- }
- .header-button-ri {
- float: right;
- }
- .el-button {
- margin-bottom: 12px;
- }
- }
- // el-table 表格样式
- .el-table {
- flex: 1;
- // 修复 safari
- table {
- width: 100%;
- }
- .el-table__header th {
- height: 45px;
- font-size: 15px;
- font-weight: bold;
- color: var(--el-text-color-primary);
- background: var(--el-fill-color-light);
- }
- .el-table__row {
- height: 45px;
- font-size: 14px;
- .move {
- cursor: move;
- .el-icon {
- cursor: move;
- }
- }
- }
- // 设置 el-table 中 header 文字不换行,并省略
- .el-table__header .el-table__cell > .cell {
- // white-space: nowrap;
- white-space: wrap;
- }
- // 解决表格数据为空时样式不居中问题(仅在element-plus中)
- .el-table__empty-block {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- .table-empty {
- line-height: 30px;
- }
- }
- // table 中 image 图片样式
- .table-image {
- width: 50px;
- height: 50px;
- border-radius: 50%;
- }
- }
- // 表格 pagination 样式
- .el-pagination {
- display: flex;
- justify-content: flex-end;
- margin-top: 12px;
- }
- }
- /* el-table 组件大小 */
- .el-table--small {
- .el-table__header th {
- height: 40px !important;
- font-size: 14px !important;
- }
- .el-table__row {
- height: 40px !important;
- font-size: 13px !important;
- }
- }
- .el-table--large {
- .el-table__header th {
- height: 50px !important;
- font-size: 16px !important;
- }
- .el-table__row {
- height: 50px !important;
- font-size: 15px !important;
- }
- }
- /* el-drawer */
- .el-drawer {
- .el-drawer__header {
- padding: 16px 20px;
- margin-bottom: 0;
- border-bottom: 1px solid var(--el-border-color-lighter);
- span {
- font-size: 17px;
- line-height: 17px;
- color: var(--el-text-color-primary) !important;
- }
- }
- .el-drawer__footer {
- border-top: 1px solid var(--el-border-color-lighter);
- }
- // select 样式
- .el-select {
- width: 100%;
- }
- // drawer-form 中存在两列 form-item 样式
- .drawer-multiColumn-form {
- display: flex;
- flex-wrap: wrap;
- // .el-form-item {
- // width: 47%;
- // &:nth-child(2n-1) {
- // // margin-right: 5%;
- // }
- // }
- }
- }
- /* el-dialog */
- .el-dialog {
- border-radius: 6px;
- .el-dialog__header {
- padding: 15px 20px;
- margin: 0;
- // background-color: var(--el-color-primary);
- border-bottom: 1px solid var(--el-border-color-lighter);
- // border-top-left-radius: 6px;
- // border-top-right-radius: 6px;
- .el-dialog__title {
- font-size: 18px;
- // color: var(--el-dialog-bg-color);
- }
- // .el-dialog__close {
- // color: var(--el-dialog-bg-color);
- // }
- }
- }
|