CN-271 feat: 图表重构-table类型

This commit is contained in:
@changcode
2022-01-19 15:54:27 +08:00
parent 759cbe3ce6
commit da28c3d940
6 changed files with 269 additions and 14 deletions

View File

@@ -115,6 +115,86 @@
left: 0;
top: -1px;
}
.header__operations {
display: flex;
justify-content: end;
align-items: center;
.header__operation-btn {
margin-left: 12px;
cursor: pointer;
color: #999;
}
.header__operation.header__operation--table {
display: flex;
align-items: center;
height: 22px;
margin-left: 10px;
color: $--color-primary;
border: 1px solid $--color-primary;
border-radius: $--border-radius-primary;
.option__button {
display: flex;
align-items: center;
height: 100%;
padding: 0 5px;
cursor: pointer;
background-color: white;
transition: all linear .2s;
}
.option__button:hover {
background-color: #EFF2F5;
}
.option__button.icon-group-item:first-of-type:not(:last-of-type) {
padding: 0 5px 0 0;
}
.option__button.icon-group-item:last-of-type:not(:first-of-type) {
padding: 0 0 0 5px;
}
.option__select {
.el-input__inner {
width: 80px;
padding-right: 20px;
border: none;
height: 100%;
line-height: 20px;
color: $--color-primary;
}
.el-input__prefix > div {
font-weight: normal;
line-height: 19px;
color: $--color-primary;
}
.el-input__suffix {
display: flex;
.el-input__suffix-inner {
line-height: 14px;
.el-select__caret {
line-height: 14px;
width: 16px;
color: $--color-primary;
}
}
}
}
.option__select.select-column {
.el-input__inner {
width: 86px;
padding-left: 8px;
}
}
.icon-group-divide {
height: 14px;
width: 1px;
background-color: $--color-primary;
}
i {
font-size: 12px;
}
}
}
}
&>.cn-chart {
position: relative;
@@ -419,7 +499,7 @@
height: calc(100% - 40px);
}
}
&>.cn-chart__table {
&>.cn-chart__table, {
.cn-chart__header {
border-bottom: 1px solid $--content-right-background-color;
.header__operations {
@@ -832,3 +912,16 @@
content: "!";
font-weight:normal;
}
.ip-detail-as {
color: #999;
font-size: 12px;
padding-left: 10px;
}
.option-popper {
.el-select-dropdown__item {
height: 24px;
line-height: 24px;
font-size: 12px;
}
}