-
-
-
-
-
-
+
\ No newline at end of file
+
diff --git a/src/components/plugin/SectionHtml.vue b/src/components/plugin/SectionHtml.vue
index d064e47..a32b93f 100644
--- a/src/components/plugin/SectionHtml.vue
+++ b/src/components/plugin/SectionHtml.vue
@@ -31,17 +31,16 @@ import MagicoModal from './../MagicoModal.vue'
export default {
components: {
'b-modal': MagicoModal,
-
},
props: {
- value: Object
+ modelValue: Object
},
mounted: function () {
- this.name = (this.value && this.value.name) ? this.value.name : this.name;
- this.text = (this.value && this.value.text) ? this.value.text : this.text;
- if (this.value.open) this.modalBox = true;
+ this.name = (this.modelValue && this.modelValue.name) ? this.modelValue.name : this.name;
+ this.text = (this.modelValue && this.modelValue.text) ? this.modelValue.text : this.text;
+ if (this.modelValue.open) this.modalBox = true;
console.log('mounted html');
- this.$emit('update:modelValue',this.value);
+ this.$emit('update:modelValue',this.modelValue);
},
data: function () {
return {
@@ -58,12 +57,12 @@ export default {
},
computed: {
ctext: function () {
- return this.value.text?this.value.text.replace(/<(?:.|\n)*?>/gm, ''):'';
+ return this.modelValue.text?this.modelValue.text.replace(/<(?:.|\n)*?>/gm, ''):'';
}
},
methods: {
removeItem: function () {
- this.$emit('itemRemoved', this.value);
+ this.$emit('itemRemoved', this.modelValue);
},
onCloseModal: function () {
this.modalBox = false;
@@ -73,6 +72,5 @@ export default {
})
}
},
-
}
\ No newline at end of file
diff --git a/src/components/plugin/SectionImage.vue b/src/components/plugin/SectionImage.vue
index cdcc558..f444598 100644
--- a/src/components/plugin/SectionImage.vue
+++ b/src/components/plugin/SectionImage.vue
@@ -39,7 +39,7 @@
@@ -82,7 +82,7 @@ import MagicoModal from './../MagicoModal.vue'
export default {
props: {
- value: Object,
+ modelValue: Object,
},
data: function () {
return {
@@ -126,26 +126,26 @@ export default {
}
},
mounted: function () {
- console.log('mount image', this.value);
- this.alt = (this.value && this.value.alt) ? this.value.alt : this.alt;
- this.title = (this.value && this.value.title) ? this.value.title : this.title;
- this.name = (this.value && this.value.name) ? this.value.name : this.name;
- this.text = (this.value && this.value.text) ? this.value.text : this.text;
- this.width = (this.value && this.value.width) ? this.value.width : this.width;
- this.height = (this.value && this.value.height) ? this.value.height : this.height;
- this.ratio = (this.value && this.value.ratio) ? this.value.ratio : this.ratio;
- this.scale = (this.value && this.value.scale) ? this.value.scale : this.scale;
- this.href = (this.value && this.value.href) ? this.value.href : this.href;
- this.figcaption = (this.value && this.value.figcaption) ? this.value.figcaption : this.figcaption;
+ console.log('mount image', this.modelValue);
+ this.alt = (this.modelValue && this.modelValue.alt) ? this.modelValue.alt : this.alt;
+ this.title = (this.modelValue && this.modelValue.title) ? this.modelValue.title : this.title;
+ this.name = (this.modelValue && this.modelValue.name) ? this.modelValue.name : this.name;
+ this.text = (this.modelValue && this.modelValue.text) ? this.modelValue.text : this.text;
+ this.width = (this.modelValue && this.modelValue.width) ? this.modelValue.width : this.width;
+ this.height = (this.modelValue && this.modelValue.height) ? this.modelValue.height : this.height;
+ this.ratio = (this.modelValue && this.modelValue.ratio) ? this.modelValue.ratio : this.ratio;
+ this.scale = (this.modelValue && this.modelValue.scale) ? this.modelValue.scale : this.scale;
+ this.href = (this.modelValue && this.modelValue.href) ? this.modelValue.href : this.href;
+ this.figcaption = (this.modelValue && this.modelValue.figcaption) ? this.modelValue.figcaption : this.figcaption;
- if (this.value.open) this.modalBox = true;
+ if (this.modelValue.open) this.modalBox = true;
},
components: {
'b-modal': MagicoModal,
},
methods: {
removeItem: function () {
- this.$emit('itemRemoved', this.value);
+ this.$emit('itemRemoved', this.modelValue);
},
chooseImage: function () {
if (this.$filechooser) {
diff --git a/src/components/plugin/SectionText.vue b/src/components/plugin/SectionText.vue
index 9b82111..d2611cc 100644
--- a/src/components/plugin/SectionText.vue
+++ b/src/components/plugin/SectionText.vue
@@ -70,8 +70,9 @@ export default {
'b-modal': MagicoModal,
},
props: {
- value: Object
+ modelValue: Object
},
+ emits:['update:modelValue'],
data: function () {
return {
langs: {
@@ -91,19 +92,19 @@ export default {
}
},
mounted: function () {
- this.name = (this.value && this.value.name) ? this.value.name : this.name;
- this.text = (this.value && this.value.text) ? this.value.text : this.text;
- this.h_type = (this.value && this.value.h_type) ? this.value.h_type : this.h_type;
- this.align = (this.value && this.value.align) ? this.value.align : this.align;
- if (this.value.open) this.modalBox = true;
+ this.name = (this.modelValue && this.modelValue.name) ? this.modelValue.name : this.name;
+ this.text = (this.modelValue && this.modelValue.text) ? this.modelValue.text : this.text;
+ this.h_type = (this.modelValue && this.modelValue.h_type) ? this.modelValue.h_type : this.h_type;
+ this.align = (this.modelValue && this.modelValue.align) ? this.modelValue.align : this.align;
+ if (this.modelValue.open) this.modalBox = true;
console.log('mounted text');
- this.$emit('update:modelValue', this.value);
+ this.$emit('update:modelValue', this.modelValue);
},
methods: {
removeItem: function () {
- this.$emit('itemRemoved', this.value);
+ this.$emit('itemRemoved', this.modelValue);
},
onCloseModal: function () {
this.modalBox = false;
diff --git a/src/components/plugin/SectionTextarea.vue b/src/components/plugin/SectionTextarea.vue
index a01d902..cf651bd 100644
--- a/src/components/plugin/SectionTextarea.vue
+++ b/src/components/plugin/SectionTextarea.vue
@@ -8,11 +8,11 @@
create
-