polarvo-layout 1.0.12 → 1.0.13

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polarvo-layout",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "type": "module",
5
5
  "author": "unigence <unigencelab@gmail.com>",
6
6
  "repository": {
@@ -2,20 +2,20 @@
2
2
  <!-- editor - sub right -->
3
3
  <div id="fast-menu" class="flex items-center gap-2">
4
4
  <div
5
- class="text-sm px-2 py-0.5 rounded-md cursor-pointer hover:opacity-80"
6
- :class="{ 'bg-blue-50 text-blue-700 font-semibold': activeDesign === 'option' }"
5
+ class="text-sm px-2 py-0.5 text-blue-500 rounded-md bg-white cursor-pointer hover:-translate-y-px border border-blue-200 transition"
6
+ :class="{ 'bg-blue-50 text-blue-600 font-semibold': activeDesign === 'option-default' }"
7
7
  @click="clickDesignBar('option')"
8
8
  >
9
9
  옵션설정
10
10
  </div>
11
11
  <div
12
- class="text-sm px-2 py-0.5 rounded-md cursor-pointer hover:opacity-80"
13
- :class="{ 'bg-blue-50 text-blue-700 font-semibold': activeDesign === 'design' }"
12
+ class="text-sm px-2 py-0.5 text-blue-500 rounded-md bg-white cursor-pointer hover:-translate-y-px border border-blue-200 transition"
13
+ :class="{ 'bg-blue-50 border-blue-400 text-blue-600 font-semibold': activeDesign === 'design' }"
14
14
  @click="clickDesignBar('design')"
15
15
  >
16
16
  디자인설정
17
17
  </div>
18
- <div class="text-sm px-2 py-0.5 rounded-md cursor-pointer hover:opacity-80">더보기</div>
18
+ <div class="text-sm px-2 py-0.5 text-gray-500 rounded-md cursor-pointer hover:-translate-y-px transition">더보기</div>
19
19
  </div>
20
20
  </template>
21
21
 
@@ -89,6 +89,7 @@ const getSectionClass = (key, section) => ({
89
89
  'section-active': activeSection.value === key,
90
90
  disabled: activeSection.value != key && !props.preview,
91
91
  });
92
+
92
93
  </script>
93
94
 
94
95
  <style scoped>
@@ -71,6 +71,7 @@ class DisplayEngine {
71
71
  });
72
72
 
73
73
  this._subscribe('gridDrop:setActiveElement', ({ action }) => {
74
+ if (action === 'update') return;
74
75
  if (action === 'click') {
75
76
  this.setActiveMenu('element');
76
77
  } else {
@@ -111,7 +111,7 @@ class GridDropEngine {
111
111
  this._subscribe('system:requestUpdateActiveElement', ({ elements, elementId }) => {
112
112
  this._elements = elements;
113
113
  this._elementsUpdate = true;
114
- this.setActiveElement(this._elements.find((x) => x.id === elementId) || null);
114
+ this.setActiveElement(this._elements.find((x) => x.id === elementId) || null, 'update');
115
115
 
116
116
  this.eventBus.emit('gridDrop:requestUpdateActiveElement', {
117
117
  elements: cloneDeep(this.gridElements),
package/src/index.js CHANGED
@@ -18,7 +18,6 @@ import LayoutSideBar from './components/SideBar/LayoutSideBar.vue';
18
18
  import LayoutMiniMenu from './components/MiniMenu/LayoutMiniMenu.vue';
19
19
  import CanvasContainer from './components/Layout/CanvasContainer.vue';
20
20
 
21
-
22
21
  export {
23
22
  createPolarvoLayout,
24
23
  IconBar,