Commit 8b535568 authored by fireyy's avatar fireyy

docs improve: el-tabs demo

parent 947b837f
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
```html ```html
<template> <template>
<el-tabs> <el-tabs :active-name="activeName">
<el-tab-pane v-for="tab in tabs" :label="tab.label">{{tab.content}}</el-tab-pane> <el-tab-pane v-for="tab in tabs" :label="tab.label" :name="tab.name">{{tab.content}}</el-tab-pane>
</el-tabs> </el-tabs>
</template> </template>
<script> <script>
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
data() { data() {
return { return {
tabs: [ tabs: [
{label: '用户管理', content: ''}, {label: '用户管理', content: '', name: 'first'},
{label: '配置管理', content: ''}, {label: '配置管理', content: '', name: 'second'},
{label: '角色管理', content: ''}, {label: '角色管理', content: '', name: 'third'},
{label: '定时任务补偿', content: ''} {label: '定时任务补偿', content: '', name: 'last'}
] ]
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment