File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
example/examples/src/routes/Button Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -16,29 +16,29 @@ export default class ButtonView extends React.Component<ButtonViewProps> {
16
16
< Container >
17
17
< Layout >
18
18
< Header title = { title } description = { description } />
19
- < Body >
19
+ < Body style = { { padding : 15 } } >
20
20
< Card title = "基础实例" >
21
21
< Flex >
22
- < Button type = "primary" > 默认按钮 </ Button >
22
+ < Button type = "primary" > 蓝色按钮 </ Button >
23
23
< Spacing type = "horizontal" />
24
- < Button > 默认按钮 </ Button >
24
+ < Button > 主题色按钮 </ Button >
25
25
< Spacing type = "horizontal" />
26
- < Button > 按钮 </ Button >
26
+ < Button type = "success" > 绿色按钮 </ Button >
27
27
</ Flex >
28
28
< Spacing />
29
- < Button > 默认按钮 </ Button >
29
+ < Button > 主题色按钮 </ Button >
30
30
< Spacing />
31
- < Button disabled > 默认禁用按钮 </ Button >
31
+ < Button disabled > 禁用按钮 </ Button >
32
32
< Spacing />
33
33
< Button type = "primary" > 主要按钮 primary </ Button >
34
34
< Spacing />
35
- < Button type = "danger" disabled >
35
+ < Button type = "danger" >
36
36
错误按钮 danger
37
37
</ Button >
38
38
< Spacing />
39
39
< Button type = "success" > 成功按钮 success</ Button >
40
40
< Spacing />
41
- < Button type = "warning" disabled >
41
+ < Button type = "warning" >
42
42
警告禁用按钮 warning
43
43
</ Button >
44
44
< Spacing />
@@ -50,14 +50,14 @@ export default class ButtonView extends React.Component<ButtonViewProps> {
50
50
亮按钮 light
51
51
</ Button >
52
52
< Spacing />
53
- < Button type = "dark" loading disabled >
53
+ < Button type = "dark" loading >
54
54
暗按钮 dark
55
55
</ Button >
56
56
< Spacing />
57
- < Button loading > 默认按钮 </ Button >
57
+ < Button loading > 主题色按钮 </ Button >
58
58
< Spacing />
59
59
< Button loading disabled >
60
- 默认按钮 禁用
60
+ 主题色按钮 禁用
61
61
</ Button >
62
62
</ Card >
63
63
< Card title = "按钮圆角设置" >
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default function ButtonView<T>(props: ButtonProps) {
85
85
}
86
86
if ( disabled ) {
87
87
textColor = colorF ( theme . colors . disabled ) . alpha ( 0.1 ) . rgb ( ) . string ( ) ;
88
- backgroundColor = colorF ( backgroundColor ) . rgb ( ) . string ( ) ;
88
+ backgroundColor = colorF ( theme . colors . disabled ) . rgb ( ) . string ( ) ;
89
89
}
90
90
if ( buttonColor ) {
91
91
backgroundColor = colorF ( buttonColor ) . rgb ( ) . string ( ) ;
You can’t perform that action at this time.
0 commit comments