ant-design-vue/components/tabs/demo/extra.md

21 lines
472 B
Markdown
Raw Normal View History

2018-03-22 14:17:35 +00:00
<cn>
#### 附加内容
可以在页签右边添加附加操作。
</cn>
<us>
#### Extra content
You can add extra actions to the right of Tabs.
</us>
```html
<template>
<a-tabs>
<a-tab-pane tab="Tab 1" key="1">Content of tab 1</a-tab-pane>
<a-tab-pane tab="Tab 2" key="2">Content of tab 2</a-tab-pane>
<a-tab-pane tab="Tab 3" key="3">Content of tab 3</a-tab-pane>
<a-button slot="tabBarExtraContent">Extra Action</a-button>
</a-tabs>
</template>
```