mand-mobile/components/tabs
zouhang e6ad1009fd chore: update some ui 2021-08-31 16:31:46 +08:00
..
demo doc(tabs): fix double padding (#647) 2020-03-26 14:53:32 +08:00
test fix(tip): mark scrolling wrapper in ScrollView (#637) 2020-02-04 14:11:41 +08:00
README.en-US.md doc: update preview links 2019-01-29 16:31:24 +08:00
README.md doc: update preview links 2019-01-29 16:31:24 +08:00
component.js feat(code clean up): 2018-09-24 15:48:57 +08:00
index.vue chore: update some ui 2021-08-31 16:31:46 +08:00
tab-pane.vue fix(tabs,notice-bar): improve transition performance & improve notice-bar's performance with dynamic slot content (#631) 2019-12-26 11:08:23 +08:00

README.en-US.md

title preview
Tabs https://didi.github.io/mand-mobile/examples/#/tabs

To create a tab page with a content area

Import

import { Tabs, TabPane } from 'mand-mobile'

Vue.component(Tabs.name, Tabs)
Vue.component(TabPane.name, TabPane)

Code Examples

API

Tabs Props

Props Description Type Default Note
v-model name of selected tab String - -
immediate trigger a change event immediately after initialization Boolean false -

TabPane Props

Props Description Type Default Note
name unique name String - required
label tab label String - required
disabled disable pane Boolean false -

Tabs Methods

reflowTabBar()

relayout tabbar

Tabs Events

@change(tab)

when user select tab

Props Description Type
tab object of selected tab Object:{name: String, label: String, disabled: Boolean}