refactor(视图): 优化符号地图对公共组件样式的适配

This commit is contained in:
wangjiahao 2022-07-05 18:19:36 +08:00
parent bb51c676d8
commit ab8763d3fd
2 changed files with 12 additions and 4 deletions

View File

@ -216,7 +216,11 @@ export default {
height: '100%'
}
} else {
return getStyle(style, ['top', 'left', 'width', 'height', 'rotate'])
return {
...
getStyle(style, ['top', 'left', 'width', 'height', 'rotate']),
position: 'relative'
}
}
},
@ -270,6 +274,6 @@ export default {
background-size: 100% 100%!important;
}
.component{
position: relative;
//position: relative;
}
</style>

View File

@ -1,5 +1,5 @@
<template>
<div class="component-item" >
<div class="component-item">
<div :style="commonStyle">
<mobile-check-bar v-if="mobileCheckBarShow" :element="config" />
<de-out-widget
@ -113,7 +113,11 @@ export default {
},
methods: {
getComponentStyleDefault(style) {
return getStyle(style, ['top', 'left', 'width', 'height', 'rotate'])
return {
...
getStyle(style, ['top', 'left', 'width', 'height', 'rotate']),
position: 'relative'
}
}
}
}