Merge pull request #2552 from dataease/pr@dev@refactor_tab-enlarge

refactor(仪表板): 卡片组件内部视图增加放大功能
This commit is contained in:
王嘉豪 2022-07-01 16:59:33 +08:00 committed by GitHub
commit ac6b43ed3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)