input emit, wymuszeni doswiezenia pola bo usuwa z globalnej zmiennej
This commit is contained in:
@@ -40,6 +40,7 @@ export default {
|
|||||||
this.name = (this.value && this.value.name) ? this.value.name : this.name;
|
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.text = (this.value && this.value.text) ? this.value.text : this.text;
|
||||||
if (this.value.open) this.modalBox = true;
|
if (this.value.open) this.modalBox = true;
|
||||||
|
this.$emit('input',this.value);
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -78,6 +78,8 @@ export default {
|
|||||||
this.align = (this.value && this.value.align) ? this.value.align : this.align;
|
this.align = (this.value && this.value.align) ? this.value.align : this.align;
|
||||||
if (this.value.open) this.modalBox = true;
|
if (this.value.open) this.modalBox = true;
|
||||||
console.log('pagebuilder', this.$pagebuilder);
|
console.log('pagebuilder', this.$pagebuilder);
|
||||||
|
this.$emit('input',this.value);
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
removeItem: function () {
|
removeItem: function () {
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ export default {
|
|||||||
this.name = (this.value && this.value.name) ? this.value.name : this.name;
|
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.text = (this.value && this.value.text) ? this.value.text : this.text;
|
||||||
if (this.value.open) this.modalBox = true;
|
if (this.value.open) this.modalBox = true;
|
||||||
|
this.$emit('input',this.value);
|
||||||
|
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user