Merge pull request #1642 from dataease/feat_panel-switch-picture

refactor: 组件间隙在有背景颜色时也保持一致
This commit is contained in:
王嘉豪 2022-01-14 11:00:54 +08:00 committed by GitHub
commit f99652f871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -535,7 +535,7 @@ export default {
return this.$store.state.curComponent
},
curGap() {
return (this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix && this.element.type !== 'custom') ? this.componentGap : 0
return (this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix) ? this.componentGap : 0
},
...mapState([
'editor',

View File

@ -161,12 +161,13 @@ export default {
<style lang="scss" scoped>
.my-container {
position: absolute;
position: relative;
overflow: auto;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
border-radius: 5px;
}
.ccondition-main {
@ -241,11 +242,12 @@ export default {
}
.first-element-contaner {
width: calc(100% - 10px);
/*width: calc(100% - 10px);*/
width: 100%;
background: initial;
position: absolute;
bottom: 5px;
margin: 0 4px;
bottom: 0px;
/*margin: 0 4px;*/
div {
width: 100%;
@ -258,7 +260,7 @@ export default {
.first-element-grid-contaner {
background: #fff;
border: 1px solid #d7dae2;
top: 5px;
top: 0px;
}
.condition-main-line {