pull/5136/head
mertsincan 2024-01-23 18:06:31 +00:00
parent 6862264318
commit 8f7ee3ac33
17 changed files with 21 additions and 42 deletions

View File

@ -79,7 +79,7 @@ export default {
this.d_activeIndex = newValue; this.d_activeIndex = newValue;
} }
}, },
beforeMount() { mounted() {
this.id = this.id || UniqueComponentId(); this.id = this.id || UniqueComponentId();
}, },
methods: { methods: {

View File

@ -223,10 +223,8 @@ export default {
this.autoUpdateModel(); this.autoUpdateModel();
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel(); this.autoUpdateModel();
}, },
updated() { updated() {

View File

@ -115,10 +115,8 @@ export default {
this.autoUpdateModel(); this.autoUpdateModel();
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel(); this.autoUpdateModel();
}, },
beforeUnmount() { beforeUnmount() {

View File

@ -76,10 +76,9 @@ export default {
} }
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
if (this.global) { if (this.global) {
this.bindDocumentContextMenuListener(); this.bindDocumentContextMenuListener();
} }

View File

@ -110,7 +110,7 @@ export default {
this.id = newValue || UniqueComponentId(); this.id = newValue || UniqueComponentId();
} }
}, },
beforeMount() { mounted() {
this.id = this.id || UniqueComponentId(); this.id = this.id || UniqueComponentId();
}, },
methods: { methods: {

View File

@ -215,10 +215,8 @@ export default {
this.autoUpdateModel(); this.autoUpdateModel();
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel(); this.autoUpdateModel();
this.bindLabelClickListener(); this.bindLabelClickListener();
}, },

View File

@ -155,10 +155,8 @@ export default {
this.autoUpdateModel(); this.autoUpdateModel();
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel(); this.autoUpdateModel();
}, },
methods: { methods: {

View File

@ -98,10 +98,8 @@ export default {
} }
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
this.bindMatchMediaListener(); this.bindMatchMediaListener();
}, },
beforeUnmount() { beforeUnmount() {

View File

@ -73,10 +73,9 @@ export default {
resizeListener: null, resizeListener: null,
container: null, container: null,
list: null, list: null,
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
if (!this.popup) { if (!this.popup) {
this.bindResizeListener(); this.bindResizeListener();
this.bindOutsideClickListener(); this.bindOutsideClickListener();

View File

@ -93,10 +93,8 @@ export default {
outsideClickListener: null, outsideClickListener: null,
container: null, container: null,
menubar: null, menubar: null,
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
this.bindMatchMediaListener(); this.bindMatchMediaListener();
}, },
beforeUnmount() { beforeUnmount() {

View File

@ -241,10 +241,8 @@ export default {
this.autoUpdateModel(); this.autoUpdateModel();
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel(); this.autoUpdateModel();
}, },
beforeUnmount() { beforeUnmount() {

View File

@ -116,10 +116,9 @@ export default {
this.reorderDirection = null; this.reorderDirection = null;
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
if (this.responsive) { if (this.responsive) {
this.createStyle(); this.createStyle();
} }

View File

@ -76,7 +76,7 @@ export default {
this.id = newValue || UniqueComponentId(); this.id = newValue || UniqueComponentId();
} }
}, },
beforeMount() { mounted() {
this.id = this.id || UniqueComponentId(); this.id = this.id || UniqueComponentId();
}, },
methods: { methods: {

View File

@ -276,7 +276,6 @@ export default {
this.destroyStyle(); this.destroyStyle();
this.destroyMedia(); this.destroyMedia();
}, },
beforeMount() {},
mounted() { mounted() {
this.id = this.id || UniqueComponentId(); this.id = this.id || UniqueComponentId();

View File

@ -84,10 +84,9 @@ export default {
this.d_visible = newValue; this.d_visible = newValue;
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
if (this.type !== 'linear') { if (this.type !== 'linear') {
const button = DomHandler.findSingle(this.container, '[data-pc-name="button"]'); const button = DomHandler.findSingle(this.container, '[data-pc-name="button"]');
const firstItem = DomHandler.findSingle(this.list, '[data-pc-section="menuitem"]'); const firstItem = DomHandler.findSingle(this.list, '[data-pc-section="menuitem"]');
@ -105,7 +104,7 @@ export default {
this.bindDocumentClickListener(); this.bindDocumentClickListener();
} }
}, },
beforeMount() { beforeUnmount() {
this.unbindDocumentClickListener(); this.unbindDocumentClickListener();
}, },
methods: { methods: {

View File

@ -121,10 +121,8 @@ export default {
this.scrollInView({ index: newValue }); this.scrollInView({ index: newValue });
} }
}, },
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() { mounted() {
this.id = this.id || UniqueComponentId();
this.updateInkBar(); this.updateInkBar();
this.scrollable && this.updateButtonState(); this.scrollable && this.updateButtonState();
}, },

View File

@ -85,7 +85,7 @@ export default {
} }
} }
}, },
beforeMount() { mounted() {
this.id = this.id || UniqueComponentId(); this.id = this.id || UniqueComponentId();
}, },
beforeUnmount() { beforeUnmount() {