Tabs.vue 487 Bytes
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<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>