<template>
  <div class="manage-container">
    <vab-query-form>
      <el-input v-model="input" placeholder="请输入内容"></el-input>
      <el-button type="primary" icon="el-icon-search"></el-button>
      <el-button type="primary">创建组态</el-button>
    </vab-query-form>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="已发布组态" name="first">
        <el-row :gutter="20">
          <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
        </el-row>
      </el-tab-pane>
      <el-tab-pane label="待发布组态" name="second">配置管理</el-tab-pane>
      <el-tab-pane label="组态素材库" name="third">角色管理</el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  name: 'Addproject',
  data() {
    return {
      input: '',
      activeName: 'second',
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>

<style lang="scss" scoped>
.manage-container {
  width: 100%;

  .vab-query-form {
    margin-bottom: 30px;

    .el-input {
      width: 180px;

      .el-input_inner {
        border-radius: 2.5px 0 0 2.5px;
        border-right: none !important;
      }
    }

    .el-button--small {
      border-radius: 0 2.5px 2.5px 0 !important;
    }
  }
}
</style>
