refactor:样式调整,放着transfrom使z-index失效

This commit is contained in:
wangjiahao 2021-08-23 15:51:19 +08:00
parent 647f4dddad
commit 523ff395f5

View File

@ -3,7 +3,12 @@
v-if="showDrag"
id="editor"
class="editor"
:class="{ edit: isEdit }"
:class="[
{
['edit']: isEdit ,
['parent_transform']:!chartDetailsVisible
}
]"
:style="customStyle"
@mousedown="handleMouseDown"
>
@ -167,6 +172,7 @@ export default {
props: {
isEdit: {
type: Boolean,
require: false,
default: true
},
@ -637,12 +643,16 @@ export default {
/*background: #fff;*/
margin: auto;
background-size:100% 100% !important;
transform-style:preserve-3d;
/*transform-style:preserve-3d;*/
.lock {
opacity: .5;
}
}
.parent_transform {
//transform transform 使z-index 使 transform-style
// transform-style dialog
transform-style:preserve-3d;
}
.edit {
outline: 1px solid gainsboro;
.component {