refactor(视图): 优化符号地图对公共组件样式的适配
This commit is contained in:
parent
bb51c676d8
commit
ab8763d3fd
@ -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>
|
||||
|
||||
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user