Skip to content

Commit c2a34d7

Browse files
committed
fix(docs):增加v2->v3文档
1 parent e865ad9 commit c2a34d7

File tree

5 files changed

+79
-2
lines changed

5 files changed

+79
-2
lines changed

packages/core/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ A UI component library based on React Native (Android & iOS).
3333
[快速上手](https://uimjs.github.io/#/docs/getting-started) | [参与组件开发](https://uimjs.github.io/#/docs/development/components) | [参与文档/网站编辑开发](https://uimjs.github.io/#/docs/development/document) | [组件库](https://uimjs.github.io/#/components/about)
3434

3535
## Install
36-
3736
```bash
38-
yarn add @uiw/react-native react-native-svg react-native-root-siblings @react-native-picker/picker react-native-gesture-handler
37+
yarn add @uiw/react-native react-native-svg@12.1.1 react-native-root-siblings@4.1.1 @react-native-picker/picker@2.2.0 react-native-gesture-handler@2.0.0
3938
```
4039

4140
## Basic Usage
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# V2 -> V3
2+
## `react-native-uiw@3.x.x`
3+
### Presets Updates
4+
- #### 组件性能优化
5+
- #### 统一ios以及android组件差异
6+
7+
---
8+
9+
### New Components
10+
11+
- Calendar
12+
- ScreenRoot
13+
- DragDrawer
14+
- TreeSelect
15+
- RNText
16+
17+
---
18+
19+
### Components Change
20+
21+
> 🚧 注意:下一版本即将删除 SelectCascader
22+
<!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;-->
23+
24+
##### Radio
25+
新增选中颜色
26+
- add `borderColor`
27+
- add `checkedColor`
28+
29+
##### Card
30+
新增自定选中状态
31+
- add `selectedStyle`
32+
33+
##### Rating
34+
新增只读功能 & 自定义每项的提示信息
35+
- add `tooltips`
36+
- add `tooltipsText`
37+
- add `disabled`
38+
39+
##### Timeline
40+
新增自定义图标
41+
- icon?:IconsProps -> `icon?: IconsName | React.ReactElement | React.ReactNode`
42+
- add `size`
43+
- add `color`
44+
45+
#### Pagination
46+
新增简洁版本
47+
- add `simple`
48+
49+
##### NoticeBar
50+
解决 NoticeBar首次渲染报错问题
51+
52+
##### Modal
53+
解决 Modal弹出动画底层延迟收起问题
54+
55+
---
56+
57+
### Dependencies Update
58+
`react-native-gesture-handler@1.10.3` -> `react-native-gesture-handler@2.0.0`
59+
60+
> 🚧 注意:下一版本即将删除 @react-native-picker/picker
61+
<!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;-->
62+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Markdown, { importAll } from '../../../component/Markdown';
2+
3+
export default class Page extends Markdown {
4+
path = './README.md';
5+
getMarkdown = async () => {
6+
const md = await import('./README.md');
7+
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资源
8+
importAll((require as any).context('./', true, /\.(png|gif|jpg|svg)$/), this.imageFiles);
9+
return md.default || md;
10+
};
11+
}

website/src/routes/menus.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { MenuData } from '../component/SubMenus';
22

33
export const componentMenus: MenuData[] = [
44
{ path: '/components/about', name: '关于 UIW' },
5+
{ path: '/components/v3', name: '迁移v2 -> v3' },
56
{ divider: true, name: '通用' },
67
{ path: '/components/button', name: 'Button 按钮' },
78
{ path: '/components/icon', name: 'Icon 图标' },

website/src/routes/router.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ export const routeData = [
289289
path: '/components/textarea',
290290
component: lazy(() => import('../pages/components/textarea')),
291291
},
292+
{
293+
path: '/components/v3',
294+
component: lazy(() => import('../pages/components/v3')),
295+
},
292296
],
293297
},
294298
];

0 commit comments

Comments
 (0)