<template>
  <div class="es-tabs-panel">
    <slot v-bind="$attrs" :show="show" :isShow="isShow"></slot>
  </div>
</template>

<script>
export default {
  name: 'EsTabsPanel',
  inheritAttrs: false,
  props: {
    show: Boolean
  },
  watch: {
    show: {
      immediate: true,
      handler(val) {
        val && (this.isShow = true);
      }
    }
  },
  data() {
    return {
      isShow: false
    };
  },
  mounted() {}
};
</script>
