Fix #5412 - Twice render if attribute id not defined

This commit is contained in:
i7slegend 2024-03-27 05:37:32 +03:00
parent 7c2e3eac7e
commit 3a134dd561
30 changed files with 162 additions and 131 deletions

View file

@ -68,12 +68,12 @@ export default {
};
},
watch: {
'$attrs.name': function (newValue) {
this.name = newValue || UniqueComponentId();
}
},
mounted() {
this.name = this.name || UniqueComponentId();
'$attrs.name': {
immediate: true,
handler: function (newValue) {
this.name = newValue || UniqueComponentId();
},
},
},
methods: {
getPTOptions(key, value) {