refactor: #7090 for Tabs

pull/7064/merge
Mert Sincan 2025-01-14 11:13:25 +00:00
parent 60c596db96
commit 0252af5a20
1 changed files with 0 additions and 8 deletions

View File

@ -5,7 +5,6 @@
</template>
<script>
import { UniqueComponentId } from '@primevue/core/utils';
import BaseTabs from './BaseTabs.vue';
export default {
@ -15,21 +14,14 @@ export default {
emits: ['update:value'],
data() {
return {
id: this.$attrs.id,
d_value: this.value
};
},
watch: {
'$attrs.id'(newValue) {
this.id = newValue || UniqueComponentId();
},
value(newValue) {
this.d_value = newValue;
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
updateValue(newValue) {
if (this.d_value !== newValue) {