File tree Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -47,22 +47,11 @@ export default Demo;
4747
4848继承 [ View] ( https://facebook.github.io/react-native/docs/view#props ) 组件。
4949
50- ``` ts
51- import { ViewProps } from ' react-native' ;
52-
53- export interface BadgeProps extends ViewProps {
54- children? : React .ReactNode ;
55- /** 标记颜色 */
56- color? : colors .Colors | string ;
57- /** 文本内容 */
58- text? : string | Element ;
59- /**
60- * 设置圆角,默认 `12`
61- */
62- rounded? : number ;
63- /** 设置类型 */
64- type? : ' dot' | ' text' ;
65- /** 文本样式 */
66- textStyles? : StyleProp <TextStyle >;
67- }
68- ```
50+ | 属性 | 说明 | 类型 | 默认值 |
51+ | --- | --- | --- | --- |
52+ | color | 标记颜色 | ` colors.Colors \| string ` | - |
53+ | text | 文本内容 | ` string \| Element ` | - |
54+ | rounded | 设置圆角 | ` boolean \| number ` | ` 12 ` |
55+ | textStyles | 文本样式 | ` StyleProp<TextStyle> ` | - |
56+ | type | 设置类型 | ` 'dot' \| 'text' ` | - |
57+ | children | 更多内容 | ` React.ReactNode ` | - |
You can’t perform that action at this time.
0 commit comments