@tarojs/taro 3.6.10-alpha.2 → 3.6.10-alpha.5
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.10-alpha.
|
|
3
|
+
"version": "3.6.10-alpha.5",
|
|
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.10-alpha.
|
|
25
|
-
"@tarojs/runtime": "3.6.10-alpha.
|
|
24
|
+
"@tarojs/api": "3.6.10-alpha.5",
|
|
25
|
+
"@tarojs/runtime": "3.6.10-alpha.5"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tarojs/helper": "3.6.10-alpha.
|
|
28
|
+
"@tarojs/helper": "3.6.10-alpha.5"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
31
|
"@types/react": {
|
|
@@ -6,7 +6,7 @@ import type { IOption, IPostcssOption } from './util'
|
|
|
6
6
|
|
|
7
7
|
export interface IRNConfig {
|
|
8
8
|
/** 设置 RN bundle 中注册应用的名称 */
|
|
9
|
-
appName
|
|
9
|
+
appName?: string
|
|
10
10
|
|
|
11
11
|
/** entry 利用模块查找规则{name}.{platform}.{ext}自动区分平台 */
|
|
12
12
|
entry?: string
|
|
@@ -53,4 +53,12 @@ export interface IRNConfig {
|
|
|
53
53
|
|
|
54
54
|
/** 将 svg 文件转换为组件引入。默认值 false,不开启 */
|
|
55
55
|
enableSvgTransform?: boolean
|
|
56
|
+
|
|
57
|
+
alias?: IOption
|
|
58
|
+
|
|
59
|
+
/** 设计稿尺寸 */
|
|
60
|
+
designWidth?: number | ((size?: string | number | Input) => number)
|
|
61
|
+
|
|
62
|
+
/** 设计稿尺寸换算规则 */
|
|
63
|
+
deviceRatio?: TaroGeneral.TDeviceRatio
|
|
56
64
|
}
|
package/types/taro.config.d.ts
CHANGED
|
@@ -215,6 +215,22 @@ declare module './index' {
|
|
|
215
215
|
* @default "webview"
|
|
216
216
|
*/
|
|
217
217
|
renderer?: 'webview' | 'skyline'
|
|
218
|
+
/**
|
|
219
|
+
* 组件框架
|
|
220
|
+
* @default "exparser"
|
|
221
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/migration.html
|
|
222
|
+
*/
|
|
223
|
+
componentFramework?: 'exparser' | 'glass-easel'
|
|
224
|
+
/**
|
|
225
|
+
* 指定特殊的样式隔离选项
|
|
226
|
+
*
|
|
227
|
+
* isolated 表示启用样式隔离,在自定义组件内外,使用 class 指定的样式将不会相互影响(一般情况下的默认值)
|
|
228
|
+
*
|
|
229
|
+
* apply-shared 表示页面 wxss 样式将影响到自定义组件,但自定义组件 wxss 中指定的样式不会影响页面
|
|
230
|
+
*
|
|
231
|
+
* shared 表示页面 wxss 样式将影响到自定义组件,自定义组件 wxss 中指定的样式也会影响页面和其他设置了 apply-shared 或 shared 的自定义组件。(这个选项在插件中不可用。)
|
|
232
|
+
*/
|
|
233
|
+
styleIsolation?: 'isolated' | 'apply-shared' | 'shared'
|
|
218
234
|
/**
|
|
219
235
|
* 设置导航栏额外图标,目前支持设置属性 icon,值为图标 url(以 https/http 开头)或 base64 字符串,大小建议 30*30 px
|
|
220
236
|
*
|
|
@@ -345,6 +361,34 @@ declare module './index' {
|
|
|
345
361
|
delay?: number
|
|
346
362
|
}
|
|
347
363
|
|
|
364
|
+
interface RenderOptions {
|
|
365
|
+
skyline: {
|
|
366
|
+
/**
|
|
367
|
+
* 开启默认Block布局
|
|
368
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/wxss.html#%E5%BC%80%E5%90%AF%E9%BB%98%E8%AE%A4Block%E5%B8%83%E5%B1%80
|
|
369
|
+
*/
|
|
370
|
+
defaultDisplayBlock?: boolean
|
|
371
|
+
/**
|
|
372
|
+
* 关闭 Skyline AB 实验
|
|
373
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/migration/release.html#%E5%8F%91%E5%B8%83%E4%B8%8A%E7%BA%BF
|
|
374
|
+
*/
|
|
375
|
+
disableABTest?: boolean
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
interface Behavior {
|
|
380
|
+
/**
|
|
381
|
+
* 使用小程序默认分享功能时(即不显式设置 Page.onShareAppMessage),当设置此字段后,会使客户端生成的用于分享的 scheme 带上当前用户打开的页面所携带的 query 参数。
|
|
382
|
+
* @supported alipay 基础库 2.7.10 及以上开始支持,同时需使用 IDE 2.7.0 及以上版本进行构建。
|
|
383
|
+
*/
|
|
384
|
+
shareAppMessage?: 'appendQuery'
|
|
385
|
+
/**
|
|
386
|
+
* 小程序在解析全局参数、页面参数时默认会对键/值做 encodeURIComponent。当设置为 disable 后,则不再对键/值做encodeURIComponent
|
|
387
|
+
* @supported alipay 基础库 2.7.19 及以上开始支持,同时需使用 IDE 3.0.0 及以上版本进行构建。
|
|
388
|
+
*/
|
|
389
|
+
decodeQuery?: 'disable'
|
|
390
|
+
}
|
|
391
|
+
|
|
348
392
|
interface AppConfig {
|
|
349
393
|
/** 小程序默认启动首页,未指定 entryPagePath 时,数组的第一项代表小程序的初始页面(首页)。 */
|
|
350
394
|
entryPagePath?: string
|
|
@@ -365,9 +409,11 @@ declare module './index' {
|
|
|
365
409
|
* @default false
|
|
366
410
|
* @since 2.1.0
|
|
367
411
|
*/
|
|
368
|
-
functionalPages?:
|
|
369
|
-
|
|
370
|
-
|
|
412
|
+
functionalPages?:
|
|
413
|
+
| boolean
|
|
414
|
+
| {
|
|
415
|
+
independent?: boolean
|
|
416
|
+
}
|
|
371
417
|
/** 分包结构配置
|
|
372
418
|
* @example
|
|
373
419
|
* ```json
|
|
@@ -388,7 +434,7 @@ declare module './index' {
|
|
|
388
434
|
* 使用 Worker 处理多线程任务时,设置 Worker 代码放置的目录
|
|
389
435
|
* @since 1.9.90
|
|
390
436
|
*/
|
|
391
|
-
workers?: string
|
|
437
|
+
workers?: string | string[]
|
|
392
438
|
/** 申明需要后台运行的能力,类型为数组。目前支持以下项目:
|
|
393
439
|
* - audio: 后台音乐播放
|
|
394
440
|
* - location: 后台定位
|
|
@@ -555,6 +601,42 @@ declare module './index' {
|
|
|
555
601
|
* @default "webview"
|
|
556
602
|
*/
|
|
557
603
|
renderer?: 'webview' | 'skyline'
|
|
604
|
+
/**
|
|
605
|
+
* 渲染后端选项
|
|
606
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#rendererOptions
|
|
607
|
+
*/
|
|
608
|
+
rendererOptions?: RenderOptions
|
|
609
|
+
/**
|
|
610
|
+
* 指定小程序使用的组件框架
|
|
611
|
+
* @default "exparser"
|
|
612
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/migration.html
|
|
613
|
+
*/
|
|
614
|
+
componentFramework?: 'exparser' | 'glass-easel'
|
|
615
|
+
/**
|
|
616
|
+
* 多端模式场景接入身份管理服务时开启小程序授权页相关配置
|
|
617
|
+
* @see https://dev.weixin.qq.com/docs/framework/getting_started/auth.html#%E6%96%B0%E6%89%8B%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B
|
|
618
|
+
*/
|
|
619
|
+
miniApp?: {
|
|
620
|
+
/**
|
|
621
|
+
* 用于 wx.weixinMinProgramLogin 在小程序中插入「小程序授权 Page」
|
|
622
|
+
*/
|
|
623
|
+
useAuthorizePage: boolean
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* 正常情况下默认所有资源文件都被打包发布到所有平台,可以通过 static 字段配置特定每个目录/文件只能发布到特定的平台(多端场景)
|
|
627
|
+
* @see https://dev.weixin.qq.com/docs/framework/guideline/devtools/condition-compile.html#%E8%B5%84%E6%BA%90
|
|
628
|
+
*/
|
|
629
|
+
static?: { pattern: string; platforms: string[] }[]
|
|
630
|
+
/**
|
|
631
|
+
* 动态插件配置规则,声明小程序需要使用动态插件
|
|
632
|
+
* @supported alipay
|
|
633
|
+
*/
|
|
634
|
+
useDynamicPlugins?: boolean
|
|
635
|
+
/**
|
|
636
|
+
* 用于改变小程序若干运行行为
|
|
637
|
+
* @supported alipay
|
|
638
|
+
*/
|
|
639
|
+
behavior?: Behavior
|
|
558
640
|
}
|
|
559
641
|
|
|
560
642
|
interface Config extends PageConfig, AppConfig {
|