update Tabs

@hezhiying
This commit is contained in:
梁灏 2017-03-27 15:24:48 +08:00
parent 02fa0d3fff
commit 8e4f708f25
2 changed files with 6 additions and 6 deletions

View file

@ -9,8 +9,8 @@
</Col>
<Col :span="12">
<Tabs type="card" closable @on-tab-remove="handleTagRemove">
<Tab-pane :label="tab.label" v-for="tab of tabs">{{tab.content}}</Tab-pane>
<Button size="small" slot="right" @click="addTab">添加</Button>
<Tab-pane :label="tab.label" v-for="tab of tabs" :key="tab">{{tab.content}}</Tab-pane>
<Button size="small" slot="extra" @click="addTab">添加</Button>
</Tabs>
</Col>
</Row>