-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,24 @@ | ||
<template> | ||
<div style="width: 500px"> | ||
<el-tabs v-model="activeName" tab-position="left" style="height: 500px"> | ||
<el-tab-pane name="1" lazy closable> | ||
<template v-slot:label> | ||
<span><i class="el-icon-date"></i> 我的行程</span> | ||
</template> | ||
我的行程 | ||
</el-tab-pane> | ||
<el-tab-pane name="2" lazy label="消息中心">消息中心</el-tab-pane> | ||
<el-tab-pane name="3" label="角色管理">角色管理</el-tab-pane> | ||
<el-tab-pane name="4" label="定时任务补偿">定时任务补偿</el-tab-pane> | ||
<el-tab-pane name="5" label="定时任务补偿">定时任务补偿</el-tab-pane> | ||
<el-tab-pane name="6" label="定时任务补偿">定时任务补偿</el-tab-pane> | ||
<el-tab-pane name="7" label="定时任务补偿">定时任务补偿</el-tab-pane> | ||
<el-tab-pane name="8" label="定时任务补偿">定时任务补偿</el-tab-pane> | ||
<el-tab-pane name="9" label="定时任务补偿">定时任务补偿</el-tab-pane> | ||
<el-tab-pane name="10" label="定时任务补偿">定时任务补偿</el-tab-pane> | ||
<el-tab-pane name="11" label="定时任务补偿1">定时任务补偿1</el-tab-pane> | ||
</el-tabs> | ||
</div> | ||
<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="用户管理">用户管理</el-tab-pane> | ||
<el-tab-pane label="配置管理">配置管理</el-tab-pane> | ||
<el-tab-pane label="角色管理">角色管理</el-tab-pane> | ||
<el-tab-pane label="定时任务补偿">定时任务补偿</el-tab-pane> | ||
</el-tabs> | ||
</template> | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
activeName: '1', | ||
tabPosition: 'top' | ||
}; | ||
}, | ||
watch:{ | ||
activeName(v){ | ||
console.log('activeName :>> ', v); | ||
} | ||
}, | ||
methods: { | ||
handleClick(tab, event) { | ||
console.log(tab, event); | ||
}, | ||
edit(name, action){ | ||
console.log(name) | ||
console.log(action) | ||
}, | ||
async beforeLeave(){ | ||
console.log(arguments) | ||
throw "e" | ||
} | ||
}, | ||
mounted(){ | ||
setTimeout(() => { | ||
this.activeName = '3' | ||
}, 3000); | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters