File tree 18 files changed +31
-29
lines changed
18 files changed +31
-29
lines changed Original file line number Diff line number Diff line change 41
41
uses : peter-evans/create-pull-request@v4
42
42
with :
43
43
token : ${{ secrets.GITHUB_TOKEN }}
44
- commit-message : " chore(date): update contributor member-list"
45
- title : " chore(date): update contributor member-list"
46
44
body : " update contributor member-list"
47
45
branch : " feat/update-member-list"
46
+ commit-message : " chore(date): update contributor member-list"
47
+ delete-branch : true
48
+ title : " chore(date): update contributor member-list"
Original file line number Diff line number Diff line change @@ -55,10 +55,11 @@ jobs:
55
55
uses : peter-evans/create-pull-request@v4
56
56
with :
57
57
token : ${{ secrets.GITHUB_TOKEN }}
58
- commit-message : " refactor(types): sync components types"
59
- title : " refactor(types): sync components types"
60
58
body : " sync components types"
61
59
branch : " refactor/sync-types"
60
+ commit-message : " refactor(types): sync components types"
61
+ delete-branch : true
62
+ title : " refactor(types): sync components types"
62
63
labels : |
63
64
A-typings
64
65
A-components
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ v3.1 带来了一个 Breaking Change,使用 **Vue** 进行开发的同学需
273
273
274
274
## 四、未来规划
275
275
276
- Taro 3 即将支持 ** React Native** ,欢迎体验:[ 《增加 React Native 支持的 Taro 3.2.0 版本测试通告》] ( https://taro-docs.jd.com/taro/blog /2020-12-02-taro-3-2-0-cannary-1)
276
+ Taro 3 即将支持 ** React Native** ,欢迎体验:[ 《增加 React Native 支持的 Taro 3.2.0 版本测试通告》] ( . /2020-12-02-taro-3-2-0-cannary-1)
277
277
278
278
## 五、感恩社区
279
279
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ npm i -g @tarojs/cli
237
237
238
238
## 六、未来规划
239
239
240
- 得益于 [ 58 技术团队] ( https://github.com/wuba ) 的全力支持,Taro 3 即将支持 ** React Native** ,现已推出 3.2.0 的 Beta 版本,3.2.0 正式版将于本月底推出。欢迎抢先体验:[ 《增加 React Native 支持的 Taro 3.2.0 版本测试通告》] ( https://taro-docs.jd.com/taro/blog /2020-12-02-taro-3-2-0-cannary-1)
240
+ 得益于 [ 58 技术团队] ( https://github.com/wuba ) 的全力支持,Taro 3 即将支持 ** React Native** ,现已推出 3.2.0 的 Beta 版本,3.2.0 正式版将于本月底推出。欢迎抢先体验:[ 《增加 React Native 支持的 Taro 3.2.0 版本测试通告》] ( . /2020-12-02-taro-3-2-0-cannary-1)
241
241
242
242
## 七、感谢
243
243
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ export default defineConfig({
260
260
}
261
261
```
262
262
263
- 接着来到 ` config/index.ts ` 添加 ` alias ` ([ 参考链接] ( https://taro-docs.jd.com/docs /config-detail#alias) ):
263
+ 接着来到 ` config/index.ts ` 添加 ` alias ` ([ 参考链接] ( . /config-detail#alias) ):
264
264
265
265
``` ts
266
266
import path from ' path'
Original file line number Diff line number Diff line change @@ -1337,7 +1337,7 @@ Vue.use(VirtualList)
1337
1337
</Tabs >
1338
1338
1339
1339
:::info 了解更多
1340
- 在文档[ 虚拟列表] ( ./virtual-list.md ) 你可以找到虚拟列表的一些高级用法,例如:无限滚动、滚动偏移、滚动事件等。
1340
+ 在文档[ 虚拟列表] ( ./virtual-list ) 你可以找到虚拟列表的一些高级用法,例如:无限滚动、滚动偏移、滚动事件等。
1341
1341
:::
1342
1342
1343
1343
#### 预渲染
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ npm i @nutui/nutui-taro
61
61
62
62
#### 2、Taro 相关配置
63
63
64
- 安装 [ @tarojs/plugin-html ] ( https://taro-docs.jd.com/docs/ use-h5/ )
64
+ 安装 [ @tarojs/plugin-html ] ( ./ use-h5)
65
65
66
66
``` bash
67
67
npm i @tarojs/plugin-html
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ type TCustomTemplateInfo = {
115
115
}
116
116
` ` `
117
117
118
- 只需要按照 taro 模版的格式,编写好需要的模版(模版编写参考[模版格式](./template.md ),静态模版与动态模版均支持),并且下载到电脑本地任意一个目录下,把该目录的绝对路径赋值给 ` customTemplateConfig .customTemplatePath ` ,如果是动态模版,那么可以根据编写的模版的 template_creator.js,配置需要的其他参数,最后生成完整的 ` customTemplateConfig ` 对象,作为参数调用 ` setCustomTemplateConfig ` 即可。
118
+ 只需要按照 taro 模版的格式,编写好需要的模版(模版编写参考[模版格式](./template),静态模版与动态模版均支持),并且下载到电脑本地任意一个目录下,把该目录的绝对路径赋值给 ` customTemplateConfig .customTemplatePath ` ,如果是动态模版,那么可以根据编写的模版的 template_creator.js,配置需要的其他参数,最后生成完整的 ` customTemplateConfig ` 对象,作为参数调用 ` setCustomTemplateConfig ` 即可。
119
119
120
120
通过运行 ` taro create plugin -name --type =plugin -template ` 会生成一个插件示例,可根据具体需求进行修改。
121
121
Original file line number Diff line number Diff line change @@ -140,11 +140,11 @@ const config = {
140
140
此 3 个选项在一条命令里不能同时使用(互斥)
141
141
142
142
- --projectPath
143
- 指定要操作(打开、预览、上传)的目录路径, 默认情况下是操作构建后目录路径,即 [ outputRoot 选项] ( https://taro-docs.jd.com/taro/docs/next /config-detail#outputroot) ;
143
+ 指定要操作(打开、预览、上传)的目录路径, 默认情况下是操作构建后目录路径,即 [ outputRoot 选项] ( . /config-detail#outputroot) ;
144
144
145
145
此选项必须搭配上述三个选项之一一起使用;
146
146
147
- 此选项优先级为: 终端传入的` --projectPath ` > CI 配置的` projectPath ` 选项 > [ outputRoot 选项] ( https://taro-docs.jd.com/taro/docs/next /config-detail#outputroot) 。
147
+ 此选项优先级为: 终端传入的` --projectPath ` > CI 配置的` projectPath ` 选项 > [ outputRoot 选项] ( . /config-detail#outputroot) 。
148
148
149
149
### 作为命令单独使用(3.6.0 开始支持)
150
150
@@ -174,7 +174,7 @@ const config = {
174
174
- --type
175
175
传入平台名称
176
176
- --projectPath
177
- 传入路径。 此选项优先级为: 终端传入的` --projectPath ` > CI 配置的` projectPath ` 选项 > [ outputRoot 选项] ( https://taro-docs.jd.com/taro/docs/next /config-detail#outputroot)
177
+ 传入路径。 此选项优先级为: 终端传入的` --projectPath ` > CI 配置的` projectPath ` 选项 > [ outputRoot 选项] ( . /config-detail#outputroot)
178
178
179
179
### Hooks 使用(3.6.0 开始支持)
180
180
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Taro 3 支持将 Web 框架直接运行在各平台,开发者使用的是真
22
22
## 内置组件
23
23
24
24
:::note
25
- 自 Taro v3.3+,支持使用 H5 标签进行开发,详情请见 [ 使用 HTML 标签] ( use-h5 )
25
+ 自 Taro v3.3+,支持使用 H5 标签进行开发,详情请见 [ 使用 HTML 标签] ( ./ use-h5)
26
26
:::
27
27
28
28
Taro 中可以使用小程序规范的内置组件进行开发,如 ` <view> ` 、` <text> ` 、` <button> ` 等。
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ sidebar_label: connectSocket
6
6
7
7
创建一个 [ WebSocket] ( https://developer.mozilla.org/zh-CN/docs/Web/API/WebSocket ) 链接。
8
8
9
- 支持存在最多** 两个** WebSocket 链接,每次成功调用 Taro.connectSocket 会返回一个新的 [ SocketTask] ( SocketTask.md ) 。
9
+ 支持存在最多** 两个** WebSocket 链接,每次成功调用 Taro.connectSocket 会返回一个新的 [ SocketTask] ( ./SocketTask ) 。
10
10
11
11
** OBJECT 参数说明:**
12
12
Original file line number Diff line number Diff line change @@ -231,12 +231,12 @@ class App extends Component {
231
231
232
232
各类网络请求的超时时间,单位均为毫秒。
233
233
234
- | 属性 | 类型 | 必填 | 默认值 | 描述 |
235
- | ------------- | ------ | ---- | ------ | --------------------------------------------------------------------------------------- |
236
- | request | Number | 否 | 60000 | [ Taro.request] ( ./apis/network/request/request.md ) 的超时时间,单位:毫秒 |
237
- | connectSocket | Number | 否 | 60000 | [ Taro.connectSocket] ( ./apis/network/socket/connectSocket.md ) 的超时时间,单位:毫秒 |
238
- | uploadFile | Number | 否 | 60000 | [ Taro.uploadFile] ( ./apis/network/fileTransfer/uploadFile.md ) 的超时时间,单位:毫秒 |
239
- | downloadFile | Number | 否 | 60000 | [ Taro.downloadFile] ( ./apis/network/fileTransfer/downloadFile.md ) 的超时时间,单位:毫秒 |
234
+ | 属性 | 类型 | 必填 | 默认值 | 描述 |
235
+ | ------------- | ------ | ---- | ------ | ------------------------------------------------------------------------------------ |
236
+ | request | Number | 否 | 60000 | [ Taro.request] ( ./apis/network/request/request ) 的超时时间,单位:毫秒 |
237
+ | connectSocket | Number | 否 | 60000 | [ Taro.connectSocket] ( ./apis/network/socket/connectSocket ) 的超时时间,单位:毫秒 |
238
+ | uploadFile | Number | 否 | 60000 | [ Taro.uploadFile] ( ./apis/network/fileTransfer/uploadFile ) 的超时时间,单位:毫秒 |
239
+ | downloadFile | Number | 否 | 60000 | [ Taro.downloadFile] ( ./apis/network/fileTransfer/downloadFile ) 的超时时间,单位:毫秒 |
240
240
241
241
#### debug
242
242
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ export default defineConfig({
260
260
}
261
261
```
262
262
263
- 接着来到 ` config/index.ts ` 添加 ` alias ` ([ 参考链接] ( https://taro-docs.jd.com/docs /config-detail#alias) ):
263
+ 接着来到 ` config/index.ts ` 添加 ` alias ` ([ 参考链接] ( . /config-detail#alias) ):
264
264
265
265
``` ts
266
266
import path from ' path'
Original file line number Diff line number Diff line change @@ -1337,7 +1337,7 @@ Vue.use(VirtualList)
1337
1337
</Tabs >
1338
1338
1339
1339
:::info 了解更多
1340
- 在文档[ 虚拟列表] ( ./virtual-list.md ) 你可以找到虚拟列表的一些高级用法,例如:无限滚动、滚动偏移、滚动事件等。
1340
+ 在文档[ 虚拟列表] ( ./virtual-list ) 你可以找到虚拟列表的一些高级用法,例如:无限滚动、滚动偏移、滚动事件等。
1341
1341
:::
1342
1342
1343
1343
#### 预渲染
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ npm i @nutui/nutui-taro
61
61
62
62
#### 2、Taro 相关配置
63
63
64
- 安装 [ @tarojs/plugin-html ] ( https://taro-docs.jd.com/docs/ use-h5/ )
64
+ 安装 [ @tarojs/plugin-html ] ( ./ use-h5)
65
65
66
66
``` bash
67
67
npm i @tarojs/plugin-html
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ type TCustomTemplateInfo = {
115
115
}
116
116
` ` `
117
117
118
- 只需要按照 taro 模版的格式,编写好需要的模版(模版编写参考[模版格式](./template.md ),静态模版与动态模版均支持),并且下载到电脑本地任意一个目录下,把该目录的绝对路径赋值给 ` customTemplateConfig .customTemplatePath ` ,如果是动态模版,那么可以根据编写的模版的 template_creator.js,配置需要的其他参数,最后生成完整的 ` customTemplateConfig ` 对象,作为参数调用 ` setCustomTemplateConfig ` 即可。
118
+ 只需要按照 taro 模版的格式,编写好需要的模版(模版编写参考[模版格式](./template),静态模版与动态模版均支持),并且下载到电脑本地任意一个目录下,把该目录的绝对路径赋值给 ` customTemplateConfig .customTemplatePath ` ,如果是动态模版,那么可以根据编写的模版的 template_creator.js,配置需要的其他参数,最后生成完整的 ` customTemplateConfig ` 对象,作为参数调用 ` setCustomTemplateConfig ` 即可。
119
119
120
120
通过运行 ` taro create plugin -name --type =plugin -template ` 会生成一个插件示例,可根据具体需求进行修改。
121
121
Original file line number Diff line number Diff line change @@ -140,11 +140,11 @@ const config = {
140
140
此 3 个选项在一条命令里不能同时使用(互斥)
141
141
142
142
- --projectPath
143
- 指定要操作(打开、预览、上传)的目录路径, 默认情况下是操作构建后目录路径,即 [ outputRoot 选项] ( https://taro-docs.jd.com/taro/docs/next /config-detail#outputroot) ;
143
+ 指定要操作(打开、预览、上传)的目录路径, 默认情况下是操作构建后目录路径,即 [ outputRoot 选项] ( . /config-detail#outputroot) ;
144
144
145
145
此选项必须搭配上述三个选项之一一起使用;
146
146
147
- 此选项优先级为: 终端传入的` --projectPath ` > CI 配置的` projectPath ` 选项 > [ outputRoot 选项] ( https://taro-docs.jd.com/taro/docs/next /config-detail#outputroot) 。
147
+ 此选项优先级为: 终端传入的` --projectPath ` > CI 配置的` projectPath ` 选项 > [ outputRoot 选项] ( . /config-detail#outputroot) 。
148
148
149
149
### 作为命令单独使用(3.6.0 开始支持)
150
150
@@ -174,7 +174,7 @@ const config = {
174
174
- --type
175
175
传入平台名称
176
176
- --projectPath
177
- 传入路径。 此选项优先级为: 终端传入的` --projectPath ` > CI 配置的` projectPath ` 选项 > [ outputRoot 选项] ( https://taro-docs.jd.com/taro/docs/next/ config-detail#outputroot)
177
+ 传入路径。 此选项优先级为: 终端传入的` --projectPath ` > CI 配置的` projectPath ` 选项 > [ outputRoot 选项] ( config-detail#outputroot )
178
178
179
179
### Hooks 使用(3.6.0 开始支持)
180
180
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Taro 3 支持将 Web 框架直接运行在各平台,开发者使用的是真
22
22
## 内置组件
23
23
24
24
:::note
25
- 自 Taro v3.3+,支持使用 H5 标签进行开发,详情请见 [ 使用 HTML 标签] ( use-h5 )
25
+ 自 Taro v3.3+,支持使用 H5 标签进行开发,详情请见 [ 使用 HTML 标签] ( ./ use-h5)
26
26
:::
27
27
28
28
Taro 中可以使用小程序规范的内置组件进行开发,如 ` <view> ` 、` <text> ` 、` <button> ` 等。
You can’t perform that action at this time.
0 commit comments