claude-web/node_modules/primevue/tabs/Tabs.vue

38 lines
759 B
Vue
Raw Permalink Normal View History

2026-02-23 02:23:38 +00:00
<template>
<div :class="cx('root')" v-bind="ptmi('root')">
<slot></slot>
</div>
</template>
<script>
import BaseTabs from './BaseTabs.vue';
export default {
name: 'Tabs',
extends: BaseTabs,
inheritAttrs: false,
emits: ['update:value'],
data() {
return {
d_value: this.value
};
},
watch: {
value(newValue) {
this.d_value = newValue;
}
},
methods: {
updateValue(newValue) {
if (this.d_value !== newValue) {
this.d_value = newValue;
this.$emit('update:value', newValue);
}
},
isVertical() {
return this.orientation === 'vertical';
}
}
};
</script>