mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
23 lines
543 B
Vue
23 lines
543 B
Vue
|
<template>
|
||
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||
|
<el-tab-pane label="User" name="first">User</el-tab-pane>
|
||
|
<el-tab-pane label="Config" name="second">Config</el-tab-pane>
|
||
|
<el-tab-pane label="Role" name="third">Role</el-tab-pane>
|
||
|
<el-tab-pane label="Task" name="fourth">Task</el-tab-pane>
|
||
|
</el-tabs>
|
||
|
</template>
|
||
|
<script lang="ts">
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
activeName: 'first',
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
handleClick(tab, event) {
|
||
|
console.log(tab, event)
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
</script>
|