11import React from 'react' ;
2- import { List , CheckBox } from '@uiw/react-native' ;
3- import { ComProps } from '../../routes' ;
4- import Layout , { Container } from '../../Layout' ;
5- const { Header, Body, Footer} = Layout ;
2+ import { List , CheckBox } from '@uiw/react-native' ;
3+ import { ComProps } from '../../routes' ;
4+ import Layout , { Container } from '../../Layout' ;
5+ const { Header, Body, Footer } = Layout ;
66
7- export interface BadgeViewProps extends ComProps { }
7+ export interface BadgeViewProps extends ComProps { }
88
99export default class BadgeView extends React . Component < BadgeViewProps > {
1010 render ( ) {
11- const { route} = this . props ;
11+ const { route } = this . props ;
1212 const description = route . params . description ;
1313 const title = route . params . title ;
1414 return (
@@ -17,47 +17,47 @@ export default class BadgeView extends React.Component<BadgeViewProps> {
1717 < Header title = { title } description = { description } />
1818 < Body >
1919 < List size = "large" flat = { false } >
20- < List . Item style = { { paddingVertical : 0 } } >
20+ < List . Item style = { { paddingVertical : 0 } } >
2121 < CheckBox
2222 checked = { true }
23- style = { { paddingVertical : 10 } }
23+ style = { { paddingVertical : 10 } }
2424 onChange = { checked => {
2525 console . log ( checked ) ;
2626 } } >
2727 默认点击选中
2828 </ CheckBox >
2929 </ List . Item >
30- < List . Item style = { { paddingVertical : 0 } } >
30+ < List . Item style = { { paddingVertical : 0 } } >
3131 < CheckBox
32- style = { { paddingVertical : 10 } }
32+ style = { { paddingVertical : 10 } }
3333 onChange = { checked => {
3434 console . log ( checked ) ;
3535 } } >
3636 默认未选中
3737 </ CheckBox >
3838 </ List . Item >
39- < List . Item style = { { paddingVertical : 0 } } >
39+ < List . Item style = { { paddingVertical : 0 } } >
4040 < CheckBox
4141 disabled
42- style = { { paddingVertical : 10 } }
42+ style = { { paddingVertical : 10 } }
4343 onChange = { checked => {
4444 console . log ( checked ) ;
4545 } } >
4646 默认禁用未选中
4747 </ CheckBox >
4848 </ List . Item >
49- < List . Item style = { { paddingVertical : 0 } } >
49+ < List . Item style = { { paddingVertical : 0 } } >
5050 < CheckBox
5151 checked = { true }
5252 disabled
53- style = { { paddingVertical : 10 } }
53+ style = { { paddingVertical : 10 } }
5454 onChange = { checked => {
5555 console . log ( checked ) ;
5656 } } >
5757 默认禁用选中
5858 </ CheckBox >
5959 </ List . Item >
60- < List . Item style = { { paddingVertical : 0 } } >
60+ < List . Item style = { { paddingVertical : 0 } } >
6161 < CheckBox
6262 style = { { paddingVertical : 10 } }
6363 color = { 'red' }
@@ -67,7 +67,7 @@ export default class BadgeView extends React.Component<BadgeViewProps> {
6767 改变选择框颜色 { 'color={}' }
6868 </ CheckBox >
6969 </ List . Item >
70- < List . Item style = { { paddingVertical : 0 } } >
70+ < List . Item style = { { paddingVertical : 0 } } >
7171 < CheckBox
7272 checked = { true }
7373 style = { { paddingVertical : 10 } }
0 commit comments