@@ -191,7 +195,7 @@ export default {
section_id: 0,
loading: false,
editMode: true,
- showSettings: false,
+ showSettings: true,
jsonModal: false,
schemaJSONText: '',
component_mode: false,
@@ -255,7 +259,7 @@ export default {
})
this.activeAddedSection.rows.push(newIt)
this.next_group++
- this.schamaSave()
+ this.update()
},
addRowButton: function (section) {
this.addSectionGrid = true
@@ -268,6 +272,7 @@ export default {
css: '',
key: ''
})
+ this.update()
},
deleteRow(field, index) {
field.rows.splice(index, 1)
@@ -278,8 +283,8 @@ export default {
return
}
},
- schamaSave: function () {
- this.$emit('input', this.fields)
+ update: function () {
+ this.$emit('update:modelValue', this.fields)
},
toggleOpen(event, group_item) {
event.stopPropagation()
@@ -302,7 +307,10 @@ export default {
},
editSectionSave: function () {
this.section_edit.modal = false
- this.schamaSave()
+ this.update()
+ },
+ clone: function (orignal) {
+ return JSON.parse(JSON.stringify(orignal))
}
},
created() {
diff --git a/src/components/PagebuilderSectionPlugin.vue b/src/components/PagebuilderSectionPlugin.vue
new file mode 100644
index 0000000..2f00ded
--- /dev/null
+++ b/src/components/PagebuilderSectionPlugin.vue
@@ -0,0 +1,97 @@
+
+
+
+ open_with{{ langs.label }}
+
+
+
+
create
+
+
+
+
+
+
+
+
+
+
delete
+
+
+
+
+
diff --git a/src/components/SectionElement.vue b/src/components/SectionElement.vue
index e69de29..2cc7f1f 100644
--- a/src/components/SectionElement.vue
+++ b/src/components/SectionElement.vue
@@ -0,0 +1,320 @@
+
+
+
+
+
+ {{ template }}
+
+
+
+
+
+ {{ template }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+ {{ template }}
+
+
+
+
+
+
Upload obrazka
+
Wybór obrazka z pliki i multimedia
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/SectionRow.vue b/src/components/SectionRow.vue
index 61671c9..18ddf37 100644
--- a/src/components/SectionRow.vue
+++ b/src/components/SectionRow.vue
@@ -13,39 +13,40 @@
+ >
Kolumna {{ index + 1 }}
{{ column.label ? '- ' + column.label : '' }}
- KOLEKCJA
-
-
-
-
-
+
+
+
+
+
+
-
+
-
{{ element.name }}{{ element.name }}
{{ element.type == 'heading' ? '- ' + element.text : '' }}
-
-
-
-
-
+ :modelValue="element"
+ >
@@ -122,88 +123,69 @@
v-model="column.collection"
group="people2"
>
-
-
-
-
-
-
+
+
+
+
+
+
-
open_with
-
-
-
-
-
+
+ {{ element.type == 'heading' ? '- ' + element.text : '' }}
+
+
+
+
+
+
-
+