| 123456789101112131415161718192021222324252627282930 |
- import React from 'react';
- import Tabs from '../index';
- import TabPane from '../TabPane';
- const Demo = () => {
- const tabPaneList = [
- 'a',
- 'b',
- 'c'
- ];
- return (
- <div>
- <Tabs defaultActiveKey="1"
- tabPaneMotion>
- {
- tabPaneList.map((item, index) => {
- return (
- <TabPane tab={item} itemKey={index.toString()} key={item}>
- { item + index }
- </TabPane>
- )
- })
- }
- </Tabs>
- </div>
- )
- }
- export default Demo
|