input emit, wymuszeni doswiezenia pola bo usuwa z globalnej zmiennej

This commit is contained in:
2022-06-28 10:36:22 +02:00
parent 9352dd3633
commit b9ec183258
3 changed files with 5 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ export default {
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.$emit('input',this.value);
},
data: function () {
return {

View File

@@ -78,6 +78,8 @@ export default {
this.align = (this.value && this.value.align) ? this.value.align : this.align;
if (this.value.open) this.modalBox = true;
console.log('pagebuilder', this.$pagebuilder);
this.$emit('input',this.value);
},
methods: {
removeItem: function () {

View File

@@ -43,6 +43,8 @@ export default {
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.$emit('input',this.value);
},
data: function () {
return {