样式优化

This commit is contained in:
pipipi-pikachu 2021-01-22 10:56:37 +08:00
parent e282818a7c
commit 8ba7a9d91c
4 changed files with 15 additions and 1 deletions

View File

@ -6,7 +6,6 @@
:style="{ zIndex: elementIndex }" :style="{ zIndex: elementIndex }"
> >
<component <component
:id="`editable-element-${elementInfo.id}`"
:is="currentElementComponent" :is="currentElementComponent"
:elementInfo="elementInfo" :elementInfo="elementInfo"
:selectElement="selectElement" :selectElement="selectElement"

View File

@ -18,5 +18,10 @@ export default {
border: 1px solid $themeColor; border: 1px solid $themeColor;
background-color: #fff; background-color: #fff;
border-radius: 1px; border-radius: 1px;
cursor: grab;
&:active {
cursor: grabbing;
}
} }
</style> </style>

View File

@ -187,5 +187,10 @@ export default defineComponent({
font-size: 12px; font-size: 12px;
color: #999; color: #999;
width: 20px; width: 20px;
cursor: grab;
&:active {
cursor: grabbing;
}
} }
</style> </style>

View File

@ -251,6 +251,11 @@ export default defineComponent({
padding: 6px; padding: 6px;
border-radius: $borderRadius; border-radius: $borderRadius;
margin-bottom: 8px; margin-bottom: 8px;
cursor: grab;
&:active {
cursor: grabbing;
}
&.active { &.active {
border-color: $themeColor; border-color: $themeColor;