feat:添加 chart-group
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div :class="{'chart-header--float': !chartInfo.param.showHeader}" class="chart-header">
|
||||
<div class="chart-header__title">{{chartInfo.name}}</div>
|
||||
<div class="chart-header__title" v-if="!isGroup">{{chartInfo.name}}</div>
|
||||
<div class="chart-header__title" v-else @click="groupShow"> > {{chartInfo.name}}</div>
|
||||
<div class="chart-header__tools">
|
||||
<span v-if="chartInfo.remark" class="chart-header__tool">
|
||||
<el-tooltip :content="chartInfo.remark" effect="light" placement="top">
|
||||
@@ -51,6 +52,10 @@ export default {
|
||||
props: {
|
||||
chartInfo: Object,
|
||||
from: String,
|
||||
isGroup: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
error: {
|
||||
type: String,
|
||||
default: ''
|
||||
@@ -90,6 +95,9 @@ export default {
|
||||
},
|
||||
clickos () {
|
||||
this.dropdownMenuShow = false
|
||||
},
|
||||
groupShow () {
|
||||
this.$emit('groupShow', !this.chartInfo.param.collapse)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user