co alelgro "type":"container"
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user