<template>
<el-tabs v-bind="$attrs" v-on="$listeners" :tab-position="tabPosition">
<slot></slot>
</el-tabs>
</template>
<script>
export default {
props: {
// top/right/bottom/left
tabPosition: {
type: String,
default: "top",
required: false
}
},
data() {
return {};
}
};
</script>
<style scoped lang="less">
::v-deep .el-tabs__content {
height: calc(100% - 42px);
.el-tab-pane {
height: 100%;
box-sizing: border-box;
}
}
</style>