<template>
  <div class="tab-pane" v-show="active">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "PsTabs",
  props: {
    name: {
      type: String,
      default: "",
    },
    link: {
      type: String,
      default: "",
    }
  },
  data() {
    return {
      // name: 123,
      isParantActive: {},
    };
  },
  created() {},
  computed: {
    active() {
      const active = this.$parent.isActive.name === this.name;
      // if (active) {
      //   this.loaded = true;
      // }
      return active;
    },
  },
  mounted() {},
  methods: {},
};
</script>

<style>
</style>
