@tarojs/taro 3.6.14 → 3.6.16-alpha.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "3.6.14",
3
+ "version": "3.6.16-alpha.0",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -21,11 +21,11 @@
21
21
  "author": "O2Team",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@tarojs/api": "3.6.14",
25
- "@tarojs/runtime": "3.6.14"
24
+ "@tarojs/api": "3.6.16-alpha.0",
25
+ "@tarojs/runtime": "3.6.16-alpha.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@tarojs/helper": "3.6.14"
28
+ "@tarojs/helper": "3.6.16-alpha.0"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "@types/react": {
@@ -41,17 +41,17 @@ declare module '../../index' {
41
41
  * @supported weapp
42
42
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offClose.html
43
43
  */
44
- offClose(callback: InterstitialAd.OffCloseCallback): void
44
+ offClose(callback: InterstitialAd.OnCloseCallback): void
45
45
  /** 取消监听插屏错误事件
46
46
  * @supported weapp
47
47
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offError.html
48
48
  */
49
- offError(callback: InterstitialAd.OffErrorCallback): void
49
+ offError(callback: InterstitialAd.OnErrorCallback): void
50
50
  /** 取消监听插屏广告加载事件
51
51
  * @supported weapp
52
52
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offLoad.html
53
53
  */
54
- offLoad(callback: InterstitialAd.OffLoadCallback): void
54
+ offLoad(callback: InterstitialAd.OnLoadCallback): void
55
55
  /** 监听插屏广告关闭事件。
56
56
  * @supported weapp
57
57
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.onClose.html
@@ -91,12 +91,6 @@ declare module '../../index' {
91
91
  show(): Promise<any>
92
92
  }
93
93
  namespace InterstitialAd {
94
- /** 插屏广告关闭事件的回调函数 */
95
- type OffCloseCallback = (res: TaroGeneral.CallbackResult) => void
96
- /** 插屏错误事件的回调函数 */
97
- type OffErrorCallback = (res: TaroGeneral.CallbackResult) => void
98
- /** 插屏广告加载事件的回调函数 */
99
- type OffLoadCallback = (res: TaroGeneral.CallbackResult) => void
100
94
  /** 插屏广告关闭事件的回调函数 */
101
95
  type OnCloseCallback = (res: TaroGeneral.CallbackResult) => void
102
96
  /** 插屏错误事件的回调函数 */
@@ -137,17 +131,17 @@ declare module '../../index' {
137
131
  * @supported weapp
138
132
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offClose.html
139
133
  */
140
- offClose(callback: RewardedVideoAd.OffCloseCallback): void
134
+ offClose(callback: RewardedVideoAd.OnCloseCallback): void
141
135
  /** 取消监听激励视频错误事件
142
136
  * @supported weapp
143
137
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offError.html
144
138
  */
145
- offError(callback: RewardedVideoAd.OffErrorCallback): void
139
+ offError(callback: RewardedVideoAd.OnErrorCallback): void
146
140
  /** 取消监听激励视频广告加载事件
147
141
  * @supported weapp
148
142
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offLoad.html
149
143
  */
150
- offLoad(callback: RewardedVideoAd.OffLoadCallback): void
144
+ offLoad(callback: RewardedVideoAd.OnLoadCallback): void
151
145
  /** 监听用户点击 `关闭广告` 按钮的事件。
152
146
  * @supported weapp
153
147
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.onClose.html
@@ -179,12 +173,6 @@ declare module '../../index' {
179
173
  isEnded: boolean
180
174
  }
181
175
  /** 用户点击 `关闭广告` 按钮的事件的回调函数 */
182
- type OffCloseCallback = (res: TaroGeneral.CallbackResult) => void
183
- /** 激励视频错误事件的回调函数 */
184
- type OffErrorCallback = (res: TaroGeneral.CallbackResult) => void
185
- /** 激励视频广告加载事件的回调函数 */
186
- type OffLoadCallback = (res: TaroGeneral.CallbackResult) => void
187
- /** 用户点击 `关闭广告` 按钮的事件的回调函数 */
188
176
  type OnCloseCallback = (result: OnCloseCallbackResult) => void
189
177
  /** 激励视频错误事件的回调函数 */
190
178
  type OnErrorCallback = (result: OnErrorCallbackResult) => void
@@ -57,17 +57,17 @@ declare module '../../index' {
57
57
  * @supported weapp
58
58
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.offError.html
59
59
  */
60
- offError(callback?: InferenceSession.OffErrorCallback): void
60
+ offError(callback?: InferenceSession.OnErrorCallback): void
61
61
  /** 取消监听模型加载完成事件
62
62
  * @supported weapp
63
63
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.offLoad.html
64
64
  */
65
- offLoad(callback?: InferenceSession.OffLoadCallback): void
65
+ offLoad(callback?: InferenceSession.OnLoadCallback): void
66
66
  /** 监听模型加载失败事件
67
67
  * @supported weapp
68
68
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.onError.html
69
69
  */
70
- onError(callback: InferenceSession.OnLoadCallback): void
70
+ onError(callback: InferenceSession.OnErrorCallback): void
71
71
  /** 监听模型加载完成事件
72
72
  * @supported weapp
73
73
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.onLoad.html
@@ -103,12 +103,8 @@ declare module '../../index' {
103
103
  [key: string]: Tensor
104
104
  }
105
105
 
106
- /** 模型加载失败回调函数。*/
107
- type OffErrorCallback = (res: TaroGeneral.CallbackResult) => void
108
- /** 模型加载完成回调函数 */
109
- type OffLoadCallback = (res: TaroGeneral.CallbackResult) => void
110
106
  /** 模型加载失败回调函数 */
111
- type OnLoadCallback = (res: TaroGeneral.CallbackResult) => void
107
+ type OnErrorCallback = (res: TaroGeneral.CallbackResult) => void
112
108
  /** 模型加载完成回调函数 */
113
109
  type OnLoadCallback = (res: TaroGeneral.CallbackResult) => void
114
110
  }
@@ -292,83 +292,83 @@ declare module '../../index' {
292
292
  /** 音频进入可以播放状态,但不保证后面可以流畅播放
293
293
  * @supported weapp, h5, rn
294
294
  */
295
- onCanplay(callback?: () => void): void
295
+ onCanplay(callback?: InnerAudioContext.OnCanplayCallback): void
296
296
  /** 音频播放事件
297
297
  * @supported weapp, h5, rn
298
298
  */
299
- onPlay(callback?: () => void): void
299
+ onPlay(callback?: InnerAudioContext.OnPlayCallback): void
300
300
  /** 音频暂停事件
301
301
  * @supported weapp, h5, rn
302
302
  */
303
- onPause(callback?: () => void): void
303
+ onPause(callback?: InnerAudioContext.OnPauseCallback): void
304
304
  /** 音频停止事件
305
305
  * @supported weapp, h5, rn
306
306
  */
307
- onStop(callback?: () => void): void
307
+ onStop(callback?: InnerAudioContext.OnStopCallback): void
308
308
  /** 音频自然播放结束事件
309
309
  * @supported weapp, h5, rn
310
310
  */
311
- onEnded(callback?: () => void): void
311
+ onEnded(callback?: InnerAudioContext.OnEndedCallback): void
312
312
  /** 音频播放进度更新事件
313
313
  * @supported weapp, h5, rn
314
314
  */
315
- onTimeUpdate(callback?: () => void): void
315
+ onTimeUpdate(callback?: InnerAudioContext.OnTimeUpdateCallback): void
316
316
  /** 音频播放错误事件
317
317
  * @supported weapp, h5, rn
318
318
  */
319
- onError(callback?: (res: InnerAudioContext.onErrorDetail) => void): void
319
+ onError(callback?: InnerAudioContext.OnErrorCallback): void
320
320
  /** 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
321
321
  * @supported weapp, h5, rn
322
322
  */
323
- onWaiting(callback?: () => void): void
323
+ onWaiting(callback?: InnerAudioContext.OnWaitingCallback): void
324
324
  /** 音频进行 seek 操作事件
325
325
  * @supported weapp, h5, rn
326
326
  */
327
- onSeeking(callback?: () => void): void
327
+ onSeeking(callback?: InnerAudioContext.OnSeekingCallback): void
328
328
  /** 音频完成 seek 操作事件
329
329
  * @supported weapp, h5, rn
330
330
  */
331
- onSeeked(callback?: () => void): void
332
- /** 取消监听 onCanplay 事件
331
+ onSeeked(callback?: InnerAudioContext.OnSeekedCallback): void
332
+ /** 取消监听 canplay 事件
333
333
  * @supported weapp, h5, rn
334
334
  */
335
- offCanplay(callback?: () => void): void
336
- /** 取消监听 onPlay 事件
335
+ offCanplay(callback?: InnerAudioContext.OnCanplayCallback): void
336
+ /** 取消监听 play 事件
337
337
  * @supported weapp, h5, rn
338
338
  */
339
- offPlay(callback?: () => void): void
340
- /** 取消监听 onPause 事件
339
+ offPlay(callback?: InnerAudioContext.OnPlayCallback): void
340
+ /** 取消监听 pause 事件
341
341
  * @supported weapp, h5, rn
342
342
  */
343
- offPause(callback?: () => void): void
344
- /** 取消监听 onStop 事件
343
+ offPause(callback?: InnerAudioContext.OnPauseCallback): void
344
+ /** 取消监听 stop 事件
345
345
  * @supported weapp, h5, rn
346
346
  */
347
- offStop(callback?: () => void): void
348
- /** 取消监听 onEnded 事件
347
+ offStop(callback?: InnerAudioContext.OnStopCallback): void
348
+ /** 取消监听 ended 事件
349
349
  * @supported weapp, h5, rn
350
350
  */
351
- offEnded(callback?: () => void): void
352
- /** 取消监听 onTimeUpdate 事件
351
+ offEnded(callback?: InnerAudioContext.OnEndedCallback): void
352
+ /** 取消监听 timeUpdate 事件
353
353
  * @supported weapp, h5, rn
354
354
  */
355
- offTimeUpdate(callback?: () => void): void
356
- /** 取消监听 onError 事件
355
+ offTimeUpdate(callback?: InnerAudioContext.OnTimeUpdateCallback): void
356
+ /** 取消监听 error 事件
357
357
  * @supported weapp, h5, rn
358
358
  */
359
- offError(callback?: () => void): void
360
- /** 取消监听 onWaiting 事件
359
+ offError(callback?: InnerAudioContext.OnErrorCallback): void
360
+ /** 取消监听 waiting 事件
361
361
  * @supported weapp, h5, rn
362
362
  */
363
- offWaiting(callback?: () => void): void
364
- /** 取消监听 onSeeking 事件
363
+ offWaiting(callback?: InnerAudioContext.OnWaitingCallback): void
364
+ /** 取消监听 seeking 事件
365
365
  * @supported weapp, h5, rn
366
366
  */
367
- offSeeking(callback?: () => void): void
368
- /** 取消监听 onSeeked 事件
367
+ offSeeking(callback?: InnerAudioContext.OnSeekingCallback): void
368
+ /** 取消监听 seeked 事件
369
369
  * @supported weapp, h5, rn
370
370
  */
371
- offSeeked(callback?: () => void): void
371
+ offSeeked(callback?: InnerAudioContext.OnSeekedCallback): void
372
372
  }
373
373
 
374
374
  namespace InnerAudioContext {
@@ -391,6 +391,26 @@ declare module '../../index' {
391
391
  /** 未知错误 */
392
392
  '-1'
393
393
  }
394
+ /** 音频进入可以播放状态事件的回调函数 */
395
+ type OnCanplayCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
396
+ /** 音频播放事件的回调函数 */
397
+ type OnPlayCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
398
+ /** 音频暂停事件的回调函数 */
399
+ type OnPauseCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
400
+ /** 音频停止事件的回调函数 */
401
+ type OnStopCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
402
+ /** 音频自然播放结束事件的回调函数 */
403
+ type OnEndedCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
404
+ /** 音频播放进度更新事件的回调函数 */
405
+ type OnTimeUpdateCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
406
+ /** 音频播放错误事件的回调函数 */
407
+ type OnErrorCallback = (res: onErrorDetail) => void
408
+ /** 音频加载中事件的回调函数 */
409
+ type OnWaitingCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
410
+ /** 音频进行 seek 操作事件的回调函数 */
411
+ type OnSeekingCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
412
+ /** 音频完成 seek 操作事件的回调函数 */
413
+ type OnSeekedCallback = (res: Partial<TaroGeneral.CallbackResult>) => void
394
414
  }
395
415
 
396
416
  /** MediaAudioPlayer 实例,可通过 [Taro.createMediaAudioPlayer](./createMediaAudioPlayer) 接口获取实例。
@@ -57,14 +57,6 @@ declare module '../../index' {
57
57
  }
58
58
 
59
59
  namespace DownloadTask {
60
- /** HTTP Response Header 事件的回调函数 */
61
- type OffHeadersReceivedCallback = (
62
- res: TaroGeneral.CallbackResult,
63
- ) => void
64
- /** 下载进度变化事件的回调函数 */
65
- type OffProgressUpdateCallback = (
66
- res: TaroGeneral.CallbackResult,
67
- ) => void
68
60
  /** HTTP Response Header 事件的回调函数 */
69
61
  type OnHeadersReceivedCallback = (
70
62
  result: OnHeadersReceivedCallbackResult,
@@ -135,7 +127,7 @@ declare module '../../index' {
135
127
  */
136
128
  offProgressUpdate(
137
129
  /** 下载进度变化事件的回调函数 */
138
- callback: DownloadTask.OffProgressUpdateCallback,
130
+ callback: DownloadTask.OnProgressUpdateCallback,
139
131
  ): void
140
132
  /** 监听 HTTP Response Header 事件。会比请求完成事件更早
141
133
  * @supported weapp, h5
@@ -151,7 +143,7 @@ declare module '../../index' {
151
143
  */
152
144
  offHeadersReceived(
153
145
  /** HTTP Response Header 事件的回调函数 */
154
- callback: DownloadTask.OffHeadersReceivedCallback,
146
+ callback: DownloadTask.OnHeadersReceivedCallback,
155
147
  ): void
156
148
  }
157
149
 
@@ -56,14 +56,6 @@ declare module '../../index' {
56
56
  }
57
57
 
58
58
  namespace UploadTask {
59
- /** HTTP Response Header 事件的回调函数 */
60
- type OffHeadersReceivedCallback = (
61
- res: TaroGeneral.CallbackResult,
62
- ) => void
63
- /** 上传进度变化事件的回调函数 */
64
- type OffProgressUpdateCallback = (
65
- res: TaroGeneral.CallbackResult,
66
- ) => void
67
59
  /** HTTP Response Header 事件的回调函数 */
68
60
  type OnHeadersReceivedCallback = (
69
61
  result: OnHeadersReceivedCallbackResult,
@@ -138,7 +130,7 @@ declare module '../../index' {
138
130
  */
139
131
  offProgressUpdate(
140
132
  /** 上传进度变化事件的回调函数 */
141
- callback: UploadTask.OffProgressUpdateCallback,
133
+ callback: UploadTask.OnProgressUpdateCallback,
142
134
  ): void
143
135
  /** 监听 HTTP Response Header 事件。会比请求完成事件更早
144
136
  * @supported weapp, h5
@@ -154,7 +146,7 @@ declare module '../../index' {
154
146
  */
155
147
  offHeadersReceived(
156
148
  /** HTTP Response Header 事件的回调函数 */
157
- callback: UploadTask.OffHeadersReceivedCallback,
149
+ callback: UploadTask.OnHeadersReceivedCallback,
158
150
  ): void
159
151
  }
160
152
 
@@ -0,0 +1,90 @@
1
+ import Taro from '../../index'
2
+
3
+ declare module '../../index' {
4
+ namespace getPrivacySetting {
5
+ interface Option {
6
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
7
+ complete?: (res: TaroGeneral.CallbackResult) => void;
8
+ /** 接口调用失败的回调函数 */
9
+ fail?: (res: TaroGeneral.CallbackResult) => void;
10
+ /** 接口调用成功的回调函数 */
11
+ success?: (result: SuccessCallbackResult) => void;
12
+ }
13
+ interface SuccessCallbackResult extends TaroGeneral.CallbackResult {
14
+ /** 是否需要用户授权隐私协议(如果开发者没有在[mp后台-设置-服务内容声明-用户隐私保护指引]中声明隐私收集类型则会返回false;如果开发者声明了隐私收集,且用户之前同意过隐私协议则会返回false;如果开发者声明了隐私收集,且用户还没同意过则返回true;如果用户之前同意过、但后来小程序又新增了隐私收集类型也会返回true) */
15
+ needAuthorization: boolean;
16
+ /** 隐私授权协议的名称 */
17
+ privacyContractName: string;
18
+ }
19
+ }
20
+
21
+ namespace requirePrivacyAuthorize {
22
+ interface Option {
23
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
24
+ complete?: (res: TaroGeneral.CallbackResult) => void;
25
+ /** 接口调用失败的回调函数 */
26
+ fail?: (res: TaroGeneral.CallbackResult) => void;
27
+ /** 接口调用成功的回调函数 */
28
+ success?: (result: TaroGeneral.CallbackResult) => void;
29
+ }
30
+ }
31
+
32
+ namespace openPrivacyContract {
33
+ interface Option {
34
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
35
+ complete?: (res: TaroGeneral.CallbackResult) => void;
36
+ /** 接口调用失败的回调函数 */
37
+ fail?: (res: TaroGeneral.CallbackResult) => void;
38
+ /** 接口调用成功的回调函数 */
39
+ success?: (result: TaroGeneral.CallbackResult) => void;
40
+ }
41
+ }
42
+
43
+ namespace onNeedPrivacyAuthorization {
44
+ /**
45
+ * resolve 是 onNeedPrivacyAuthorization 的回调参数,是一个接口函数。
46
+ * 当触发 needPrivacyAuthorization 事件时,触发该事件的隐私接口或组件会处于 pending 状态。
47
+ * 如果调用 resolve({ buttonId: 'disagree-btn', event:'agree' }),则触发当前 needPrivacyAuthorization 事件的原隐私接口或组件会继续执行。其中 buttonId 为隐私同意授权按钮的id,为确保用户有同意的操作,基础库会检查对应的同意按钮是否被点击过。
48
+ * 如果调用 resolve({ event: 'disagree' }),则触发当前 needPrivacyAuthorization 事件的原隐私接口或组件会失败并返回 API:fail privacy permission is not authorized 的错误信息。
49
+ * 在调用 resolve({ event: 'agree'/'disagree' }) 之前,开发者可以调用 resolve({ event: 'exposureAuthorization' }) 把隐私弹窗曝光告知平台。
50
+ */
51
+ interface ResolveOption {
52
+ /** 用户操作类型 */
53
+ event: 'exposureAuthorization' | 'agree' | 'disagree';
54
+ /** 同意授权按钮的id (仅event=agree时必填) */
55
+ buttonId?: string;
56
+ }
57
+ /**
58
+ * 触发本次 onNeedPrivacyAuthorization 事件的关联信息
59
+ */
60
+ interface EventInfo {
61
+ referrer: string
62
+ }
63
+
64
+ type Resolve = (option: ResolveOption) => void;
65
+ type Listener = (resolve: Resolve, eventInfo: EventInfo) => void;
66
+ }
67
+
68
+ interface TaroStatic {
69
+ /**
70
+ * 查询隐私授权情况。隐私合规开发指南详情可见《小程序隐私协议开发指南》
71
+ * @supported weapp
72
+ */
73
+ getPrivacySetting: (option?: getPrivacySetting.Option) => void;
74
+ /**
75
+ * 跳转至隐私协议页面。隐私合规开发指南详情可见《小程序隐私协议开发指南》
76
+ * @supported weapp
77
+ */
78
+ openPrivacyContract: (option?: openPrivacyContract.Option) => void;
79
+ /**
80
+ * 模拟隐私接口调用,并触发隐私弹窗逻辑。隐私合规开发指南详情可见《小程序隐私协议开发指南》
81
+ * @supported weapp
82
+ */
83
+ requirePrivacyAuthorize: (option?: requirePrivacyAuthorize.Option) => void;
84
+ /**
85
+ * 监听隐私接口需要用户授权事件。当需要用户进行隐私授权时会触发。触发该事件时,开发者需要弹出隐私协议说明,并在用户同意或拒绝授权后调用回调接口 resolve 触发原隐私接口或组件继续执行。隐私合规开发指南详情可见《小程序隐私协议开发指南》
86
+ * @supported weapp
87
+ */
88
+ onNeedPrivacyAuthorization: (listener: onNeedPrivacyAuthorization.Listener) => void;
89
+ }
90
+ }
@@ -156,6 +156,7 @@ declare module '../../index' {
156
156
 
157
157
  /** 关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面。
158
158
  * @supported weapp, h5, rn, tt
159
+ * @h5 未针对 tabbar 页面做限制处理
159
160
  * @example
160
161
  * ```tsx
161
162
  * Taro.redirectTo({
@@ -168,6 +169,7 @@ declare module '../../index' {
168
169
 
169
170
  /** 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 Taro.navigateBack 可以返回到原页面。小程序中页面栈最多十层。
170
171
  * @supported weapp, h5, rn, tt
172
+ * @h5 未针对 tabbar 页面做限制处理
171
173
  * @example
172
174
  * ```tsx
173
175
  * Taro.navigateTo({
@@ -83,7 +83,7 @@ declare module '../index' {
83
83
  /** 尺寸转换
84
84
  * @supported global
85
85
  */
86
- pxTransform(size: number, designWidth?: number): string
86
+ pxTransform(size: number): string
87
87
 
88
88
  /** 尺寸转换初始化
89
89
  * @supported global
@@ -622,6 +622,12 @@ declare module './index' {
622
622
  */
623
623
  useAuthorizePage: boolean
624
624
  }
625
+ /**
626
+ * 在 2023年9月15号之前,在 app.json 中配置 __usePrivacyCheck__: true 后,会启用隐私相关功能,如果不配置或者配置为 false 则不会启用。
627
+ * 在 2023年9月15号之后,不论 app.json 中是否有配置 __usePrivacyCheck__,隐私相关功能都会启用
628
+ * @supported wx
629
+ */
630
+ __usePrivacyCheck__?: boolean
625
631
  /**
626
632
  * 正常情况下默认所有资源文件都被打包发布到所有平台,可以通过 static 字段配置特定每个目录/文件只能发布到特定的平台(多端场景)
627
633
  * @see https://dev.weixin.qq.com/docs/framework/guideline/devtools/condition-compile.html#%E8%B5%84%E6%BA%90