<template>
  <tenant-page>
    <template #default="{ group }">
      <div class="l-flex__auto l-flex--col">
        <el-tabs
          v-model="active"
          class="c-tabs has-bottom-padding"
        >
          <el-tab-pane
            label="设备"
            name="Device"
          />
          <el-tab-pane
            label="屏幕配置"
            name="Product"
          />
          <el-tab-pane
            label="屏幕类型"
            name="ProductType"
          />
        </el-tabs>
        <component
          :is="active"
          :key="active"
          :tenant="group.path"
        />
      </div>
    </template>
  </tenant-page>
</template>

<script>
import ProductType from './components/ProductType'
import Product from './components/Product'
import Device from './components/Device'

export default {
  name: 'TenantDeviceManagement',
  components: {
    ProductType,
    Product,
    Device
  },
  data () {
    return {
      active: 'Device'
    }
  }
}
</script>
