|
1 | 1 | import React from 'react'; |
2 | | -import { View, Text } from 'react-native'; |
3 | | -import { Button, Spacing, Icon, Flex } from '@uiw/react-native'; |
4 | | -import { ComProps } from '../../routes'; |
5 | | -import Layout, { Container } from '../../Layout'; |
6 | | -const { Header, Body, Card, Footer } = Layout; |
| 2 | +import {View, Text} from 'react-native'; |
| 3 | +import {Button, Spacing, Icon, Flex} from '@uiw/react-native'; |
| 4 | +import {ComProps} from '../../routes'; |
| 5 | +import Layout, {Container} from '../../Layout'; |
| 6 | +const {Header, Body, Card, Footer} = Layout; |
7 | 7 |
|
8 | | -export interface ButtonViewProps extends ComProps { } |
| 8 | +export interface ButtonViewProps extends ComProps {} |
9 | 9 |
|
10 | 10 | export default class ButtonView extends React.Component<ButtonViewProps> { |
11 | 11 | render() { |
12 | | - const { route } = this.props; |
| 12 | + const {route} = this.props; |
13 | 13 | const description = route.params.description; |
14 | 14 | const title = route.params.title; |
15 | 15 | return ( |
16 | 16 | <Container> |
17 | 17 | <Layout> |
18 | 18 | <Header title={title} description={description} /> |
19 | | - <Body style={{ paddingLeft: 16, paddingRight: 16 }}> |
| 19 | + <Body style={{paddingLeft: 16, paddingRight: 16}}> |
20 | 20 | <Card title="基础实例"> |
21 | 21 | <Flex> |
22 | 22 | <Button type="primary">蓝色按钮</Button> |
@@ -104,23 +104,23 @@ export default class ButtonView extends React.Component<ButtonViewProps> { |
104 | 104 | <Button color="#a63d2c">自定义颜色{'color="#a63d2c"'}</Button> |
105 | 105 | </Card> |
106 | 106 | <Card title="文本样式"> |
107 | | - <Button textStyle={{ fontSize: 20 }} color="yellow"> |
| 107 | + <Button textStyle={{fontSize: 20}} color="yellow"> |
108 | 108 | 字号调整{'textStyle = {{fontSize:20}}'} |
109 | 109 | </Button> |
110 | 110 | <Spacing /> |
111 | | - <Button textStyle={{ color: 'blue' }}>文本颜色{'textStyle={{color:"blue"}}'}</Button> |
| 111 | + <Button textStyle={{color: 'blue'}}>文本颜色{'textStyle={{color:"blue"}}'}</Button> |
112 | 112 | <Spacing /> |
113 | | - <Button color="#a63d2c" textStyle={{ letterSpacing: 2 }}> |
| 113 | + <Button color="#a63d2c" textStyle={{letterSpacing: 2}}> |
114 | 114 | 文本间距{'textStyle={{letterSpacing:3}}'} |
115 | 115 | </Button> |
116 | 116 | </Card> |
117 | 117 | <Card title="设置边框"> |
118 | | - <Button bordered={false} color="#dc3545"> |
119 | | - 不显示边框{'bordered={false}'} |
| 118 | + <Button bordered={true} color="#ffc107"> |
| 119 | + 显示边框{'bordered={false}'} |
120 | 120 | </Button> |
121 | 121 | <Spacing /> |
122 | | - <Button bordered={true} color="#28a745"> |
123 | | - 不显示边框{'bordered={false}'} |
| 122 | + <Button bordered={true} color="#1EABCD"> |
| 123 | + 显示边框{'bordered={false}'} |
124 | 124 | </Button> |
125 | 125 | </Card> |
126 | 126 | <Card title="显示图标"> |
|
0 commit comments