fix: 修复详情样式

This commit is contained in:
@changcode
2022-02-08 12:01:47 +08:00
parent ce963cd200
commit f365d8bb11
3 changed files with 11 additions and 4 deletions

View File

@@ -75,8 +75,15 @@
background-color: white;
}
&>.cn-entity-detail .entity-detail__body>.cn-panel2 {
.cn-chart {
height: calc(100% - 47px) !important;
.panel-chart {
.chart-header.panel-chart-block {
border: none;
}
}
.panel-chart-table.panel-chart {
.cn-chart {
height: calc(100% - 47px) !important;
}
}
.chart-list {
.vue-grid-layout .vue-grid-item {

View File

@@ -1,5 +1,5 @@
<template>
<div class="chart-header" :class="{'chart-header--title-chart': isTitle, 'is-group-collapse': chartInfo.params&&chartInfo.params.collpase}">
<div class="chart-header" :class="{'chart-header--title-chart': isTitle, 'is-group-collapse': chartInfo.params&&chartInfo.params.collpase, 'panel-chart-block': isBlock}">
<div class="chart-header__title" v-if="!isCurrentTable&&(isGroup)" :class="{'chart-header__title--block': isBlock}">
<span @click="groupShow"> <i class="cn-icon" :class="chartInfo.params&&chartInfo.params.collpase ? 'cn-icon-arrow-right': 'cn-icon-arrow-down'"></i></span>
{{chartInfo.name}}

View File

@@ -1,7 +1,7 @@
<template>
<!-- chart外层箱子 -->
<div
:class="{'panel-chart--fullscreen': isFullscreen, 'panel-chart--title-chart': isTitle, 'panel-chart-group': isGroup}"
:class="{'panel-chart--fullscreen': isFullscreen, 'panel-chart--title-chart': isTitle, 'panel-chart-group': isGroup,'panel-chart-table': isTable}"
class="panel-chart"
:id="isFullscreen ? ('chart-screen-' + chartInfo.id ) : ('chart-local-' + chartInfo.id)"
>