polarvo-layout 1.0.34 → 1.0.35
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
|
@@ -77,13 +77,13 @@ watch(
|
|
|
77
77
|
setActiveDesign(null);
|
|
78
78
|
setActiveMenu(null);
|
|
79
79
|
}
|
|
80
|
-
|
|
81
80
|
_isElementSwitching = true;
|
|
82
81
|
// selectedElement.value = structuredClone(toRaw(activeElement.value));
|
|
83
82
|
selectedElement.value = cloneDeep(activeElement.value);
|
|
84
83
|
|
|
85
84
|
// activeElement 바뀌면 편집 모드 해제
|
|
86
85
|
activeEditMode.value = false;
|
|
86
|
+
|
|
87
87
|
},
|
|
88
88
|
);
|
|
89
89
|
|
|
@@ -43,7 +43,7 @@ function getPropsDefaults(props) {
|
|
|
43
43
|
if (!props) return {};
|
|
44
44
|
|
|
45
45
|
return Object.fromEntries(Object.entries(props).map(([key, prop]) => {
|
|
46
|
-
if (['size'].includes(key)) return null;
|
|
46
|
+
if (['size', 'preview'].includes(key)) return null;
|
|
47
47
|
|
|
48
48
|
if (prop.default !== undefined) {
|
|
49
49
|
return [key, typeof prop.default === 'function' ? prop.default() : prop.default];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { cloneDeep } from 'lodash-es';
|
|
2
|
-
import { nextTick } from 'vue';
|
|
3
2
|
|
|
4
3
|
// event 발행 시 'freeDrop'으로 시작하는 이름 사용
|
|
5
4
|
class FreeDropEngine {
|
|
@@ -428,6 +427,7 @@ class FreeDropEngine {
|
|
|
428
427
|
this._activeElement = element;
|
|
429
428
|
this._alreadyExist = action === 'add' ? false : true;
|
|
430
429
|
// this._elementsUpdate = true;
|
|
430
|
+
console.log('setActiveElement', this._activeElement?.id, this.freeElements)
|
|
431
431
|
|
|
432
432
|
this.eventBus.emit('freeDrop:setActiveElement', {
|
|
433
433
|
$alreadyExist: this._alreadyExist,
|