forked from github/dataease
fix: 画布区组件边框角度未生效问题
This commit is contained in:
parent
ebf25fcd99
commit
f2963a17a8
@ -29,8 +29,7 @@
|
|||||||
['de-drag-active-inner']:enabled,
|
['de-drag-active-inner']:enabled,
|
||||||
[classNameMouseOn]: mouseOn || active
|
[classNameMouseOn]: mouseOn || active
|
||||||
},
|
},
|
||||||
className,
|
className
|
||||||
'main-background'
|
|
||||||
]"
|
]"
|
||||||
:style="mainSlotStyle"
|
:style="mainSlotStyle"
|
||||||
>
|
>
|
||||||
@ -44,7 +43,9 @@
|
|||||||
>
|
>
|
||||||
<slot :name="handlei" />
|
<slot :name="handlei" />
|
||||||
</div>
|
</div>
|
||||||
<slot />
|
<div :style="mainSlotStyleInner" class="main-background">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -533,6 +534,10 @@ export default {
|
|||||||
width: this.computedMainSlotWidth,
|
width: this.computedMainSlotWidth,
|
||||||
height: this.computedMainSlotHeight
|
height: this.computedMainSlotHeight
|
||||||
}
|
}
|
||||||
|
return style
|
||||||
|
},
|
||||||
|
mainSlotStyleInner() {
|
||||||
|
const style = {}
|
||||||
if (this.element.commonBackground) {
|
if (this.element.commonBackground) {
|
||||||
style['padding'] = (this.element.commonBackground.innerPadding || 0) + 'px'
|
style['padding'] = (this.element.commonBackground.innerPadding || 0) + 'px'
|
||||||
style['border-radius'] = (this.element.commonBackground.borderRadius || 0) + 'px'
|
style['border-radius'] = (this.element.commonBackground.borderRadius || 0) + 'px'
|
||||||
@ -1865,6 +1870,8 @@ export default {
|
|||||||
outline: 1px solid #70c0ff;
|
outline: 1px solid #70c0ff;
|
||||||
}
|
}
|
||||||
.main-background{
|
.main-background{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
background-size: 100% 100% !important;
|
background-size: 100% 100% !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user