Skip to content

Commit 0b6f417

Browse files
committed
doc(website): Update website document
1 parent 25fd0b2 commit 0b6f417

File tree

150 files changed

+447
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+447
-156
lines changed

example/examples/src/routes/Drawer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {useState, Fragment} from 'react';
2-
import {View, Text} from 'react-native';
2+
import {View, Text, Bott} from 'react-native';
33
import {Button, Drawer, Spacing, WingBlank} from '@uiw/react-native';
44
import Layout, {Container} from '../../Layout';
55
import {ComProps} from '../../routes';

example/examples/src/routes/TransitionImage/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ const TransitionImageDemo = (props: any) => {
1313
<Header title={title} description={description} />
1414
<TransitionImage
1515
source={{
16-
uri: 'https://img11.51tietu.net/pic/2016-071418/20160714181543xyu10ukncwf221991.jpg',
16+
uri: 'https://iknow-pic.cdn.bcebos.com/810a19d8bc3eb135828572d2ab1ea8d3fd1f441d',
1717
}}
1818
style={{width: 200, height: 200}}
1919
PlaceholderContent={<ActivityIndicator />}
20-
placeholderStyle={{backgroundColor: 'red'}}
21-
containerStyle={{backgroundColor: '#eee'}}
20+
// placeholderStyle={{backgroundColor: 'red'}}
21+
// containerStyle={{backgroundColor: '#eee'}}
2222
transition={true}
2323
transitionDuration={1000}
2424
onPress={() => console.log('点击图片回调事件')}

packages/core/src/ActionSheet/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ActionSheet 动作面板
33

44
该组件提供了一种动作面板, 底部缓缓出现
55

6-
## 基础示例
6+
### 基础示例
77

88
```jsx
99
import { Fragment, useState } from 'react';
@@ -24,7 +24,7 @@ function Demo() {
2424
}
2525
```
2626

27-
## 弹层关闭 && 自定义取消文本
27+
### 弹层关闭 && 自定义取消文本
2828

2929
```jsx
3030
import { Fragment, useState } from 'react';
@@ -47,7 +47,7 @@ function Demo() {
4747
}
4848
```
4949

50-
## Props
50+
### Props
5151

5252
```ts
5353
import { StyleProp, ViewStyle } from 'react-native';
@@ -76,7 +76,7 @@ export interface ActionSheetProps extends ModalProps {
7676
}
7777
```
7878

79-
## ActionSheetItem Props
79+
### ActionSheetItem Props
8080

8181
```ts
8282
import { TextStyle, StyleProp, ViewStyle } from 'react-native';

packages/core/src/Avatar/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Avatar 头像
33

44
用来代表用户或事物,支持图片展示,当前是基于 React Native 组件 Image 封装,你也可以使用更快的图片展示插件 [react-native-fast-image](https://github.com/DylanVann/react-native-fast-image)
55

6-
## 基础示例
6+
7+
### 基础示例
78

89
```jsx
910
import { View } from 'react-native';
@@ -21,7 +22,7 @@ function Demo() {
2122
}
2223
```
2324

24-
## props
25+
### props
2526

2627
继承 [View](https://facebook.github.io/react-native/docs/view#props) 组件。
2728

packages/core/src/Badge/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Badge 标记
22
---
33

4-
## 基础示例
4+
### 基础示例
55

66
```jsx
77
import { View, Text } from 'react-native';
@@ -17,7 +17,7 @@ function Demo() {
1717
}
1818
```
1919

20-
## Props
20+
### Props
2121

2222
继承 [View](https://facebook.github.io/react-native/docs/view#props) 组件。
2323

packages/core/src/Button/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Demo extends Component {
100100
<!--End-->
101101

102102

103-
## 显示边框
103+
### 显示边框
104104

105105
```jsx
106106
import { Button } from '@uiw/react-native';
@@ -112,7 +112,7 @@ function Demo() {
112112
}
113113
```
114114

115-
## 自定义圆角
115+
### 自定义圆角
116116

117117
```jsx
118118
import { Fragment } from 'react';
@@ -133,7 +133,7 @@ function Demo() {
133133
}
134134
```
135135

136-
## Props
136+
### Props
137137

138138
组件继承 [`TouchableOpacity`](https://facebook.github.io/react-native/docs/touchableopacity#docsNav)
139139

packages/core/src/ButtonGroup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Demo extends Component {
115115
<!--End-->
116116

117117

118-
## Props
118+
### Props
119119

120120
集成继承 `Button` 组件自定义属性,外层包裹继承 [`Flex`] 组件。
121121

packages/core/src/CheckBox/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CheckBox 复选框
33

44
一组备选项中进行多选。
55

6-
## 基础示例
6+
### 基础示例
77

88
```jsx
99
import { CheckBox } from '@uiw/react-native';
@@ -23,7 +23,7 @@ function Demo() {
2323
```
2424

2525

26-
## 基础示例
26+
### 基础示例
2727

2828
```jsx
2929
import { Badge, List, CheckBox } from '@uiw/react-native';
@@ -54,7 +54,7 @@ function Demo() {
5454
}
5555
```
5656

57-
## props
57+
### props
5858

5959
继承 [TouchableOpacityProps](https://facebook.github.io/react-native/docs/touchableopacity#props) 组件。
6060

packages/core/src/Divider/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Divider 分割线
33

44
区隔内容的分割线。
55

6-
## 基础示例
6+
### 基础示例
77

88
```jsx
99
import { Fragment } from 'react';
@@ -23,7 +23,7 @@ function Demo() {
2323
}
2424
```
2525

26-
## 纵向分割线
26+
### 纵向分割线
2727

2828
```jsx
2929
import { View, Text } from 'react-native';
@@ -38,7 +38,7 @@ function Demo() {
3838
}
3939
```
4040

41-
## props
41+
### props
4242

4343
继承 [View](https://facebook.github.io/react-native/docs/view#props) 组件。
4444

packages/core/src/Drawer/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Drawer 抽屉
33

44
用于在屏幕边缘显示应用导航等内容的面板。
55

6-
## 基础示例
6+
### 基础示例
77

88
```jsx
99
import { Fragment, useState } from 'react';
@@ -28,7 +28,7 @@ function Demo() {
2828
}
2929
```
3030

31-
## 右边展示
31+
### 右边展示
3232

3333
```jsx
3434
import { Fragment, useState } from 'react';
@@ -54,7 +54,7 @@ function Demo() {
5454
}
5555
```
5656

57-
## 注意事项 - 抽屉高度是页面有效高度
57+
### 注意事项 - 抽屉高度是页面有效高度
5858

5959
```jsx
6060
import { Fragment, useState } from 'react';
@@ -79,7 +79,7 @@ function Demo() {
7979
}
8080
```
8181

82-
## 抽屉覆盖全屏
82+
### 抽屉覆盖全屏
8383

8484
- 可查看 [react-native-root-siblings](https://www.npmjs.com/package/react-native-root-siblings) 文档
8585
```jsx
@@ -127,7 +127,7 @@ function Demo() {
127127
}
128128
```
129129

130-
## props
130+
### props
131131

132132
| 参数 | 说明 | 类型 | 默认值 |
133133
|------|------|-----|------|

packages/core/src/Ellipsis/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Ellipsis 超出省略
33

44
用于文本过长,超出长度显示 `...`
55

6-
## 基础示例
6+
### 基础示例
77

88
```jsx
99
import { Fragment } from 'react';
@@ -19,7 +19,7 @@ function Demo() {
1919
}
2020
```
2121

22-
## Props
22+
### Props
2323

2424
| 参数 | 说明 | 类型 | 默认值 |
2525
|------|------|-----|------|

packages/core/src/Empty/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Demo extends Component {
128128
```
129129
<!--End-->
130130

131-
## Props
131+
### Props
132132

133133
```ts
134134
export interface EmptyProps extends FlexProps {

packages/core/src/ExpandableSection/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class ExpandableSectionDemo extends Component {
3333
```
3434
<!--End-->
3535

36-
## Props
36+
### Props
3737

3838
| 参数 | 说明 | 类型 | 默认值 |
3939
|------|------|-----|------|

packages/core/src/Flex/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Flex Flex布局
44

55
Flex 是 React Native CSS flex 布局的一个封装。
66

7-
## 基础示例
7+
### 基础示例
88

99
```jsx
1010
import { Fragment } from 'react';
@@ -29,7 +29,7 @@ function Demo() {
2929
}
3030
```
3131

32-
## 对齐方式
32+
### 对齐方式
3333

3434
```jsx
3535
import { Fragment } from 'react';
@@ -64,7 +64,7 @@ function Demo() {
6464
}
6565
```
6666

67-
## Props
67+
### Props
6868

6969
### Flex
7070

packages/core/src/Grid/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Grid 宫格
33

44
在水平和垂直方向,将布局切分成若干等大的区块,也可以使用 `List` 组件支持列显示的特性,展示宫格,同时支持下来刷新等特性。
55

6-
## 基础示例
6+
### 基础示例
77

88
引入本地图标 `require('./1.png')`
99

@@ -25,7 +25,7 @@ function Demo() {
2525
}
2626
```
2727

28-
## 自定义单元格
28+
### 自定义单元格
2929

3030
引入本地图标 `require('./1.png')`
3131

@@ -57,7 +57,7 @@ function Demo() {
5757
}
5858
```
5959

60-
## Props
60+
### Props
6161

6262
```ts
6363
export interface GridProps extends ViewProps {

packages/core/src/Icon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function Demo() {
9393
ReactDOM.render(<Demo />, _mount_);
9494
```
9595

96-
## Props
96+
### Props
9797

9898
| 参数 | 说明 | 类型 | 默认值 |
9999
|------|------|-----|------|

packages/core/src/Input/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class BasicInputExample extends React.Component {
2424
```
2525

2626

27-
## Props
27+
### Props
2828

2929
```tsx
3030
import { StyleProp,TextStyle,TextInputProps, NativeSyntheticEvent, TextInputFocusEventData, TextInputChangeEventData, KeyboardTypeOptions,ViewStyle } from 'react-native'

packages/core/src/Input/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ interface InputState {
5353
control: 'props' | 'state';
5454
}
5555
export default class Input extends React.Component<InputProps, InputState> {
56-
ref = React.createRef<TextInput>();
5756
state: InputState = {
5857
value: this.props.value,
5958
control: 'state',

packages/core/src/List/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function Demo() {
102102
```
103103
<!--End-->
104104

105-
## Props
105+
### Props
106106

107107
### List
108108

packages/core/src/Loader/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function Demo() {
6969
<!--End-->
7070

7171

72-
## Props
72+
### Props
7373

7474
继承 `ActivityIndicator` 组件属性 [`ActivityIndicatorProps`](https://facebook.github.io/react-native/docs/activityindicator#props),比原生组件 `ActivityIndicator` 多出更多丰富功能。
7575

packages/core/src/MaskLayer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default () => {
3636
```
3737
<!--End-->
3838

39-
## Props
39+
### Props
4040

4141
继承原生 Modal 属性 [`ModalProps`](https://facebook.github.io/react-native/docs/modal.html#props)
4242

packages/core/src/MenuDropdown/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class MenuDropdownView extends Component{
2828
<!--End-->
2929

3030

31-
## props
31+
### props
3232

3333
组件继承 [`TouchableOpacity`](https://facebook.github.io/react-native/docs/touchableopacity#docsNav)
3434

packages/core/src/Modal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class ButtonGroupView extends Component {
4646
```
4747
<!--End-->
4848

49-
## Props
49+
### Props
5050

5151
继承原生 Modal 属性 [`ModalProps`](https://facebook.github.io/react-native/docs/modal.html#props)
5252

0 commit comments

Comments
 (0)