0.7.2 • Published 7 years ago
uxcore-tabs v0.7.2
uxcore-tabs
--
TL;DR
tab ui component for react
setup develop environment
$ git clone https://github.com/uxcore/uxcore-tabs
$ cd uxcore-tabs
$ npm install
$ gulp server
Usage
var Tabs = require('uxcore-tabs');
var TabPane = Tabs.TabPane;
var callback = function(key){
}
React.render(
(
<Tabs defaultActiveKey="2" onChange={callback}>
<TabPane tab='tab 1' key="1">first</TabPane>
<TabPane tab='tab 2' key="2">second</TabPane>
<TabPane tab='tab 3' key="3">third</TabPane>
</Tabs>
),
document.getElementById('demo'));
demo
见 http://uxcore.github.io/uxcore/components/tabs/
API
Tabs
name | type | default | description |
---|---|---|---|
activeKey | String | current active tabPanel's key | |
defaultActiveKey | String | first active tabPanel's key | initial active tabPanel's key if activeKey is absent |
onChange | Function | (key) | called when tabPanel is changed |
onTabClick | Function | (key) | called when tab is clicked |
destroyInactiveTabPane | Boolean | false | whether destroy inactive tabpane when change tab |
type | string | large | large small filter brick open |
animated | boolean | true | whether have animation effect when switch tab |
tabBarPosition | string | top | top bottom left right |
extraContent | ReactNode | null | the extra content on tab bar |
tabBarStyle | object | {} | TabBar's style |
tabContentStyle | object | {} | TabContent's style |
TabPane
name | type | default | description |
---|---|---|---|
key | Object | corresponding to activeKey | |
tab | String | current tab's title corresponding to current tabPane |
0.7.2
7 years ago
0.7.1
7 years ago
0.7.0
7 years ago
0.6.13
7 years ago
0.6.12
8 years ago
0.6.11
8 years ago
0.6.10
8 years ago
0.6.9
8 years ago
0.6.8
8 years ago
0.6.7
8 years ago
0.6.6
8 years ago
0.6.5
8 years ago
0.6.4
8 years ago
0.6.3
8 years ago
0.6.2
9 years ago
0.6.1
9 years ago
0.6.0
9 years ago
0.5.6
9 years ago
0.5.5
9 years ago
0.5.4
9 years ago
0.5.3
9 years ago
0.5.2
9 years ago
0.5.1
9 years ago
0.5.0
9 years ago
0.4.5
9 years ago
0.4.4
9 years ago
0.4.3
9 years ago
0.4.2
9 years ago
0.4.1
9 years ago
0.4.0
10 years ago
0.2.5
10 years ago
0.2.4
10 years ago
0.3.0
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago