mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
25 lines
730 B
Vue
25 lines
730 B
Vue
|
<template>
|
||
|
<el-radio-group v-model="tabPosition" style="margin-bottom: 30px">
|
||
|
<el-radio-button label="top">top</el-radio-button>
|
||
|
<el-radio-button label="right">right</el-radio-button>
|
||
|
<el-radio-button label="bottom">bottom</el-radio-button>
|
||
|
<el-radio-button label="left">left</el-radio-button>
|
||
|
</el-radio-group>
|
||
|
|
||
|
<el-tabs :tab-position="tabPosition" style="height: 200px">
|
||
|
<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">
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
tabPosition: 'left',
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
</script>
|