<template>
  <PageWrapper dense fixedHeight contentFullHeight>
    <a-tabs v-model:activeKey="activeKey" destroyInactiveTabPane>
      <a-tab-pane key="1" tab="物料类别配置">
        <MaterialCategory />
      </a-tab-pane>
      <a-tab-pane key="2" tab="物料属性配置">
        <MaterialProperty />
      </a-tab-pane>
    </a-tabs>
  </PageWrapper>
</template>
<script lang="ts" setup>
  import { ref } from 'vue';
  import { PageWrapper } from '/@/components/Page';
  import MaterialCategory from './components/MaterialCategory.vue';
  import MaterialProperty from './components/MaterialProperty.vue';

  const activeKey = ref('1');
</script>
<style lang="less" scoped>
  :deep(.ant-tabs) {
    background: #fff;
    border-radius: 16px;
    height: 100%;

    .ant-tabs-nav {
      margin-bottom: 0;
      height: 50px;

      .ant-tabs-tab {
        padding: 18px 16px;

        & + .ant-tabs-tab {
          margin: 0;
        }
      }
    }
  }
</style>
