mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-16 03:53:39 +08:00

* perf: change to import-x * feat: add rules * chore: fix rule * chore: fix * chore: fix * chore: fix * style: `pnpm lint:fix` * Revert "style: `pnpm lint:fix`" This reverts commit db0116a288299c507e3cfc4d7a22e2207265d920. * Revert "chore: fix" This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318. * chore: fix * style: `pnpm lint:fix` * fix: lint * chore: `pnpm format`
38 lines
1.0 KiB
Vue
38 lines
1.0 KiB
Vue
<template>
|
|
<el-radio-group v-model="tabPosition" style="margin-bottom: 30px">
|
|
<el-radio-button value="top">top</el-radio-button>
|
|
<el-radio-button value="right">right</el-radio-button>
|
|
<el-radio-button value="bottom">bottom</el-radio-button>
|
|
<el-radio-button value="left">left</el-radio-button>
|
|
</el-radio-group>
|
|
|
|
<el-tabs :tab-position="tabPosition" style="height: 200px" class="demo-tabs">
|
|
<el-tab-pane label="User">User</el-tab-pane>
|
|
<el-tab-pane label="Config">Config</el-tab-pane>
|
|
<el-tab-pane label="Role">Role</el-tab-pane>
|
|
<el-tab-pane label="Task">Task</el-tab-pane>
|
|
</el-tabs>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
import type { TabsInstance } from 'element-plus'
|
|
|
|
const tabPosition = ref<TabsInstance['tabPosition']>('left')
|
|
</script>
|
|
|
|
<style>
|
|
.demo-tabs > .el-tabs__content {
|
|
padding: 32px;
|
|
color: #6b778c;
|
|
font-size: 32px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.el-tabs--right .el-tabs__content,
|
|
.el-tabs--left .el-tabs__content {
|
|
height: 100%;
|
|
}
|
|
</style>
|