@@ -101,39 +101,22 @@ export default Demo
101101
102102### TileProps
103103
104- ``` ts
105- import { TileProps } from ' react-native' ;
106-
107- export interface TileProps extends TouchableOpacityProps {
108- /** 标题内容(可选)*/
109- title? : string ;
110- /** 标题样式 */
111- titleStyle? : StyleProp <TextStyle >;
112- /** 图标(可选)*/
113- icon? : IconsProps ;
114- /** 图标样式(可选) */
115- iconContainerStyle? : StyleProp <ViewStyle >;
116- /** 文本内容(可选) */
117- caption? : React .ReactNode ;
118- /** 文本内容样式(可选) */
119- captionStyle? : StyleProp <TextStyle >;
120- /** 底部容器样式(可选) */
121- contentContainerStyle? : StyleProp <ViewStyle >;
122- /** 图片链接(可选) */
123- imageSrc? : ImageSourcePropType | string | number ;
124- /** 图片容器样式(可选) */
125- imageContainerStyle? : StyleProp <ViewStyle >;
126- /** 文字行数(可选) */
127- titleNumberOfLines? : number ;
128- /** 图片内容样式(可选) */
129- containerStyle? : StyleProp <ViewStyle >;
130- /** Tile宽度(可选) */
131- width? : number ;
132- /** Tile高度(可选)*/
133- height? : number ;
134- /** Tile透明度(可选)*/
135- activeOpacity? : number ;
136- /** 继承image的api */
137- imageProps? : Partial <ImageProps >;
138- }
139- ```
104+ 组件继承 [ ` TouchableOpacityProps ` ] ( https://facebook.github.io/react-native/docs/touchableopacity#docsNav )
105+
106+ | 属性 | 说明 | 类型 | 默认值 |
107+ | --- | --- | --- | --- |
108+ | ` title ` | 标题内容(可选)| ` string ` | - |
109+ | ` titleStyle ` | 标题样式 | ` StyleProp<TextStyle> ` | - |
110+ | ` icon ` | 图标(可选) | ` IconsProps ` | - |
111+ | ` iconContainerStyle ` | 图标样式(可选) | ` StyleProp<ViewStyle> ` | - |
112+ | ` caption ` | 文本内容(可选) | ` React.ReactNode ` | - |
113+ | ` captionStyle ` | 文本内容样式(可选)| ` StyleProp<TextStyle> ` | - |
114+ | ` contentContainerStyle ` | 底部容器样式(可选) | ` StyleProp<ViewStyle> ` | - |
115+ | ` imageSrc ` | 图片链接(可选) | ` 'ImageSourcePropType' \| 'string' \| 'number' ` | - |
116+ | ` imageContainerStyle ` | 图片容器样式(可选) | ` StyleProp<ViewStyle> ` | - |
117+ | ` titleNumberOfLines ` | 文字行数(可选)| ` number ` | - |
118+ | ` containerStyle ` | 图片内容样式(可选) | ` StyleProp<ViewStyle> ` | - |
119+ | ` width ` | Tile宽度(可选) | ` number ` | - |
120+ | ` height ` | Tile高度(可选) | ` number ` | - |
121+ | ` activeOpacity ` | Tile透明度(可选) | ` number ` | - |
122+ | ` imageProps ` | 继承image的api | ` Partial<ImageProps> ` | - |
0 commit comments