Skip to content

Commit 82f71fc

Browse files
committed
feat(framework): update list
1 parent 5de349d commit 82f71fc

Some content is hidden

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

76 files changed

+237
-234
lines changed

blog/2021-08-13-Taro-3.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ npm i -g @tarojs/cli
118118

119119
### Taro 3.4
120120

121-
下一个 minor 版本,我们会考虑把对各个 Web 开发框架的支持逻辑拆分为对应的插件。让开发者可以以插件的形式为 Taro 拓展支持一门新的开发框架,我们会运用此能力进行对 **PReact** 的支持,希望能进一步减少用户的包体积。
121+
下一个 minor 版本,我们会考虑把对各个 Web 开发框架的支持逻辑拆分为对应的插件。让开发者可以以插件的形式为 Taro 拓展支持一门新的开发框架,我们会运用此能力进行对 **Preact** 的支持,希望能进一步减少用户的包体积。
122122

123123
### 鸿蒙应用 && OpenHarmony
124124

blog/2022-05-19-Taro-3.5-beta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ npm i -g @tarojs/cli@beta
194194
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
195195
"react-refresh": "0.11.0"
196196
```
197-
- PReact 项目需要添加 devDenpendencies:
197+
- Preact 项目需要添加 devDenpendencies:
198198

199199
```jsx
200200
"@prefresh/webpack": "^3.2.3",

blog/2022-07-26-Taro-3.5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ npm i @tarojs/cli
205205
npm i @pmmmwh/react-refresh-webpack-plugin react-refresh --save-dev
206206
```
207207

208-
### 2.3 使用 PReact 的项目
208+
### 2.3 使用 Preact 的项目
209209

210-
- **【Breaking】**使用 PReact 的项目需要额外安装 `@prefresh/webpack``@prefresh/babel-plugin`
210+
- **【Breaking】**使用 Preact 的项目需要额外安装 `@prefresh/webpack``@prefresh/babel-plugin`
211211

212212
```bash
213213
npm i @prefresh/webpack @prefresh/babel-plugin --save-dev

docs/README.mdx

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import News from './news'
1111

1212
## 简介
1313

14-
**Taro** 是一个开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv/Svelte 等框架来开发 [微信](https://mp.weixin.qq.com/) / [京东](https://mp.jd.com/?entrance=taro) / [百度](https://smartprogram.baidu.com/) / [支付宝](https://mini.open.alipay.com/) / [字节跳动](https://developer.open-douyin.com/) / [QQ](https://q.qq.com/) / [飞书](https://open.feishu.cn/document/uYjL24iN/ucDOzYjL3gzM24yN4MjN) 小程序 / H5 / RN 等应用。
14+
**Taro** 是一个开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发 [微信](https://mp.weixin.qq.com/) / [京东](https://mp.jd.com/?entrance=taro) / [百度](https://smartprogram.baidu.com/) / [支付宝](https://mini.open.alipay.com/) / [字节跳动](https://developer.open-douyin.com/) / [QQ](https://q.qq.com/) / [飞书](https://open.feishu.cn/document/uYjL24iN/ucDOzYjL3gzM24yN4MjN) 小程序 / H5 / RN 等应用。
1515

1616
现如今市面上端的形态多种多样,Web、React Native、微信小程序等各种端大行其道。当业务要求同时在不同的端都要求有所表现的时候,针对不同的端去编写多套代码的成本显然非常高,这时候只编写一套代码就能够适配到多端的能力就显得极为需要。
1717

@@ -23,31 +23,32 @@ Taro 3 可以支持转换到 H5、ReactNative 以及任意小程序平台。
2323

2424
目前官方支持转换的平台如下:
2525

26-
- [H5](https://developer.mozilla.org/zh-CN/docs/Web?from=taro)
27-
- [ReactNative](https://reactnative.dev/?from=taro)
28-
- [微信小程序](https://developers.weixin.qq.com/miniprogram/dev/framework/?from=taro)
29-
- [京东小程序](https://mp.jd.com/?from=taro)
30-
- [百度智能小程序](https://smartprogram.baidu.com/developer/index.html?from=taro)
31-
- [支付宝小程序](https://opendocs.alipay.com/mini/developer/getting-started?from=taro)
32-
- [抖音小程序](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/introduction/overview?from=taro)
33-
- [QQ 小程序](https://q.qq.com/wiki/develop/miniprogram/frame/?from=taro)
34-
- [钉钉小程序](https://open.dingtalk.com/document/org/develop-org-mini-programs?from=taro)
35-
- [企业微信小程序](https://developers.weixin.qq.com/miniprogram/dev/devtools/qywx-dev.html?from=taro)
36-
- [支付宝 IOT 小程序](https://opendocs.alipay.com/iot/multi-platform/vcs0fv?from=taro)
37-
- [飞书小程序](https://open.feishu.cn/document/uYjL24iN/uMjNzUjLzYzM14yM2MTN?from=taro)
26+
- [<img title="H5" src={require('@site/static/img/platform/h5.png').default} className="icon_platform" width="25px" /> H5](https://developer.mozilla.org/zh-CN/docs/Web?from=taro)
27+
- [<img title="React Native" src={require('@site/static/img/platform/rn.png').default} className="icon_platform" width="25px" /> React Native](https://reactnative.dev/?from=taro)
28+
- [<img title="微信小程序" src={require('@site/static/img/platform/weapp.png').default} className="icon_platform" width="25px" /> 微信小程序](https://developers.weixin.qq.com/miniprogram/dev/framework/?from=taro)
29+
- [<img title="京东小程序" src={require('@site/static/img/platform/jd.png').default} className="icon_platform" width="25px" /> 京东小程序](https://mp.jd.com/?from=taro)
30+
- [<img title="百度小程序" src={require('@site/static/img/platform/swan.png').default} className="icon_platform" width="25px" /> 百度智能小程序](https://smartprogram.baidu.com/developer/index.html?from=taro)
31+
- [<img title="支付宝小程序" src={require('@site/static/img/platform/alipay.png').default} className="icon_platform" width="25px" /> 支付宝小程序](https://opendocs.alipay.com/mini/developer/getting-started?from=taro)
32+
- [<img title="抖音小程序" src={require('@site/static/img/platform/tt.png').default} className="icon_platform" width="25px" /> 抖音小程序](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/introduction/overview?from=taro)
33+
- [<img title="QQ 小程序" src={require('@site/static/img/platform/qq.png').default} className="icon_platform" width="25px" /> QQ 小程序](https://q.qq.com/wiki/develop/miniprogram/frame/?from=taro)
34+
- [<img title="钉钉小程序" src={require('@site/static/img/platform/ding-talk.png').default} className="icon_platform" width="25px" /> 钉钉小程序](https://open.dingtalk.com/document/org/develop-org-mini-programs?from=taro)
35+
- [<img title="企业微信小程序" src={require('@site/static/img/platform/wework.png').default} className="icon_platform" width="25px" /> 企业微信小程序](https://developers.weixin.qq.com/miniprogram/dev/devtools/qywx-dev.html?from=taro)
36+
- [<img title="支付宝 IOT 小程序" src={require('@site/static/img/platform/alipay.png').default} className="icon_platform" width="25px" /> 支付宝 IOT 小程序](https://opendocs.alipay.com/iot/multi-platform/vcs0fv?from=taro)
37+
- [<img title="飞书小程序" src={require('@site/static/img/platform/lark.png').default} className="icon_platform" width="25px" /> 飞书小程序](https://open.feishu.cn/document/uYjL24iN/uMjNzUjLzYzM14yM2MTN?from=taro)
3838

3939
### 框架支持
4040

41-
在 Taro 3 中可以使用完整的 **React / Vue / Vue3 / Nerv** 开发体验,具体请参考:
41+
在 Taro 3 中可以使用完整的 [**<img title="react" src={require('@site/static/img/framework/react.png').default} className="icon_platform" width="25px" /> React**](https://react.dev/) / [**<img title="vue" src={require('@site/static/img/framework/vue.png').default} className="icon_platform" width="25px" /> Vue**](https://vuejs.org/) / [**<img title="preact" src={require('@site/static/img/framework/preact.png').default} className="icon_platform" width="25px" /> Preact**](https://preactjs.com/) / [**<img title="svelte" src={require('@site/static/img/framework/svelte.png').default} className="icon_platform" width="25px" /> Svelte**](https://svelte.dev/) / [**<img title="nerv" src={require('@site/static/img/framework/nerv.png').default} className="icon_platform" width="25px" /> Nerv**](https://github.com/NervJS/nerv) 开发体验,具体请参考:
4242

4343
- [基础教程——React](./react-overall)
4444
- [基础教程——Vue](./vue-overall)
4545
- [基础教程——Vue3](./vue3)
46+
- [基础教程——Preact](./preact)
4647

4748
<Tabs
4849
defaultValue="React"
4950
values={[
50-
{label: <ReactIcon />, value: 'React'},
51+
{label: <ReactIcon />, value: 'React'},
5152
{label: <VueIcon />, value: 'Vue'}
5253
]}>
5354
<TabItem value="React">

docs/come-from-miniapp.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Taro v3.6.3+ 推荐使用以下方式获取:
8989
<Tabs
9090
defaultValue="React"
9191
values={[
92-
{label: <ReactIcon />, value: 'React'},
92+
{label: <ReactIcon />, value: 'React'},
9393
{label: <VueIcon />, value: 'Vue'}
9494
]}>
9595
<TabItem value="React">
@@ -142,7 +142,7 @@ Taro v3.6.2 及以下版本可以通过以下方式获取(需要对应小程
142142
<Tabs
143143
defaultValue="React"
144144
values={[
145-
{label: <ReactIcon />, value: 'React'},
145+
{label: <ReactIcon />, value: 'React'},
146146
{label: <VueIcon />, value: 'Vue'}
147147
]}>
148148
<TabItem value="React">

docs/custom-tabbar.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const tabbar = Taro.getTabBar(pageObj)
140140
<Tabs
141141
defaultValue="React"
142142
values={[
143-
{label: <ReactIcon />, value: 'React'},
143+
{label: <ReactIcon />, value: 'React'},
144144
{label: <VueIcon />, value: 'Vue'}
145145
]}>
146146
<TabItem value="React">

docs/folder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ title: 目录结构
6161
| app.css || 小程序全局样式 |
6262
| app.config.js || 小程序全局配置 |
6363

64-
代码示例请根据你选择的框架进行查看:[React](./react-overall), [PReact](./preact), [Vue](./vue-overall), [Vue3](./vue3)
64+
代码示例请根据你选择的框架进行查看:[React](./react-overall), [Preact](./preact), [Vue](./vue-overall), [Vue3](./vue3)
6565

6666
#### 1. 小程序全局配置
6767

docs/hybrid.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default {
4040
<Tabs
4141
defaultValue="React"
4242
values={[
43-
{label: <ReactIcon />, value: 'React'},
43+
{label: <ReactIcon />, value: 'React'},
4444
{label: <VueIcon />, value: 'Vue'}
4545
]}>
4646
<TabItem value="React">
@@ -100,7 +100,7 @@ export default class Index extends Component {
100100
<Tabs
101101
defaultValue="React"
102102
values={[
103-
{label: <ReactIcon />, value: 'React'},
103+
{label: <ReactIcon />, value: 'React'},
104104
{label: <VueIcon />, value: 'Vue'}
105105
]}>
106106
<TabItem value="React">
@@ -172,7 +172,7 @@ export default class Index extends Component {
172172
<Tabs
173173
defaultValue="React"
174174
values={[
175-
{label: <ReactIcon />, value: 'React'},
175+
{label: <ReactIcon />, value: 'React'},
176176
{label: <VueIcon />, value: 'Vue'}
177177
]}>
178178
<TabItem value="React">
@@ -207,7 +207,7 @@ export default class Index extends Component {
207207
<Tabs
208208
defaultValue="React"
209209
values={[
210-
{label: <ReactIcon />, value: 'React'},
210+
{label: <ReactIcon />, value: 'React'},
211211
{label: <VueIcon />, value: 'Vue'}
212212
]}>
213213
<TabItem value="React">

docs/optimized.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ component.setData({
131131
<Tabs
132132
defaultValue="React"
133133
values={[
134-
{label: <ReactIcon />, value: 'React'},
134+
{label: <ReactIcon />, value: 'React'},
135135
{label: <VueIcon />, value: 'Vue'}
136136
]}>
137137
<TabItem value="React">
@@ -200,7 +200,7 @@ Taro 3 提供了 `Taro.preload` API,可以把需要预加载的内容作为参
200200
<Tabs
201201
defaultValue="React"
202202
values={[
203-
{label: <ReactIcon />, value: 'React'},
203+
{label: <ReactIcon />, value: 'React'},
204204
{label: <VueIcon />, value: 'Vue'}
205205
]}>
206206
<TabItem value="React">
@@ -239,7 +239,7 @@ mounted () {
239239
<Tabs
240240
defaultValue="React"
241241
values={[
242-
{label: <ReactIcon />, value: 'React'},
242+
{label: <ReactIcon />, value: 'React'},
243243
{label: <VueIcon />, value: 'Vue'}
244244
]}>
245245
<TabItem value="React">

docs/page-config.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default definePageConfig({
4242
<Tabs
4343
defaultValue="React"
4444
values={[
45-
{label: <ReactIcon />, value: 'React'},
45+
{label: <ReactIcon />, value: 'React'},
4646
{label: <VueIcon />, value: 'Vue'}
4747
]}>
4848
<TabItem value="React">

0 commit comments

Comments
 (0)