refactor(仪表板): 卡片组件内部视图增加放大功能

This commit is contained in:
wangjiahao 2022-07-01 16:57:02 +08:00
parent 11e5919719
commit 998369e920

View File

@ -7,6 +7,9 @@
<span :title="$t('panel.details')">
<i class="icon iconfont icon-chakan" @click.stop="showViewDetails('details')" />
</span>
<span :title="$t('panel.enlarge')">
<i class="icon iconfont icon-fangda" @click.stop="showViewDetails('enlarge')" />
</span>
</div>
<div v-if="positionCheck('multiplexing')" style="margin-right: -1px;width: 18px;z-index: 5">
<el-checkbox v-model="multiplexingCheckModel" size="medium" @change="multiplexingCheck" />
@ -88,7 +91,7 @@ export default {
this.$emit('amRemoveItem')
},
showViewDetails(params) {
this.$emit('showViewDetails', params)
this.$emit('showViewDetails', { openType: params })
},
positionCheck(position) {
return this.showPosition.includes(position)