polarvo-layout 1.0.67 → 1.0.69
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
|
@@ -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:
|
|
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
|
-
|
|
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,8 +140,6 @@ function buildCustomElements() {
|
|
|
143
140
|
imgurl,
|
|
144
141
|
};
|
|
145
142
|
});
|
|
146
|
-
|
|
147
|
-
return cachedCustomElements;
|
|
148
143
|
}
|
|
149
144
|
|
|
150
145
|
function getElements() {
|