mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 20:58:22 +08:00
36 lines
822 B
Vue
36 lines
822 B
Vue
<template>
|
|
<el-tabs type="border-card" class="demo-tabs">
|
|
<el-tab-pane>
|
|
<template #label>
|
|
<span class="custom-tabs-label">
|
|
<el-icon><calendar /></el-icon>
|
|
<span>Route</span>
|
|
</span>
|
|
</template>
|
|
Route
|
|
</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 { Calendar } from '@element-plus/icons-vue'
|
|
</script>
|
|
<style>
|
|
.demo-tabs > .el-tabs__content {
|
|
padding: 32px;
|
|
color: #6b778c;
|
|
font-size: 32px;
|
|
font-weight: 600;
|
|
}
|
|
.demo-tabs .custom-tabs-label .el-icon {
|
|
vertical-align: middle;
|
|
}
|
|
.demo-tabs .custom-tabs-label span {
|
|
vertical-align: middle;
|
|
margin-left: 4px;
|
|
}
|
|
</style>
|