<template>
    <div>
        <div class="el-tab">
            <el-tabs v-model="activeName" @tab-click="handleClick">
                <el-tab-pane label="设备配置" name="deviceConfig"></el-tab-pane>
                <el-tab-pane label="设备告警" name="deviceWarning"></el-tab-pane>
            </el-tabs>
        </div>
        <router-view></router-view>
    </div>
</template>

<script >
export default {
    data() {
        return {
            activeName: 'deviceConfig',
        }
    },
    methods: {
        handleClick() {
            //
        },
    }
};
</script>
<style lang="less" scoped>
.el-tab {
    position: absolute;
    left: 218px;
    right: 16px;
    top: 77px;
    height: 51px;
    line-height: 20px;
    background-color: rgba(255, 255, 255, 1);
    text-align: center;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);

    /deep/.el-tabs__nav {
        left: 25px;
    }

    /deep/.el-tabs__nav-wrap::after {
        height: 0;
    }
}
</style>