update name

This commit is contained in:
Qiuxia Fan 2022-04-14 13:04:44 +08:00
parent 11dc181306
commit ceec794fce
5 changed files with 12 additions and 7 deletions

View File

@ -23,7 +23,7 @@ limitations under the License. -->
}"
>
{{ singleVal.toFixed(2) }}
<span v-show="config.showUnit">
<span class="unit" v-show="config.showUnit">
{{ decodeURIComponent(unit) }}
</span>
</div>
@ -71,4 +71,9 @@ const unit = computed(
height: 100%;
color: #666;
}
.unit {
display: inline-block;
margin-left: 2px;
}
</style>

View File

@ -42,7 +42,7 @@ limitations under the License. -->
</span>
</template>
</el-table-column>
<MetricGraph
<ColumnGraph
:intervalTime="intervalTime"
:colMetrics="colMetrics"
:config="config"
@ -64,7 +64,7 @@ import { EntityType } from "../data";
import router from "@/router";
import getDashboard from "@/hooks/useDashboardsSession";
import { MetricConfigOpt } from "@/types/dashboard";
import MetricGraph from "./components/MetricGraph.vue";
import ColumnGraph from "./components/ColumnGraph.vue";
/*global defineProps */
const props = defineProps({

View File

@ -42,7 +42,7 @@ limitations under the License. -->
</span>
</template>
</el-table-column>
<MetricGraph
<ColumnGraph
:intervalTime="intervalTime"
:colMetrics="colMetrics"
:config="config"
@ -95,7 +95,7 @@ import { EntityType } from "../data";
import router from "@/router";
import getDashboard from "@/hooks/useDashboardsSession";
import { MetricConfigOpt } from "@/types/dashboard";
import MetricGraph from "./components/MetricGraph.vue";
import ColumnGraph from "./components/ColumnGraph.vue";
/*global defineProps */
const props = defineProps({

View File

@ -54,7 +54,7 @@ limitations under the License. -->
</span>
</template>
</el-table-column>
<MetricGraph
<ColumnGraph
:intervalTime="intervalTime"
:colMetrics="colMetrics"
:config="config"
@ -87,7 +87,7 @@ import { EntityType } from "../data";
import router from "@/router";
import getDashboard from "@/hooks/useDashboardsSession";
import { MetricConfigOpt } from "@/types/dashboard";
import MetricGraph from "./components/MetricGraph.vue";
import ColumnGraph from "./components/ColumnGraph.vue";
/*global defineProps */
const props = defineProps({