@tarojs/taro 4.0.0-beta.8 → 4.0.0-beta.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/types/api/base/env.d.ts +1 -1
- package/types/api/base/performance.d.ts +1 -1
- package/types/api/media/audio.d.ts +10 -1
- package/types/api/media/image.d.ts +4 -4
- package/types/api/network/request.d.ts +2 -2
- package/types/api/storage/index.d.ts +1 -1
- package/types/api/{open-api → swan}/bookshelf.d.ts +5 -5
- package/types/api/taro.extend.d.ts +1 -1
- package/types/api/ui/interaction.d.ts +1 -1
- package/types/api/wxml/index.d.ts +13 -7
- package/types/compile/config/h5.d.ts +6 -3
- package/types/compile/config/harmony.d.ts +43 -7
- package/types/compile/config/mini.d.ts +1 -15
- package/types/compile/config/project.d.ts +20 -2
- package/types/compile/config/rn.d.ts +1 -1
- package/types/compile/index.d.ts +8 -0
- package/types/compile/viteCompilerContext.d.ts +6 -3
- package/types/index.d.ts +81 -44
- package/types/taro.api.d.ts +1 -1
- package/types/taro.component.d.ts +3 -0
- package/types/taro.config.d.ts +8 -3
- package/types/taro.lifecycle.d.ts +3 -0
- package/types/taro.runtime.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.80",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "4.0.0-beta.
|
|
24
|
+
"@tarojs/api": "4.0.0-beta.80"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/helper": "4.0.0-beta.
|
|
28
|
-
"@tarojs/shared": "4.0.0-beta.
|
|
29
|
-
"@tarojs/runtime": "4.0.0-beta.
|
|
27
|
+
"@tarojs/helper": "4.0.0-beta.80",
|
|
28
|
+
"@tarojs/shared": "4.0.0-beta.80",
|
|
29
|
+
"@tarojs/runtime": "4.0.0-beta.80"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@tarojs/helper": "~4.0.0-beta.
|
|
33
|
-
"@tarojs/
|
|
34
|
-
"@tarojs/
|
|
32
|
+
"@tarojs/helper": "~4.0.0-beta.80",
|
|
33
|
+
"@tarojs/shared": "~4.0.0-beta.80",
|
|
34
|
+
"@tarojs/runtime": "~4.0.0-beta.80"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@types/react": {
|
package/types/api/base/env.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare module '../../index' {
|
|
|
9
9
|
env: {
|
|
10
10
|
[key: string]: string | undefined
|
|
11
11
|
/** 框架 */
|
|
12
|
-
FRAMEWORK: 'react' | 'preact' | 'nerv' | 'vue' | 'vue3'
|
|
12
|
+
FRAMEWORK: 'react' | 'preact' | 'solid' | 'nerv' | 'vue' | 'vue3'
|
|
13
13
|
/** Taro 环境变量 */
|
|
14
14
|
TARO_ENV: 'weapp' | 'h5' | 'rn' | 'swan' | 'alipay' | 'tt' | 'qq' | 'jd' | 'quickapp'
|
|
15
15
|
/** 文件系统中的用户目录路径 (本地路径) */
|
|
@@ -800,6 +800,15 @@ declare module '../../index' {
|
|
|
800
800
|
setPosition(...args: any[]): void
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
+
namespace createInnerAudioContext {
|
|
804
|
+
interface Option {
|
|
805
|
+
/** 是否使用 WebAudio 作为底层音频驱动,默认关闭。对于短音频、播放频繁的音频建议开启此选项,开启后将获得更优的性能表现。由于开启此选项后也会带来一定的内存增长,因此对于长音频建议关闭此选项。
|
|
806
|
+
* @supported weapp
|
|
807
|
+
*/
|
|
808
|
+
useWebAudioImplement: boolean
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
803
812
|
interface TaroStatic {
|
|
804
813
|
/** 结束播放语音。
|
|
805
814
|
* **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口**
|
|
@@ -979,7 +988,7 @@ declare module '../../index' {
|
|
|
979
988
|
* ```
|
|
980
989
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createInnerAudioContext.html
|
|
981
990
|
*/
|
|
982
|
-
createInnerAudioContext(): InnerAudioContext
|
|
991
|
+
createInnerAudioContext(option?: createInnerAudioContext.Option): InnerAudioContext
|
|
983
992
|
|
|
984
993
|
/** 创建 audio 上下文 AudioContext 对象。
|
|
985
994
|
* **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口**
|
|
@@ -256,7 +256,7 @@ declare module '../../index' {
|
|
|
256
256
|
): T
|
|
257
257
|
|
|
258
258
|
/** Taro.getStorageInfo 的同步版本
|
|
259
|
-
* @supported weapp, alipay, swan, jd, qq, tt, h5,
|
|
259
|
+
* @supported weapp, alipay, swan, jd, qq, tt, h5, harmony_hybrid
|
|
260
260
|
* @example
|
|
261
261
|
* ```tsx
|
|
262
262
|
* try {
|
|
@@ -43,7 +43,7 @@ declare module '../../index' {
|
|
|
43
43
|
1
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
namespace deleteBookshelf {
|
|
48
48
|
interface Option {
|
|
49
49
|
/** 要删除的内容分类 */
|
|
@@ -115,13 +115,13 @@ declare module '../../index' {
|
|
|
115
115
|
1
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
|
|
119
119
|
namespace updateBookshelfReadTime {
|
|
120
120
|
interface Option {
|
|
121
121
|
/** 添加的内容分类 */
|
|
122
122
|
category: keyof Category | string
|
|
123
123
|
/** 要更新内容的 id;注释:contentId 为内容 id,内容的唯一标识,自定义,最长 22 字符(不能含有空格、中文字符) */
|
|
124
|
-
contentIds: string[]
|
|
124
|
+
contentIds: string[]
|
|
125
125
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
126
126
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
127
127
|
/** 接口调用失败的回调函数 */
|
|
@@ -278,7 +278,7 @@ declare module '../../index' {
|
|
|
278
278
|
* @see https://smartprogram.baidu.com/docs/develop/api/open/swan-queryBookshelf/
|
|
279
279
|
*/
|
|
280
280
|
updateBookshelfReadTime(option: updateBookshelfReadTime.Option): void
|
|
281
|
-
|
|
281
|
+
|
|
282
282
|
/** 跳转到宿主书架
|
|
283
283
|
* @supported swan
|
|
284
284
|
* @swan (需宿主支持书架入口)
|
|
@@ -304,4 +304,4 @@ declare module '../../index' {
|
|
|
304
304
|
*/
|
|
305
305
|
navigateToBookshelf(option: navigateToBookshelf.Option): void
|
|
306
306
|
}
|
|
307
|
-
}
|
|
307
|
+
}
|
|
@@ -147,7 +147,7 @@ declare module '../index' {
|
|
|
147
147
|
Current: getCurrentInstance.Current
|
|
148
148
|
|
|
149
149
|
/** Vue3 插件,用于设置 `getApp()` 中的全局变量
|
|
150
|
-
* @supported weapp, alipay, h5, rn, jd, qq, swan, tt, quickapp
|
|
150
|
+
* @supported weapp, alipay, h5, rn, jd, qq, swan, tt, quickapp, harmony_hybrid
|
|
151
151
|
* @example
|
|
152
152
|
* ```js
|
|
153
153
|
* // 使用插件
|
|
@@ -238,7 +238,7 @@ declare module '../../index' {
|
|
|
238
238
|
showActionSheet(option: showActionSheet.Option): Promise<showActionSheet.SuccessCallbackResult>
|
|
239
239
|
|
|
240
240
|
/** 隐藏消息提示框
|
|
241
|
-
* @supported weapp, h5, rn, tt,
|
|
241
|
+
* @supported weapp, h5, rn, tt, harmony_hybrid
|
|
242
242
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideToast.html
|
|
243
243
|
*/
|
|
244
244
|
hideToast(option?: hideToast.Option): void
|
|
@@ -66,19 +66,25 @@ declare module '../../index' {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
namespace IntersectionObserver {
|
|
69
|
-
/** 监听相交状态变化的回调函数
|
|
69
|
+
/** 监听相交状态变化的回调函数
|
|
70
|
+
* @description Harmony 找不到对应元素时,回调会返回一个 Error 对象
|
|
71
|
+
*/
|
|
70
72
|
type ObserveCallback = (result: ObserveCallbackResult) => void
|
|
71
|
-
interface ObserveCallbackResult {
|
|
73
|
+
interface ObserveCallbackResult extends TaroGeneral.CallbackResult {
|
|
74
|
+
/** 错误信息,会在找不到对应元素时返回
|
|
75
|
+
* @supported harmony
|
|
76
|
+
*/
|
|
77
|
+
errMsg?: string
|
|
72
78
|
/** 目标边界 */
|
|
73
|
-
boundingClientRect
|
|
79
|
+
boundingClientRect?: BoundingClientRectResult
|
|
74
80
|
/** 相交比例 */
|
|
75
|
-
intersectionRatio
|
|
81
|
+
intersectionRatio?: number
|
|
76
82
|
/** 相交区域的边界 */
|
|
77
|
-
intersectionRect
|
|
83
|
+
intersectionRect?: IntersectionRectResult
|
|
78
84
|
/** 参照区域的边界 */
|
|
79
|
-
relativeRect
|
|
85
|
+
relativeRect?: RelativeRectResult
|
|
80
86
|
/** 相交检测时的时间戳 */
|
|
81
|
-
time
|
|
87
|
+
time?: number
|
|
82
88
|
}
|
|
83
89
|
/** 参照区域的边界 */
|
|
84
90
|
interface RelativeRectResult {
|
|
@@ -5,6 +5,7 @@ import type HtmlWebpackPlugin from 'html-webpack-plugin'
|
|
|
5
5
|
import type { IOption, IPostcssOption, IUrlLoaderOption } from './util'
|
|
6
6
|
import type { OutputOptions as RollupOutputOptions } from 'rollup'
|
|
7
7
|
import type { Compiler, CompilerTypes, CompilerWebpackTypes } from '../compiler'
|
|
8
|
+
import type { OutputExt } from './project'
|
|
8
9
|
|
|
9
10
|
export interface IH5RouterConfig {
|
|
10
11
|
/** 配置路由模式 */
|
|
@@ -40,7 +41,9 @@ export interface IH5Config <T extends CompilerTypes = CompilerWebpackTypes> {
|
|
|
40
41
|
/** webpack 编译模式下,可用于修改、拓展 Webpack 的 output 选项,配置项参考[官方文档](https://webpack.js.org/configuration/output/)
|
|
41
42
|
* vite 编译模式下,用于修改、扩展 rollup 的 output,目前仅适配 chunkFileNames 和 assetFileNames 两个配置,修改其他配置请使用 vite 插件进行修改。配置想参考[官方文档](https://rollupjs.org/configuration-options/)
|
|
42
43
|
*/
|
|
43
|
-
output?: T extends 'vite'
|
|
44
|
+
output?: T extends 'vite'
|
|
45
|
+
? Pick<RollupOutputOptions, 'chunkFileNames' | 'assetFileNames'> & OutputExt
|
|
46
|
+
: Webpack.Configuration['output']
|
|
44
47
|
|
|
45
48
|
/** 路由相关的配置 */
|
|
46
49
|
router?: IH5RouterConfig
|
|
@@ -100,7 +103,7 @@ export interface IH5Config <T extends CompilerTypes = CompilerWebpackTypes> {
|
|
|
100
103
|
/** 配置需要额外的经由 Taro 预设的 postcss 编译的模块 */
|
|
101
104
|
esnextModules?: string[]
|
|
102
105
|
|
|
103
|
-
/** 用于控制在 H5 端是否使用兼容性组件库,详情请看 [React 兼容性组件库](https://taro-docs.jd.com/docs/
|
|
106
|
+
/** 用于控制在 H5 端是否使用兼容性组件库,详情请看 [React 兼容性组件库](https://taro-docs.jd.com/docs/h5#react-兼容性组件库)。(默认值:false) */
|
|
104
107
|
useHtmlComponents?: boolean
|
|
105
108
|
|
|
106
109
|
/** 用于控制在 H5 端是否使用旧版本适配器,旧版本采用全局注册组件,懒加载组件相关依赖;新版本适配器会自动注册相关组件,不再需要引入 @tarojs/components/loader 中的全局 defineCustomElements 方法。(默认值:false) */
|
|
@@ -120,7 +123,7 @@ export interface IH5Config <T extends CompilerTypes = CompilerWebpackTypes> {
|
|
|
120
123
|
}
|
|
121
124
|
/** 生成的代码是否要兼容旧版浏览器,值为 true 时,会去读取 package.json 的 browserslist 字段。只在 vite 编译模式下有效 */
|
|
122
125
|
legacy?: T extends 'vite' ? boolean : undefined
|
|
123
|
-
|
|
126
|
+
|
|
124
127
|
/** 使用的编译工具。可选值:webpack4、webpack5、vite */
|
|
125
128
|
compiler?: Compiler<T>
|
|
126
129
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import type { OutputOptions as RollupOutputOptions } from 'rollup'
|
|
2
|
+
import type Webpack from 'webpack'
|
|
1
3
|
import type Chain from 'webpack-chain'
|
|
2
4
|
|
|
3
5
|
import type { IOption, IPostcssOption, IUrlLoaderOption } from './util'
|
|
4
|
-
import type {
|
|
6
|
+
import type { CompilerTypes, CompilerWebpackTypes } from '../compiler'
|
|
7
|
+
import type { OutputExt } from './project'
|
|
5
8
|
|
|
6
|
-
export interface
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
+
export interface IHarmonyRouterConfig {
|
|
10
|
+
/** 配置自定义路由 */
|
|
11
|
+
customRoutes?: IOption
|
|
12
|
+
}
|
|
9
13
|
|
|
14
|
+
export interface IHarmonyConfig<T extends CompilerTypes = 'vite'> {
|
|
10
15
|
/** Harmony 项目地址 */
|
|
11
16
|
projectPath: string
|
|
12
17
|
|
|
@@ -20,6 +25,24 @@ export interface IHarmonyConfig<T extends CompilerTypes = CompilerWebpackTypes>
|
|
|
20
25
|
*/
|
|
21
26
|
name?: string
|
|
22
27
|
|
|
28
|
+
/** oh-package.json 配置 */
|
|
29
|
+
ohPackage?: {
|
|
30
|
+
dependencies?: { [name: string]: string }
|
|
31
|
+
devDependencies?: { [name: string]: string }
|
|
32
|
+
main?: string
|
|
33
|
+
[k: string]: any
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** ohpm-cli
|
|
37
|
+
* @default "~/Library/Huawei/ohpm/bin/ohpm"
|
|
38
|
+
*/
|
|
39
|
+
ohpm?: string
|
|
40
|
+
|
|
41
|
+
/** 核心依赖前缀
|
|
42
|
+
* @description 用于告诉编译内容如何解析核心依赖,传入时将直接使用依赖前缀,同时不会为工程导入核心依赖
|
|
43
|
+
*/
|
|
44
|
+
chorePackagePrefix?: string
|
|
45
|
+
|
|
23
46
|
/** 用于告诉 Taro 编译器需要抽取的公共文件 */
|
|
24
47
|
commonChunks?: string[] | ((commonChunks: string[]) => string[])
|
|
25
48
|
|
|
@@ -30,6 +53,16 @@ export interface IHarmonyConfig<T extends CompilerTypes = CompilerWebpackTypes>
|
|
|
30
53
|
filter?: (filename: string) => boolean
|
|
31
54
|
}
|
|
32
55
|
|
|
56
|
+
/** 用于配置半编译模式下的选项 */
|
|
57
|
+
compileModeSetting?: {
|
|
58
|
+
componentReplace?: {
|
|
59
|
+
[key: string]: {
|
|
60
|
+
current_init: string
|
|
61
|
+
dependency_define: string
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
33
66
|
/** 用于控制是否生成 js、css 对应的 sourceMap (默认值:watch 模式下为 true,否则为 false) */
|
|
34
67
|
enableSourceMap?: boolean
|
|
35
68
|
|
|
@@ -47,12 +80,15 @@ export interface IHarmonyConfig<T extends CompilerTypes = CompilerWebpackTypes>
|
|
|
47
80
|
webpackChain?: (chain: Chain, webpack: typeof Webpack) => void
|
|
48
81
|
|
|
49
82
|
/** webpack 编译模式下,可用于修改、拓展 Webpack 的 output 选项,配置项参考[官方文档](https://webpack.js.org/configuration/output/)
|
|
50
|
-
|
|
51
|
-
|
|
83
|
+
* vite 编译模式下,用于修改、扩展 rollup 的 output,目前仅适配 chunkFileNames 和 assetFileNames 两个配置,修改其他配置请使用 vite 插件进行修改。配置想参考[官方文档](https://rollupjs.org/configuration-options/)
|
|
84
|
+
*/
|
|
52
85
|
output?: T extends 'vite'
|
|
53
|
-
? Pick<RollupOutputOptions, 'chunkFileNames'>
|
|
86
|
+
? Pick<RollupOutputOptions, 'chunkFileNames'> & OutputExt
|
|
54
87
|
: Webpack.Configuration['output'] & OutputExt
|
|
55
88
|
|
|
89
|
+
/** 路由相关的配置 */
|
|
90
|
+
router?: IHarmonyRouterConfig
|
|
91
|
+
|
|
56
92
|
/** 配置 postcss 相关插件 */
|
|
57
93
|
postcss?: IPostcssOption<'harmony'>
|
|
58
94
|
|
|
@@ -3,6 +3,7 @@ import type Chain from 'webpack-chain'
|
|
|
3
3
|
import type { IOption, IPostcssOption, IUrlLoaderOption } from './util'
|
|
4
4
|
import type { OutputOptions as RollupOutputOptions } from 'rollup'
|
|
5
5
|
import type { Compiler, CompilerTypes, CompilerWebpackTypes } from '../compiler'
|
|
6
|
+
import type { OutputExt } from './project'
|
|
6
7
|
|
|
7
8
|
interface Runtime {
|
|
8
9
|
enableInnerHTML?: boolean
|
|
@@ -14,21 +15,6 @@ interface Runtime {
|
|
|
14
15
|
enableMutationObserver?: boolean
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
interface OutputExt {
|
|
18
|
-
/**
|
|
19
|
-
* 编译前清空输出目录
|
|
20
|
-
* @since Taro v3.6.9
|
|
21
|
-
* @description
|
|
22
|
-
* - 默认清空输出目录,可设置 clean: false 不清空
|
|
23
|
-
* - 可设置 clean: { keep: ['project.config.json'] } 保留指定文件
|
|
24
|
-
* - 注意 clean.keep 不支持函数
|
|
25
|
-
*/
|
|
26
|
-
clean?: boolean | {
|
|
27
|
-
/** 保留指定文件不删除 */
|
|
28
|
-
keep?: Array<string | RegExp> | string | RegExp
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
18
|
export interface IMiniAppConfig<T extends CompilerTypes = CompilerWebpackTypes> {
|
|
33
19
|
/** 用于控制是否生成 js、css 对应的 sourceMap (默认值:watch 模式下为 true,否则为 false) */
|
|
34
20
|
enableSourceMap?: boolean
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type Webpack from 'webpack'
|
|
2
2
|
import type Chain from 'webpack-chain'
|
|
3
3
|
import type { Input } from 'postcss'
|
|
4
|
+
import type { AppConfig } from '../../index'
|
|
4
5
|
import type { Compiler, CompilerTypes, CompilerWebpackTypes } from '../compiler'
|
|
5
6
|
import type { IModifyChainData } from '../hooks'
|
|
6
7
|
import type { ICopyOptions, IOption, ISassOptions, TogglableOptions } from './util'
|
|
@@ -140,7 +141,7 @@ export interface IProjectBaseConfig {
|
|
|
140
141
|
baseLevel?: number
|
|
141
142
|
|
|
142
143
|
/** 使用的开发框架。可选值:react、preact、nerv、vue、vue3 */
|
|
143
|
-
framework?: 'react' | 'preact' | 'nerv' | 'vue' | 'vue3'
|
|
144
|
+
framework?: 'react' | 'preact' | 'solid' | 'nerv' | 'vue' | 'vue3'
|
|
144
145
|
frameworkExts?: string[]
|
|
145
146
|
|
|
146
147
|
/** 使用的编译工具。可选值:webpack4、webpack5 */
|
|
@@ -177,6 +178,8 @@ export interface IProjectBaseConfig {
|
|
|
177
178
|
|
|
178
179
|
onWebpackChainReady?: (webpackChain: Chain) => Promise<any>
|
|
179
180
|
|
|
181
|
+
modifyAppConfig?: (appConfig: AppConfig) => Promise<any>
|
|
182
|
+
|
|
180
183
|
/**
|
|
181
184
|
* 编译中修改 webpack 配置,在这个钩子中,你可以对 webpackChain 作出想要的调整,等同于配置 [`webpackChain`](./config-detail#miniwebpackchain)
|
|
182
185
|
*/
|
|
@@ -294,7 +297,7 @@ export interface IProjectConfig<T extends CompilerTypes = CompilerWebpackTypes>
|
|
|
294
297
|
presets?: PluginItem[]
|
|
295
298
|
|
|
296
299
|
/** 使用的开发框架。可选值:react、preact、nerv、vue、vue3 */
|
|
297
|
-
framework?: 'react' | 'preact' | 'nerv' | 'vue' | 'vue3'
|
|
300
|
+
framework?: 'react' | 'preact' | 'solid' | 'nerv' | 'vue' | 'vue3'
|
|
298
301
|
|
|
299
302
|
/** Webpack5 持久化缓存配置。具体配置请参考 [WebpackConfig.cache](https://webpack.js.org/configuration/cache/#cache) */
|
|
300
303
|
cache?: ICache
|
|
@@ -318,3 +321,18 @@ export interface IProjectConfig<T extends CompilerTypes = CompilerWebpackTypes>
|
|
|
318
321
|
|
|
319
322
|
[key: string]: any
|
|
320
323
|
}
|
|
324
|
+
|
|
325
|
+
export interface OutputExt {
|
|
326
|
+
/**
|
|
327
|
+
* 编译前清空输出目录
|
|
328
|
+
* @since Taro v3.6.9
|
|
329
|
+
* @description
|
|
330
|
+
* - 默认清空输出目录,可设置 clean: false 不清空
|
|
331
|
+
* - 可设置 clean: { keep: ['project.config.json'] } 保留指定文件
|
|
332
|
+
* - 注意 clean.keep 不支持函数
|
|
333
|
+
*/
|
|
334
|
+
clean?: boolean | {
|
|
335
|
+
/** 保留指定文件不删除 */
|
|
336
|
+
keep?: Array<string | RegExp> | string | RegExp
|
|
337
|
+
}
|
|
338
|
+
}
|
|
@@ -20,7 +20,7 @@ export interface IRNConfig {
|
|
|
20
20
|
/** [less](https://lesscss.org/usage/#less-options) 相关配置 */
|
|
21
21
|
less?: IOption
|
|
22
22
|
|
|
23
|
-
/** [stylus](https://github.com/NervJS/taro/blob/
|
|
23
|
+
/** [stylus](https://github.com/NervJS/taro/blob/main/packages/taro-rn-style-transformer/README.md#rnstylus) 相关配置 */
|
|
24
24
|
stylus?: IOption
|
|
25
25
|
|
|
26
26
|
/** 配置 postcss 相关插件 */
|
package/types/compile/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { RecursiveTemplate, UnRecursiveTemplate } from '@tarojs/shared/dist/template'
|
|
2
|
+
import type { AppConfig, PageConfig } from '@tarojs/taro'
|
|
2
3
|
import type { PluginContext } from 'rollup'
|
|
3
|
-
import type { AppConfig, PageConfig } from '../index'
|
|
4
4
|
import type { IMiniFilesConfig, IH5Config, IHarmonyConfig, IMiniAppConfig } from './config'
|
|
5
5
|
import type { IProjectConfig } from './config/project'
|
|
6
6
|
import type { IComponentConfig } from './hooks'
|
|
7
|
+
import type { IFileType } from './index'
|
|
7
8
|
|
|
8
9
|
export interface ViteNativeCompMeta {
|
|
9
10
|
name: string
|
|
@@ -13,6 +14,7 @@ export interface ViteNativeCompMeta {
|
|
|
13
14
|
isNative: true
|
|
14
15
|
templatePath: string
|
|
15
16
|
cssPath?: string
|
|
17
|
+
isPackage?: boolean
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export interface ViteFileType {
|
|
@@ -41,7 +43,6 @@ export interface VitePageMeta {
|
|
|
41
43
|
cssPath?: string
|
|
42
44
|
}
|
|
43
45
|
|
|
44
|
-
|
|
45
46
|
export interface ViteH5BuildConfig extends CommonBuildConfig, IH5Config<'vite'> {
|
|
46
47
|
entryFileName?: string
|
|
47
48
|
runtimePath?: string | string[]
|
|
@@ -53,6 +54,7 @@ export interface ViteHarmonyBuildConfig extends CommonBuildConfig, IHarmonyConfi
|
|
|
53
54
|
useJSON5?: boolean
|
|
54
55
|
blended?: boolean
|
|
55
56
|
runtimePath?: string | string[]
|
|
57
|
+
isPure?: boolean
|
|
56
58
|
taroComponentsPath: string
|
|
57
59
|
}
|
|
58
60
|
|
|
@@ -132,10 +134,11 @@ export interface ViteHarmonyCompilerContext extends ViteCompilerContext<ViteHarm
|
|
|
132
134
|
nativeExt: string[]
|
|
133
135
|
fileType: ViteFileType
|
|
134
136
|
commonChunks: string[]
|
|
137
|
+
extraComponents: string[]
|
|
135
138
|
nativeComponents : Map<string, ViteNativeCompMeta>
|
|
136
139
|
getCommonChunks: () => string[]
|
|
137
140
|
modifyHarmonyConfig: (config: Partial<AppConfig>) => void
|
|
138
|
-
|
|
141
|
+
modifyHostPackage: (deps?: Record<string, string>, devDeps?: Record<string, string>) => Exclude<IHarmonyConfig['ohPackage'], void>
|
|
139
142
|
collectNativeComponents: (meta: ViteAppMeta | VitePageMeta | ViteNativeCompMeta) => void
|
|
140
143
|
getScriptPath: (filePath: string) => string
|
|
141
144
|
getStylePath: (filePath: string) => string
|
package/types/index.d.ts
CHANGED
|
@@ -3,53 +3,64 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 目录结构
|
|
5
5
|
* ├── api 小程序端能力 API
|
|
6
|
-
* │
|
|
6
|
+
* │ ├── ad
|
|
7
7
|
* │ │ └── index.d.ts 广告 API
|
|
8
|
-
* │
|
|
8
|
+
* │ ├── ai
|
|
9
|
+
* │ │ ├── face.d.ts 人脸检测 API
|
|
10
|
+
* │ │ ├── inference.d.ts AI 推理 API
|
|
11
|
+
* │ │ └── visionkit.d.ts 视觉算法 API
|
|
12
|
+
* │ ├── alipay
|
|
9
13
|
* │ │ └── index.d.ts 支付宝小程序 API
|
|
10
|
-
* │
|
|
14
|
+
* │ ├── base
|
|
11
15
|
* │ │ ├── index.d.ts 基础 API
|
|
16
|
+
* │ │ ├── crypto.d.ts 基础 -> 加密 API
|
|
12
17
|
* │ │ ├── debug.d.ts 基础 -> 调试 API
|
|
18
|
+
* │ │ ├── env.d.ts 基础 -> ENV
|
|
19
|
+
* │ │ ├── performance.d.ts
|
|
13
20
|
* │ │ ├── system.d.ts 基础 -> 系统 API
|
|
14
|
-
* │
|
|
15
|
-
* │
|
|
16
|
-
* │
|
|
17
|
-
* │
|
|
18
|
-
* │
|
|
19
|
-
* │ ├── canvas
|
|
21
|
+
* │ │ ├── update.d.ts 基础 -> 更新 API
|
|
22
|
+
* │ │ └── weapp 基础 -> 小程序 API
|
|
23
|
+
* │ │ ├── app-event.d.ts 基础 -> 小程序 API -> 应用级事件
|
|
24
|
+
* │ │ └── life-cycle.d.ts 基础 -> 小程序 API -> 生命周期
|
|
25
|
+
* │ ├── canvas
|
|
20
26
|
* │ │ └── index.d.ts 画布 API
|
|
21
|
-
* │
|
|
27
|
+
* │ ├── cloud
|
|
22
28
|
* │ │ └── index.d.ts 微信小程序云开发 API
|
|
23
|
-
* │
|
|
29
|
+
* │ ├── data-analysis
|
|
24
30
|
* │ │ └── index.d.ts 数据分析 API
|
|
25
|
-
* │
|
|
31
|
+
* │ ├── device
|
|
26
32
|
* │ │ ├── accelerometer.d.ts 设备 -> 加速计 API
|
|
33
|
+
* │ │ ├── accessibility.d.ts 设备 -> 无障碍 API
|
|
27
34
|
* │ │ ├── battery.d.ts 设备 -> 电量 API
|
|
28
|
-
* │
|
|
29
|
-
* │
|
|
35
|
+
* │ │ ├── bluetooth-ble.d.ts 设备 -> 蓝牙-低功耗中心设备 API
|
|
36
|
+
* │ │ ├── bluetooth-peripheral.d.ts 设备 -> 蓝牙-低功耗外围设备 API
|
|
37
|
+
* │ │ ├── bluetooth.d.ts 设备 -> 蓝牙-通用 API
|
|
38
|
+
* │ │ ├── calendar.d.ts 设备 -> 日历 API
|
|
30
39
|
* │ │ ├── clipboard.d.ts 设备 -> 剪贴板 API
|
|
31
40
|
* │ │ ├── compass.d.ts 设备 -> 罗盘 API
|
|
32
41
|
* │ │ ├── contact.d.ts 设备 -> 联系人 API
|
|
33
|
-
* │ │ ├── motion.d.ts 设备 -> 设备方向 API
|
|
34
42
|
* │ │ ├── gyroscope.d.ts 设备 -> 陀螺仪 API
|
|
35
43
|
* │ │ ├── iBeacon.d.ts 设备 -> iBeacon API
|
|
36
|
-
* │
|
|
37
|
-
* │
|
|
38
|
-
* │ │ ├──
|
|
44
|
+
* │ │ ├── keyboard.d.ts 设备 -> 键盘 API
|
|
45
|
+
* │ │ ├── memory.d.ts 设备 -> 内存 API
|
|
46
|
+
* │ │ ├── motion.d.ts 设备 -> 设备方向 API
|
|
47
|
+
* │ │ ├── network.d.ts 设备 -> 网络 API
|
|
48
|
+
* │ │ ├── nfc.d.ts 设备 -> NFC 读写 API
|
|
39
49
|
* │ │ ├── phone.d.ts 设备 -> 电话 API
|
|
40
50
|
* │ │ ├── scan.d.ts 设备 -> 扫码 API
|
|
41
51
|
* │ │ ├── screen.d.ts 设备 -> 屏幕 API
|
|
52
|
+
* │ │ ├── sms.d.ts 设备 -> 短信 API
|
|
42
53
|
* │ │ ├── vibrate.d.ts 设备 -> 振动 API
|
|
43
54
|
* │ │ └── wifi.d.ts 设备 -> Wi-Fi API
|
|
44
|
-
* │
|
|
55
|
+
* │ ├── ext
|
|
45
56
|
* │ │ └── index.d.ts 第三方平台 API
|
|
46
|
-
* │
|
|
57
|
+
* │ ├── files
|
|
47
58
|
* │ │ └── index.d.ts 文件 API
|
|
48
|
-
* │
|
|
59
|
+
* │ ├── framework
|
|
49
60
|
* │ │ └── index.d.ts 小程序框架 API
|
|
50
|
-
* │
|
|
61
|
+
* │ ├── location
|
|
51
62
|
* │ │ └── index.d.ts 位置 API
|
|
52
|
-
* │
|
|
63
|
+
* │ ├── media
|
|
53
64
|
* │ │ ├── audio.d.ts 媒体 -> 音频 API
|
|
54
65
|
* │ │ ├── background-audio.d.ts 媒体 -> 背景音频 API
|
|
55
66
|
* │ │ ├── camera.d.ts 媒体 -> 相机 API
|
|
@@ -57,21 +68,26 @@
|
|
|
57
68
|
* │ │ ├── image.d.ts 媒体 -> 图片 API
|
|
58
69
|
* │ │ ├── live.d.ts 媒体 -> 实时音视频 API
|
|
59
70
|
* │ │ ├── map.d.ts 媒体 -> 地图 API
|
|
71
|
+
* │ │ ├── media-recorder.d.ts 媒体 -> 画面录制器 API
|
|
60
72
|
* │ │ ├── recorder.d.ts 媒体 -> 录音 API
|
|
61
|
-
* │
|
|
73
|
+
* │ │ ├── video-decoder.d.ts 媒体 -> 视频解码器 API
|
|
62
74
|
* │ │ └── video-processing.d.ts 媒体 -> 音视频合成 API
|
|
63
|
-
* │ ├──
|
|
75
|
+
* │ │ ├── video.d.ts 媒体 -> 视频 API
|
|
76
|
+
* │ │ └── voip.d.ts 媒体 -> 实时语音 API
|
|
77
|
+
* │ ├── navigate
|
|
78
|
+
* │ │ └── index.d.ts 跳转 API
|
|
79
|
+
* │ ├── network
|
|
64
80
|
* │ │ ├── download.d.ts 网络 -> 下载 API
|
|
65
81
|
* │ │ ├── mdns.d.ts 网络 -> mDNS API
|
|
66
82
|
* │ │ ├── request.d.ts 网络 -> 发起请求 API
|
|
83
|
+
* │ │ ├── tcp.d.ts 网络 -> TCP 通信 API
|
|
67
84
|
* │ │ ├── udp.d.ts 网络 -> UDP 通信 API
|
|
68
85
|
* │ │ ├── upload.d.ts 网络 -> 上传 API
|
|
69
86
|
* │ │ └── websocket.d.ts 网络 -> WebSocket API
|
|
70
|
-
* │
|
|
87
|
+
* │ ├── open-api
|
|
71
88
|
* │ │ ├── account.d.ts 开放接口 -> 账号信息 API
|
|
72
89
|
* │ │ ├── address.d.ts 开放接口 -> 收货地址 API
|
|
73
90
|
* │ │ ├── authorize.d.ts 开放接口 -> 授权 API
|
|
74
|
-
* │ │ ├── bookshelf.d.ts 开放接口 -> 书架 API
|
|
75
91
|
* │ │ ├── card.d.ts 开放接口 -> 卡券 API
|
|
76
92
|
* | | ├── channels.d.ts 开放接口 -> 视频号 API
|
|
77
93
|
* | | ├── customer-service.d.ts 开放接口 -> 微信客服 API
|
|
@@ -80,11 +96,10 @@
|
|
|
80
96
|
* │ │ ├── favorites.d.ts 开放接口 -> 收藏 API
|
|
81
97
|
* │ │ ├── group.d.ts 开放接口 -> 微信群 API
|
|
82
98
|
* │ │ ├── invoice.d.ts 开放接口 -> 发票 API
|
|
83
|
-
* │
|
|
99
|
+
* │ │ ├── license-plate.d.ts 开放接口 -> 车牌 API
|
|
84
100
|
* │ │ ├── login.d.ts 开放接口 -> 登录 API
|
|
85
101
|
* │ │ ├── my-miniprogram.d.ts 开放接口 -> 我的小程序 API
|
|
86
102
|
* │ │ ├── privacy.d.ts 开放接口 -> 隐私信息授权 API
|
|
87
|
-
* │ │ ├── payment.d.ts 开放接口 -> 支付 API
|
|
88
103
|
* │ │ ├── redpackage.d.ts 开放接口 -> 微信红包 API
|
|
89
104
|
* │ │ ├── settings.d.ts 开放接口 -> 设置 API
|
|
90
105
|
* │ │ ├── soter.d.ts 开放接口 -> 生物认证 API
|
|
@@ -92,23 +107,33 @@
|
|
|
92
107
|
* | | ├── subscribe-message.d.ts 开放接口 -> 订阅消息 API
|
|
93
108
|
* │ │ ├── user-info.d.ts 开放接口 -> 用户信息 API
|
|
94
109
|
* │ │ └── werun.d.ts 开放接口 -> 微信运动 API
|
|
95
|
-
* │
|
|
110
|
+
* │ ├── payment
|
|
111
|
+
* │ │ └── index.d.ts 支付 API
|
|
112
|
+
* │ ├── qq
|
|
113
|
+
* │ │ └── index.d.ts QQ 小程序 API
|
|
114
|
+
* │ ├── route
|
|
96
115
|
* │ │ └── index.d.ts 路由 API
|
|
97
|
-
* │
|
|
116
|
+
* │ ├── share
|
|
98
117
|
* │ │ └── index.d.ts 转发 API
|
|
99
|
-
* │
|
|
118
|
+
* │ ├── skyline
|
|
100
119
|
* │ │ └── index.d.ts 微信 Skyline API
|
|
101
|
-
* │
|
|
120
|
+
* │ ├── storage
|
|
102
121
|
* │ │ ├── background-fetch.d.ts 数据缓存 -> 后台获取 API
|
|
103
|
-
* │
|
|
104
|
-
* │
|
|
122
|
+
* │ │ ├── cache-manager.d.ts 数据缓存 -> 缓存管理 API
|
|
123
|
+
* │ │ └── index.d.ts 数据缓存 API
|
|
124
|
+
* │ ├── swan
|
|
125
|
+
* │ │ ├── bookshelf.d.ts 百度小程序 -> 书架 API
|
|
126
|
+
* │ │ ├── download-package.d.ts 百度小程序 -> 下载包 API
|
|
105
127
|
* │ │ └── index.d.ts 百度小程序 API
|
|
106
|
-
* │
|
|
128
|
+
* │ │ └── pay.d.ts 百度小程序 -> 支付 API
|
|
129
|
+
* │ ├── taro.extend.d.ts Taro 扩展 API 类型定义
|
|
130
|
+
* │ ├── taro.hooks.d.ts Taro Hooks 类型定义
|
|
131
|
+
* │ ├── ui
|
|
107
132
|
* │ │ ├── animation.d.ts 界面 -> 动画 API
|
|
108
133
|
* │ │ ├── background.d.ts 界面 -> 背景 API
|
|
109
134
|
* │ │ ├── custom-component.d.ts 界面 -> 自定义组件 API
|
|
110
135
|
* │ │ ├── fonts.d.ts 界面 -> 字体 API
|
|
111
|
-
* │
|
|
136
|
+
* │ │ ├── interaction.d.ts 界面 -> 交互 API
|
|
112
137
|
* │ │ ├── menu.d.ts 界面 -> 菜单 API
|
|
113
138
|
* │ │ ├── navigation-bar.d.ts 界面 -> 导航栏 API
|
|
114
139
|
* │ │ ├── pull-down-refresh.d.ts 界面 -> 下拉刷新 API
|
|
@@ -116,14 +141,25 @@
|
|
|
116
141
|
* │ │ ├── sticky.d.ts 界面 -> 置顶 API
|
|
117
142
|
* │ │ ├── tab-bar.d.ts 界面 -> TabBar API
|
|
118
143
|
* │ │ ├── window.d.ts 界面 -> 窗口 API
|
|
119
|
-
* │
|
|
120
|
-
* │ ├── worker
|
|
144
|
+
* │ ├── worker
|
|
121
145
|
* │ │ └── index.d.ts Worker API
|
|
122
|
-
* │
|
|
146
|
+
* │ └── wxml
|
|
123
147
|
* │ │ └── index.d.ts WXML API
|
|
124
|
-
*
|
|
125
|
-
* │
|
|
148
|
+
* ├── compile
|
|
149
|
+
* │ ├── compiler.d.ts
|
|
150
|
+
* │ ├── config
|
|
151
|
+
* │ │ ├── h5.d.ts
|
|
152
|
+
* │ │ ├── index.d.ts
|
|
153
|
+
* │ │ ├── manifest.d.ts
|
|
154
|
+
* │ │ ├── mini.d.ts
|
|
155
|
+
* │ │ ├── project.d.ts
|
|
156
|
+
* │ │ ├── rn.d.ts
|
|
157
|
+
* │ │ └── util.d.ts
|
|
158
|
+
* │ ├── hooks.d.ts Taro Hooks 类型定义
|
|
159
|
+
* │ └── index.d.ts
|
|
160
|
+
* ├── global.d.ts
|
|
126
161
|
* ├── index.d.ts 此文件
|
|
162
|
+
* ├── taro.api.d.ts
|
|
127
163
|
* ├── taro.component.d.ts Taro Component 类型定义
|
|
128
164
|
* ├── taro.config.d.ts Taro 小程序 App 与 Window 设置类型定义
|
|
129
165
|
* └── taro.lifecycle.d.ts Taro 生命周期类型定义
|
|
@@ -135,6 +171,7 @@
|
|
|
135
171
|
/// <reference path="taro.component.d.ts" />
|
|
136
172
|
/// <reference path="taro.config.d.ts" />
|
|
137
173
|
/// <reference path="taro.lifecycle.d.ts" />
|
|
174
|
+
/// <reference path="taro.runtime.d.ts" />
|
|
138
175
|
|
|
139
176
|
/// <reference types="@tarojs/plugin-platform-alipay/types/shims-alipay" />
|
|
140
177
|
/// <reference types="@tarojs/plugin-platform-jd/types/shims-jd" />
|
|
@@ -154,6 +191,6 @@ declare namespace Taro {
|
|
|
154
191
|
interface TaroStatic {}
|
|
155
192
|
}
|
|
156
193
|
declare global {
|
|
157
|
-
const defineAppConfig: (config: Taro.
|
|
158
|
-
const definePageConfig: (config: Taro.
|
|
194
|
+
const defineAppConfig: (config: Taro.AppConfig) => Taro.AppConfig
|
|
195
|
+
const definePageConfig: (config: Taro.PageConfig) => Taro.Config
|
|
159
196
|
}
|
package/types/taro.api.d.ts
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
/// <reference path="api/open-api/account.d.ts" />
|
|
64
64
|
/// <reference path="api/open-api/address.d.ts" />
|
|
65
65
|
/// <reference path="api/open-api/authorize.d.ts" />
|
|
66
|
-
/// <reference path="api/open-api/bookshelf.d.ts" />
|
|
67
66
|
/// <reference path="api/open-api/card.d.ts" />
|
|
68
67
|
/// <reference path="api/open-api/channels.d.ts" />
|
|
69
68
|
/// <reference path="api/open-api/customer-service.d.ts" />
|
|
@@ -121,6 +120,7 @@
|
|
|
121
120
|
/// <reference path="api/alipay/index.d.ts" />
|
|
122
121
|
/// <reference path="api/qq/index.d.ts" />
|
|
123
122
|
|
|
123
|
+
/// <reference path="api/swan/bookshelf.d.ts" />
|
|
124
124
|
/// <reference path="api/swan/download-package.d.ts" />
|
|
125
125
|
/// <reference path="api/swan/index.d.ts" />
|
|
126
126
|
/// <reference path="api/swan/pay.d.ts" />
|
|
@@ -19,6 +19,7 @@ declare module './index' {
|
|
|
19
19
|
shareTicket: string | undefined
|
|
20
20
|
scene: number | undefined
|
|
21
21
|
exitState?: any
|
|
22
|
+
$taroPath?: string
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
interface Show {
|
|
@@ -139,5 +140,7 @@ declare module './index' {
|
|
|
139
140
|
path?: string
|
|
140
141
|
/** 页面的组件选项 */
|
|
141
142
|
options?: Record<string, unknown>
|
|
143
|
+
/** 获得一个 EventChannel 对象,用于页面间通讯 */
|
|
144
|
+
getOpenerEventChannel?(): Record<string, any>
|
|
142
145
|
}
|
|
143
146
|
}
|
package/types/taro.config.d.ts
CHANGED
|
@@ -32,9 +32,14 @@ declare module './index' {
|
|
|
32
32
|
* @default: "#ffffff"
|
|
33
33
|
*/
|
|
34
34
|
backgroundColor?: string
|
|
35
|
+
/** 页面容器背景色, HexColor
|
|
36
|
+
* @see: https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/custom-route.html#%E8%AE%BE%E7%BD%AE%E9%A1%B5%E9%9D%A2%E9%80%8F%E6%98%8E
|
|
37
|
+
* @default: "#ffffff"
|
|
38
|
+
*/
|
|
39
|
+
backgroundColorContent?: string
|
|
35
40
|
/** 下拉背景字体、loading 图的样式,仅支持 dark/light
|
|
36
41
|
* 当 app.json 中配置 darkmode 为 true 时可通过变量的形式配置
|
|
37
|
-
* @see: https://developers.weixin.qq.com/miniprogram/dev/framework/ability/darkmode.html
|
|
42
|
+
* @see: https://developers.weixin.qq.com/miniprogram/dev/framework/ability/darkmode.html
|
|
38
43
|
* @default: "dark"
|
|
39
44
|
*/
|
|
40
45
|
backgroundTextStyle?: 'dark' | 'light' | string
|
|
@@ -424,7 +429,7 @@ declare module './index' {
|
|
|
424
429
|
decodeQuery?: 'disable'
|
|
425
430
|
}
|
|
426
431
|
|
|
427
|
-
interface AppConfig {
|
|
432
|
+
export interface AppConfig {
|
|
428
433
|
/** 小程序默认启动首页,未指定 entryPagePath 时,数组的第一项代表小程序的初始页面(首页)。 */
|
|
429
434
|
entryPagePath?: string
|
|
430
435
|
/** 接受一个数组,每一项都是字符串,来指定小程序由哪些页面组成,数组的第一项代表小程序的初始页面 */
|
|
@@ -561,7 +566,7 @@ declare module './index' {
|
|
|
561
566
|
*/
|
|
562
567
|
themeLocation?: string
|
|
563
568
|
/** 配置自定义组件代码按需注入 */
|
|
564
|
-
lazyCodeLoading?: string
|
|
569
|
+
lazyCodeLoading?: 'requiredComponents' | string
|
|
565
570
|
/** 单页模式相关配置 */
|
|
566
571
|
singlePage?: SinglePage
|
|
567
572
|
/** 聊天素材小程序打开相关配置
|