|
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 ( |
@@ -108,20 +108,20 @@ export default class ButtonView extends React.Component<ButtonViewProps> { |
108 | 108 | <Button color="#f6f8fa">自定义颜色{'color="#f6f8fa"'}</Button> |
109 | 109 | </Card> |
110 | 110 | <Card title="文本样式"> |
111 | | - <Button textStyle={{fontSize: 20}} color="yellow"> |
| 111 | + <Button textStyle={{ fontSize: 20 }} color="yellow"> |
112 | 112 | 字号调整{'textStyle = {{fontSize:20}}'} |
113 | 113 | </Button> |
114 | 114 | <Spacing /> |
115 | | - <Button textStyle={{color: 'blue'}}> |
| 115 | + <Button textStyle={{ color: 'blue' }}> |
116 | 116 | 文本颜色{'textStyle={{color:"blue"}}'} |
117 | 117 | </Button> |
118 | 118 | <Spacing /> |
119 | | - <Button color="#f6f8fa" textStyle={{letterSpacing: 2}}> |
| 119 | + <Button color="#f6f8fa" textStyle={{ letterSpacing: 2 }}> |
120 | 120 | 文本间距{'textStyle={{letterSpacing:3}}'} |
121 | 121 | </Button> |
122 | 122 | </Card> |
123 | 123 | <Card title="设置边框"> |
124 | | - <Button bordered={false} color="#f6f8fa"> |
| 124 | + <Button bordered={false} color="#f6f8fa" > |
125 | 125 | 不显示边框{'bordered={false}'} |
126 | 126 | </Button> |
127 | 127 | <Spacing /> |
|
0 commit comments