polarvo-layout 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
@mousedown.stop="activeEditMode ? null : handleMouseDown($event, item.id)"
|
|
8
8
|
>
|
|
9
9
|
<!-- 크기-->
|
|
10
|
-
<div v-if="item.id === activeId" class="absolute bg-blue-400 px-2 py-1 text-sm text-white right-0 z-10
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
<div v-if="item.id === activeId" class="absolute bg-blue-400 px-2 py-1 text-sm text-white right-0 z-10">
|
|
11
|
+
가로: {{ Math.round(size.w) }} 세로: {{ Math.round(size.h) }}
|
|
12
|
+
</div>
|
|
13
|
+
|
|
13
14
|
<!-- 리사이즈 핸들 -->
|
|
14
15
|
<div v-if="item.id === activeId" class="absolute inset-0 pointer-events-none">
|
|
15
16
|
<div
|
|
@@ -61,7 +62,7 @@ const props = defineProps({
|
|
|
61
62
|
|
|
62
63
|
const { activeId, handles, activeElement } = toRefs(props.polarvo.freeDrop.state);
|
|
63
64
|
const { getElementStyle, handleMouseDown, startResize, toggleLock } = props.polarvo.freeDrop;
|
|
64
|
-
const size = computed(() => activeElement.value ? activeElement.value.size : { w: 0, h: 0 });
|
|
65
|
+
const size = computed(() => (activeElement.value ? activeElement.value.size : { w: 0, h: 0 }));
|
|
65
66
|
|
|
66
67
|
const activeEditMode = inject('activeEditMode');
|
|
67
68
|
function toggleEditMode() {
|