polarvo-layout 1.0.67 → 1.0.68

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.67",
3
+ "version": "1.0.68",
4
4
  "type": "module",
5
5
  "author": "unigence <unigencelab@gmail.com>",
6
6
  "repository": {
@@ -14,7 +14,6 @@
14
14
 
15
15
  <script>
16
16
  let cachedDefaultElements = null;
17
- let cachedCustomElements = null;
18
17
  </script>
19
18
 
20
19
  <script setup>
@@ -50,7 +49,7 @@ const sectionMode = computed(() => activeMode.value);
50
49
 
51
50
  const allElements = ref({
52
51
  default: [],
53
- custom: props.customElements || [],
52
+ custom: [],
54
53
  });
55
54
 
56
55
  const currentElements = computed(() => {
@@ -128,11 +127,9 @@ function buildDefaultElements() {
128
127
  }
129
128
 
130
129
  function buildCustomElements() {
131
- if (cachedCustomElements) return cachedCustomElements;
132
-
133
130
  const imgurl = imageModules['/src/assets/el_img/customDefault.png']?.default ?? '';
134
131
 
135
- cachedCustomElements = props.customElements.map((el) => {
132
+ return props.customElements.map((el) => {
136
133
  const { elName, type, mode, position, size, section, isLocked, createdAt, ...propDefaults } = el;
137
134
  const elDate = formatElDate(createdAt);
138
135
 
@@ -143,13 +140,13 @@ function buildCustomElements() {
143
140
  imgurl,
144
141
  };
145
142
  });
146
-
147
- return cachedCustomElements;
148
143
  }
149
144
 
150
145
  function getElements() {
151
146
  allElements.value.default = buildDefaultElements();
152
147
  allElements.value.custom = buildCustomElements();
148
+
149
+ console.log("allElements.value.default", allElements.value);
153
150
  }
154
151
 
155
152
  onBeforeMount(() => {