Unverified 提交 f99652f8 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

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

refactor: 组件间隙在有背景颜色时也保持一致
...@@ -535,7 +535,7 @@ export default { ...@@ -535,7 +535,7 @@ export default {
return this.$store.state.curComponent return this.$store.state.curComponent
}, },
curGap() { 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([ ...mapState([
'editor', 'editor',
......
...@@ -161,12 +161,13 @@ export default { ...@@ -161,12 +161,13 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.my-container { .my-container {
position: absolute; position: relative;
overflow: auto; overflow: auto;
top: 0px; top: 0px;
right: 0px; right: 0px;
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
border-radius: 5px;
} }
.ccondition-main { .ccondition-main {
...@@ -241,11 +242,12 @@ export default { ...@@ -241,11 +242,12 @@ export default {
} }
.first-element-contaner { .first-element-contaner {
width: calc(100% - 10px); /*width: calc(100% - 10px);*/
width: 100%;
background: initial; background: initial;
position: absolute; position: absolute;
bottom: 5px; bottom: 0px;
margin: 0 4px; /*margin: 0 4px;*/
div { div {
width: 100%; width: 100%;
...@@ -258,7 +260,7 @@ export default { ...@@ -258,7 +260,7 @@ export default {
.first-element-grid-contaner { .first-element-grid-contaner {
background: #fff; background: #fff;
border: 1px solid #d7dae2; border: 1px solid #d7dae2;
top: 5px; top: 0px;
} }
.condition-main-line { .condition-main-line {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论