File tree Expand file tree Collapse file tree 7 files changed +8
-11
lines changed Expand file tree Collapse file tree 7 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,9 @@ const App = () => {
37
37
< Stack . Screen
38
38
key = { index }
39
39
{ ...props }
40
- // name="Home"
41
- // options={{
42
- // header: () => null
43
- // }}
44
- // component={Home}
40
+ options = { {
41
+ header : props . name === 'ImageHeader' ? ( ) => null : props . header ,
42
+ } }
45
43
/>
46
44
) ;
47
45
} ) }
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ export default class ImageHeaderView extends React.Component<ImageHeaderProps> {
14
14
headerLeftColor = "#FFF"
15
15
headerLeft = "返回"
16
16
headerRight = { < Icon name = "delete" size = { 20 } color = { '##FFF' } /> }
17
- statusBarColor = "blue"
18
17
statusBarStyle = "dark-content" >
19
18
< Flex justify = "center" style = { { backgroundColor : 'white' , height : 100 , marginHorizontal : 20 } } >
20
19
< Text > 111</ Text >
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export default Demo
41
41
42
42
| 参数 | 说明 | 类型 | 默认值 |
43
43
| ------| ------| -----| ------|
44
- | displayType | 选择器显示类型。view表示在页面显示;modal表示在弹窗中显示;默认为modal | `view | modal` | view |
44
+ | displayType | 选择器显示类型。view表示在页面显示;modal表示在弹窗中显示;默认为modal | ` view | modal ` | view |
45
45
| onChange | 修改事件 | ` (value?: ItemValue[]) => void ` | - |
46
46
| title | 选中当前项的下标 | number | - |
47
47
| visible | 是否弹窗显示 | boolean | false |
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ const ImageHeader: FC<ImageHeaderProps> = (props) => {
71
71
72
72
return (
73
73
< >
74
- < StatusBar barStyle = { statusBarStyle } />
74
+ < StatusBar barStyle = { statusBarStyle } backgroundColor = { headerBackgroundColor } />
75
75
< ImageBackground source = { headerBackgroundImg } style = { { width : '100%' , height : headerHeight } } >
76
76
< Flex
77
77
style = { {
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export default Demo
144
144
| ` clearText ` | 如果为 true,每次开始输入的时候都会清除文本框的内容。 | boolean | - |
145
145
| ` error ` | 显示错误 | boolean | - |
146
146
| ` renderError ` | 自定义错误提示 | React.ReactNode | - |
147
- | ` border ` | 边框 | `'bottom'| 'top'| 'left'| 'right'| null| 'always'` | - |
147
+ | ` border ` | 边框 | ` 'bottom'| 'top'| 'left'| 'right'| null| 'always' ` | - |
148
148
| ` borderColor ` | 边框颜色 | string | - |
149
149
| ` clear ` | 是否显示清除按钮 | boolean | - |
150
150
| ` clearStyle ` | 清除按钮样式 | StyleProp<` TextStyle ` > | - |
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export default Demo
96
96
| data | 选择项列表 | ` CascadePickerItemProps[] ` | ` Array<CascadePickerItemProps[]> ` | [ ] |
97
97
| cols | 展示几列 | ` number ` | 1 |
98
98
| value | 当前值 | ` ItemValue[] ` | [ ] |
99
- | displayType | 选择器显示类型。view表示在页面显示;modal表示在弹窗中显示;默认为modal | `view | modal` | view |
99
+ | displayType | 选择器显示类型。view表示在页面显示;modal表示在弹窗中显示;默认为modal | ` view | modal ` | view |
100
100
| onChange | 修改事件 | ` (value?: ItemValue[]) => void ` | - |
101
101
| title | 选中当前项的下标 | number | - |
102
102
| visible | 是否弹窗显示 | boolean | false |
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ export default Demo
190
190
| ------| ------| -----| ------|
191
191
| onChangeText | 搜索框文字变化 | (value: string) => void | - |
192
192
| options | 数据化配置选项内容,相比 jsx 定义会获得更好的渲染性能 | Array<` OptionsStateProps ` > | - |
193
- | onChange | 事件变化回调 | string | (value: string) => void |
193
+ | onChange | 事件变化回调 | (value: string) => void | - |
194
194
| onFocus | 获得焦点时回调 null = 永不显示 | (e: any) => void | - |
195
195
| labelInValue | 是否把每个选项的 label 包装到 value 中,会把 Select 的 value 类型从 string 变为 { key: string, label: ReactNode } 的格式 | Boolean | - |
196
196
| disabled | 是否禁用 | Boolean | - |
You can’t perform that action at this time.
0 commit comments