D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
3023067
/
cwd
/
www
/
vendor
/
opcodesio
/
log-viewer
/
resources
/
js
/
components
/
Filename :
TabContent.vue
back
Copy
<template> <div v-if="isSelected"> <slot></slot> </div> </template> <script setup> import {computed, inject} from "vue"; const props = defineProps({ tabValue: { type: String, required: true, }, }) const currentTab = inject('currentTab'); const isSelected = computed(() => { return currentTab.value && currentTab.value.value === props.tabValue; }) </script>