Merge pull request #1996 from dataease/pr@dev@fix_panel-style

fix: 过滤组件编辑弹框不正确
This commit is contained in:
王嘉豪 2022-03-29 17:13:25 +08:00 committed by GitHub
commit 872dde2fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 21 deletions

View File

@ -5,7 +5,7 @@
@click="handleClick" @click="handleClick"
@mousedown="elementMouseDown" @mousedown="elementMouseDown"
> >
<div :style="commonStyle"> <div :style="commonStyle" class="main_view">
<edit-bar v-if="componentActiveFlag" :element="config" @showViewDetails="showViewDetails" /> <edit-bar v-if="componentActiveFlag" :element="config" @showViewDetails="showViewDetails" />
<close-bar v-if="previewVisible" @closePreview="closePreview" /> <close-bar v-if="previewVisible" @closePreview="closePreview" />
<de-out-widget <de-out-widget
@ -107,7 +107,6 @@ export default {
style['background-color'] = hexColorToRGBA(this.config.commonBackground.color, this.config.commonBackground.alpha) style['background-color'] = hexColorToRGBA(this.config.commonBackground.color, this.config.commonBackground.alpha)
} }
} }
style['background-size'] = `100% 100%`
style['overflow'] = 'hidden' style['overflow'] = 'hidden'
} }
return style return style
@ -228,4 +227,7 @@ export default {
width: 100% !important; width: 100% !important;
height: 100%; height: 100%;
} }
.main_view{
background-size: 100% 100%!important;
}
</style> </style>

View File

@ -46,24 +46,11 @@ export default {
]), ]),
methods: { methods: {
edit() { edit() {
bus.$emit('change_panel_right_draw', true) if (this.curComponent.type === 'custom') {
// // bus.$emit('component-dialog-edit')
// this.$store.dispatch('panel/setComponentDataTemp', JSON.stringify(this.componentData)) } else if (this.curComponent.type === 'v-text' || this.curComponent.type === 'rect-shape') {
// this.$store.dispatch('panel/setCanvasStyleDataTemp', JSON.stringify(this.canvasStyleData)) bus.$emit('component-dialog-style')
// if (this.curComponent.type === 'view') { } else { bus.$emit('change_panel_right_draw', true) }
// this.$store.dispatch('chart/setViewId', null)
// this.$store.dispatch('chart/setViewId', this.curComponent.propValue.viewId)
// bus.$emit('PanelSwitchComponent', { name: 'ChartEdit', param: { 'id': this.curComponent.propValue.viewId, 'optType': 'edit' }})
// }
// if (this.curComponent.type === 'custom') {
// bus.$emit('component-dialog-edit')
// }
//
// //
//
// if (this.curComponent.type === 'v-text' || this.curComponent.type === 'rect-shape') {
// bus.$emit('component-dialog-style')
// }
}, },
lock() { lock() {
this.$store.commit('lock') this.$store.commit('lock')

View File

@ -3,7 +3,7 @@ const getDefaultState = () => {
sceneData: {}, sceneData: {},
table: {}, table: {},
sceneId: {}, sceneId: {},
viewId: {}, viewId: null,
tableId: {}, tableId: {},
chartSceneData: {} chartSceneData: {}
} }