File tree Expand file tree Collapse file tree 3 files changed +17
-16
lines changed Expand file tree Collapse file tree 3 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export default {
21
21
] ,
22
22
] ,
23
23
publicPath : '/code-river-pc/' ,
24
+ theme :'./src/theme.js' ,
24
25
history : 'hash' ,
25
26
cssLoaderOptions : { } ,
26
27
alias : {
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
- import { Card } from 'antd' ;
2
+ import { Card , Button , Tabs } from 'antd' ;
3
3
import { connect } from 'dva' ;
4
4
import * as styles from './static/style.less' ;
5
5
@@ -9,6 +9,8 @@ import Input from 'component/common/Input';
9
9
import Popover from 'component/common/Popover' ;
10
10
import Select from 'component/common/Select' ;
11
11
12
+ const { TabPane } = Tabs
13
+
12
14
@connect ( ( { displayModel } ) => ( {
13
15
displayModel,
14
16
} ) )
@@ -37,6 +39,19 @@ export default class Display extends Component<any> {
37
39
< Card title = " input输入框" >
38
40
< Input />
39
41
</ Card >
42
+
43
+ < Card title = "Button 按钮" >
44
+ < Button type = "primary" style = { { marginRight : '8px' } } > 确定</ Button >
45
+ < Button > 取消</ Button >
46
+ </ Card >
47
+
48
+ < Card title = "Tabs 标签页" >
49
+ < Tabs defaultActiveKey = "1" >
50
+ < TabPane tab = "Tab 1" key = "1" > Content of Tab Pane 1</ TabPane >
51
+ < TabPane tab = "Tab 2" key = "2" > Content of Tab Pane 2</ TabPane >
52
+ < TabPane tab = "Tab 3" key = "3" > Content of Tab Pane 3</ TabPane >
53
+ </ Tabs >
54
+ </ Card >
40
55
</ div >
41
56
) ;
42
57
}
Original file line number Diff line number Diff line change 1
- import Button from '@material-ui/core/Button' ;
2
- import styles from '../style.less' ;
3
-
4
- function Index ( { onClick } ) {
5
- return (
6
- < Button
7
- variant = "contained"
8
- className = { styles . crButton }
9
- onClick = { onClick }
10
- >
11
- 登录
12
- </ Button >
13
- ) }
14
-
15
- export default Index
You can’t perform that action at this time.
0 commit comments