fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "magico-pagebuilder",
|
"name": "magico-pagebuilder",
|
||||||
"version": "0.0.13",
|
"version": "0.0.14",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ export default {
|
|||||||
modalSave: false,
|
modalSave: false,
|
||||||
modalLoad: false,
|
modalLoad: false,
|
||||||
descriptionAllegro: false,
|
descriptionAllegro: false,
|
||||||
ownUpdate: false
|
ownUpdate:false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: ['name', 'modelValue', 'showcopy', 'lang'],
|
props: ['name', 'modelValue', 'showcopy', 'lang'],
|
||||||
@@ -220,9 +220,9 @@ export default {
|
|||||||
console.log('nq', newQuestion)
|
console.log('nq', newQuestion)
|
||||||
},
|
},
|
||||||
modelValue: function () {
|
modelValue: function () {
|
||||||
if (this.ownUpdate) {
|
if(this.ownUpdate){
|
||||||
this.ownUpdate = false
|
this.ownUpdate=false;
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.comps = JSON.parse(trimmed)
|
this.comps = JSON.parse(trimmed)
|
||||||
@@ -240,7 +240,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange: function () {
|
onChange: function () {
|
||||||
this.ownUpdate = true
|
this.ownUpdate=true;
|
||||||
this.$emit('update:modelValue', JSON.stringify(this.comps))
|
this.$emit('update:modelValue', JSON.stringify(this.comps))
|
||||||
this.$emit('change')
|
this.$emit('change')
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user