@@ -31,18 +31,18 @@ export default Demo
3131
3232```
3333
34- ### 设置头部
34+ ### 设置标题
3535
3636``` jsx mdx:preview&background=#bebebe29
37-
3837import { View , Text } from ' react-native' ;
3938import { List } from ' @uiw/react-native' ;
4039import React from " react"
4140
4241export default function Demo () {
4342 return (
4443 < List
45- title= ' 这是头部,设置头部设置头部'
44+ title= ' 今日股市'
45+ titleLabelStyle= {{ fontSize: ' 20px' }}
4646 data= {[
4747 { date: ' 8月12日' , time: ' 18:25' , orderCode: ' SO18081200005' , transCode: ' 123456' , weight: ' 69.5Kg' , money: ' +241.00元' , type: ' 收入' },
4848 { date: ' 8月10日' , time: ' 12:01' , orderCode: ' SO18081000004' , transCode: ' 123789' , weight: ' 968.6Kg' , money: ' +8834.00元' , type: ' 收入' },
@@ -67,9 +67,9 @@ export default function Demo() {
6767
6868``` jsx mdx:preview&background=#bebebe29
6969
70+ import React from " react"
7071import { View , Text } from ' react-native' ;
7172import { List } from ' @uiw/react-native' ;
72- import React from " react"
7373
7474export default function Demo () {
7575 return (
@@ -181,6 +181,7 @@ export default function Demo() {
181181| ` renderItem ` | 当使用 ` data ` 时,可以用 ` renderItem ` 自定义渲染列表项 | ({item}) => { } | - |
182182| ` title ` | 标题 | React.ReactNode | - |
183183| ` titleStyle ` | 当设置 ` title ` 参数之后可以设置其标题容器样式。| ViewStyle | - |
184+ | ` titleLabelStyle ` | 设置标题文字器样式。| ViewStyle | - |
184185| ` horizontal ` | 设置为 ` true ` 则变为水平布局模式。(` flat=true ` 支持) | Boolean | ` false ` |
185186| ` numColumns ` | 多列布局只能在非水平模式下使用,即必须是 ` horizontal={false} ` 。此时组件内元素会从左到右从上到下按 ` Z ` 字形排列,类似启用了 ` flexWrap ` 的布局。组件内元素必须是等高的——暂时还无法支持瀑布流布局。(` flat=true ` 支持) | Number | - |
186187| ` ListHeaderComponent ` | 呈现在列表的顶部。如果设置了 ` title ` 标题,这个参数将失效 | ReactNode | - |
0 commit comments