Tab
Tab component
Basic Usage
Combine er-tab with er-tab-panel, and you'll get a tabs component. You can set the current active by v-model property . You also can change the size or type by set the property.
1
2
3
4
Different size
To change the display size to small large, you can set the size property. The default size is default.
1
2
3
4
Different Position
1
2
3
4
Different type
You can set the type card border-card to change the showMode
1
2
3
4
Tabs API
Tabs Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| v-model | Set the active Tab | string | number | - |
| size | Set the size | 'large' | 'small' | 'default' | default |
| type | Set the show Mode | 'card' | 'border-card' | - |
| tabPosition | Set the tabs direction | 'left' | 'right' | 'top' | 'bottom' | top |
Tabs Event
| Name | Description | Parameters |
|---|---|---|
| tab-click | trigger it when click the tab | item: Children, index: number |
TabsPanel Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| label | Set show tab title | string | - |
| name | Set the unqiue value of the tab | string | - |