<script lang="ts" setup>
import SecondHeader from "@/views/modules/conmon/SecondHeader.vue";
import GlobalInstrument from "./components/GlobalInstrument.vue";

const activeName = ref("测试仪器");
const handleClick = (tab: any, event: Event) => {
  // console.log(tab, event);
};
</script>

<template>
  <div class="global-config">
    <SecondHeader>仪器配置</SecondHeader>

    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="测试仪器" name="测试仪器">
        <GlobalInstrument></GlobalInstrument>
      </el-tab-pane>
      <el-tab-pane label="执行终端" name="执行终端">
        <GlobalInstrument property="2"></GlobalInstrument
      ></el-tab-pane>
    </el-tabs>
  </div>
</template>

<style scoped lang="scss">
.global-config {
  width: 100%;
  height: 100vh;
  .demo-tabs {
    // background-color: red;
    :deep(.el-tabs__nav-scroll) {
      padding: 0 20px;
    }
  }
}
.add {
  width: 12px;
  height: 12px;
  line-height: 12px;
  border-radius: 12px;
  text-align: center;
  background-color: #fff;
  color: #3b7cff;
  margin-right: 10px;
  vertical-align: middle;
}
.btns {
  text-align: start;
  margin: 12px;
}
</style>
