diff --git a/nezha-fronted/src/components/charts/chart-asset-info.scss b/nezha-fronted/src/components/charts/chart-asset-info.scss deleted file mode 100644 index 86470f567..000000000 --- a/nezha-fronted/src/components/charts/chart-asset-info.scss +++ /dev/null @@ -1,228 +0,0 @@ -/* ---------edit-chart-move--------- */ -.clearfix:after{ - display: block; - content: ""; - clear: both; -} -.clearfix{ - margin-bottom: 10px; -} -.loading-font{ - color:#232f3e !important; -} -.dialog-tool { - margin-right: 40px; -} -.hidden{ - visibility: hidden; -} -.visible{ - visibility: visible; -} - -.chart-asset-info { - width: 100%; - height: 100%;//calc(100% - 40px); - position: relative; - background: #FFF; - border: 1px solid #d8dce1; - padding: 0px 0px; - margin-bottom: 10px; - padding-bottom: 3px; - .chart-info-container{ - padding-left: 8px; - padding-right: 8px; - text-align:center; - width:calc(100% - 16px); - .single-stat-content{ - text-align:center; - vertical-align: middle; - display:table-cell; - font-size:30px; - } - } - .vue-resizable-handle { - position: absolute; - width: 20px; - height: 20px; - bottom: 0; - right: 0; - cursor: se-resize; - box-sizing: border-box; - } - .vue-resizable-handle:after { - border-right: 2px solid #555; - border-bottom: 2px solid #555; - content: ""; - position: absolute; - right: 3px; - bottom: 3px; - width: 5px; - height: 5px; - box-sizing: inherit; - } - .chartTitle:hover { - background-color:#d8dce1; - } - .dragTitle{ - background-color:#d8dce1; - } - .chartTitle { - text-align: center; - width: 100%; - line-height: 28px; - .nz-chart-top{ - width:100%; - } - .el-dropdown-link { - cursor: move; - } - .el-icon-arrow-down { - font-size: 12px; - } - .chart-title { - font-weight: bold; - font-size: 18px; - line-height: 26px; - color: #333; - margin: -3px 0 3px 3px; - display:flex; - justify-content:center; - align-items:center; - .chart-title-text{ - max-width:calc(100% - 20px); - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - cursor: pointer; - } - .chart-title-icon{ - display: inline-block; - cursor: pointer; - } - } - } - .edit:after{ - display: block; - content: ""; - clear: both; - } - - .button-panel-height{ - height:26px; - } - .button-panel-height button{ - height:26px; - } - .edit { - position: absolute; - right: 20px; - top: 17px; - z-index: 10; - - } - .chart-select { - position: absolute; - left: 40px; - top: 25px; - z-index: 10; - font-size: 14px; - .chart-select-btn { - margin-right: 10px; - cursor: pointer; - &.active { - color: #5aacff; - } - } - } - /*没有数据显示*/ - .null { - position: absolute; - top: 50%; - width: 100%; - text-align: center; - font-size: 24px; - font-weight: 600; - } - .element-bottom-border { - border-bottom: 1px solid #dfe7f2; - margin-bottom:-20px; - } - .element-top-border { - padding-top: 10px; - border-top: 1px solid #dfe7f2; - margin-top:-25px; - } -} - -.asset-info-content{ - width: 100%; - height: 100%; - font-size: 12px; - .basic-container,.feature-container{ - width: 100%; - //height: calc(50% - 4px); - box-sizing: border-box; - } - .basic-container .basic-title,.feature-container .feature-title{ - height: 20px; - width: 100%; - display: flex; - align-items: center; - justify-content: space-between; - flex-wrap:nowrap; - padding: 0 5px 0 5px; - box-sizing: border-box; - font-size: 16px; - } - .basic-container .basic-title:hover,.feature-container .feature-title:hover{ - border: 1px solid #C0C4CC; - } - - .basic-container .basic-content,.feature-container .feature-content{ - height: calc(100% - 22px); - transition: all 2s; - } - .shrink{ - height: 0px; - display: none; - } - .basic-container{ - margin-bottom: 10px; - } - .feature-container{ - - } - .content-item{ - width: 100%; - min-height: 20px; - padding: 2px; - overflow:hidden; - text-overflow:ellipsis; - position: relative; - border-bottom: 1px solid #EBEEF5; - .content-item-key{ - display: inline-block; - //height: 25px; - //line-height: 25px; - position: absolute; - top: calc(50% - 12px); - z-index: 2001; - left: 0; - width: 30%; - text-align: right; - } - .content-item-value{ - display: inline-block; - //height: 25px; - //line-height: 25px; - float: right; - width: 68%; - text-align: center; - } - - } - .hover-bg:hover{ - background-color: #F2F2F2; - } -} diff --git a/nezha-fronted/src/components/charts/chart-asset-info.vue b/nezha-fronted/src/components/charts/chart-asset-info.vue index fdb613ed1..b9c889f65 100644 --- a/nezha-fronted/src/components/charts/chart-asset-info.vue +++ b/nezha-fronted/src/components/charts/chart-asset-info.vue @@ -35,8 +35,11 @@