co alelgro "type":"container"

This commit is contained in:
2024-07-01 12:31:22 +02:00
parent 63fa2b9134
commit c7d4125d2c
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "magico-pagebuilder", "name": "magico-pagebuilder",
"version": "0.0.2", "version": "0.0.3",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -280,7 +280,8 @@ export default {
if (item.cols && Array.isArray(item.cols)) { if (item.cols && Array.isArray(item.cols)) {
item.cols.forEach(col => { item.cols.forEach(col => {
const column = { const column = {
name: 'col-md-' + col.size,
type:"container",
items: [ items: [
{ {
name: (col.type === 'img' ? 'core_section_image' : 'core_section_textarea'), name: (col.type === 'img' ? 'core_section_image' : 'core_section_textarea'),
@@ -295,7 +296,7 @@ export default {
}); });
} }
return { columns }; return { columns, name: 'col-md-' + col.size,label:'',name:'' };
}); });
return this.comps = pagebuilder; return this.comps = pagebuilder;