polarvo-layout 1.0.65 → 1.0.66
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,7 +7,7 @@
|
|
|
7
7
|
@mousedown.stop="sectionMode == 'free' ? addElementToFree($event, item) : addElementToGrid(item)"
|
|
8
8
|
>
|
|
9
9
|
<img :src="item.imgurl" alt="" class="w-24 h-auto rounded" />
|
|
10
|
-
<h4 class="text-sm">{{ item.
|
|
10
|
+
<h4 class="text-sm">{{ item.label }}</h4>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
@@ -104,7 +104,7 @@ function buildDefaultElements() {
|
|
|
104
104
|
const imgKey = `/src/assets/el_img/${elName}.${ext}`;
|
|
105
105
|
|
|
106
106
|
return {
|
|
107
|
-
|
|
107
|
+
label: elName,
|
|
108
108
|
elName,
|
|
109
109
|
propDefaults: getPropsDefaults(modules[path].default?.props),
|
|
110
110
|
imgurl: imageModules[imgKey]?.default ?? '',
|
|
@@ -120,11 +120,12 @@ function buildCustomElements() {
|
|
|
120
120
|
const imgurl = imageModules['/src/assets/el_img/customDefault.png']?.default ?? '';
|
|
121
121
|
|
|
122
122
|
cachedCustomElements = props.customElements.map((el) => {
|
|
123
|
-
const { elName, mode, position, size, section, isLocked, ...propDefaults } = el;
|
|
123
|
+
const { elName, type, mode, position, size, section, isLocked, createdAt, ...propDefaults } = el;
|
|
124
|
+
const elDate = createdAt ? createdAt.split('T')[0] : null;
|
|
124
125
|
|
|
125
126
|
return {
|
|
126
|
-
|
|
127
|
-
elName,
|
|
127
|
+
label: elDate ? `${type}_${elDate}` : type,
|
|
128
|
+
elName: type,
|
|
128
129
|
propDefaults,
|
|
129
130
|
imgurl,
|
|
130
131
|
};
|