@tarojs/taro 4.1.12-beta.4 → 4.1.12-beta.41
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": "4.1.12-beta.
|
|
3
|
+
"version": "4.1.12-beta.41",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@types/postcss-url": "^10.0.4",
|
|
27
|
-
"@tarojs/
|
|
28
|
-
"@tarojs/
|
|
27
|
+
"@tarojs/api": "4.1.12-beta.41",
|
|
28
|
+
"@tarojs/runtime": "4.1.12-beta.41"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"html-webpack-plugin": "^5.6.0",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"webpack-chain": "^6.5.1",
|
|
34
34
|
"webpack-dev-server": "^4.15.2",
|
|
35
35
|
"rollup": "^3.29.4",
|
|
36
|
-
"@tarojs/helper": "4.1.12-beta.
|
|
37
|
-
"@tarojs/
|
|
38
|
-
"@tarojs/
|
|
36
|
+
"@tarojs/helper": "4.1.12-beta.41",
|
|
37
|
+
"@tarojs/shared": "4.1.12-beta.41",
|
|
38
|
+
"@tarojs/components": "4.1.12-beta.41"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@types/react": "^18",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"webpack": "^5",
|
|
47
47
|
"webpack-chain": "^6",
|
|
48
48
|
"webpack-dev-server": "^4",
|
|
49
|
-
"@tarojs/
|
|
50
|
-
"@tarojs/
|
|
51
|
-
"@tarojs/
|
|
49
|
+
"@tarojs/components": "4.1.12-beta.41",
|
|
50
|
+
"@tarojs/helper": "4.1.12-beta.41",
|
|
51
|
+
"@tarojs/shared": "4.1.12-beta.41"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
54
54
|
"@types/react": {
|
|
@@ -11,6 +11,11 @@ declare module '../../index' {
|
|
|
11
11
|
interface Option {
|
|
12
12
|
/** 剪贴板的内容 */
|
|
13
13
|
data: string
|
|
14
|
+
/** 其他配置项 */
|
|
15
|
+
options?: {
|
|
16
|
+
/** 隐藏默认的 “内容已复制” message */
|
|
17
|
+
hideDefaultMessage: boolean
|
|
18
|
+
}
|
|
14
19
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
15
20
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
16
21
|
/** 接口调用失败的回调函数 */
|
package/types/compile/hooks.d.ts
CHANGED
package/types/taro.config.d.ts
CHANGED
|
@@ -246,6 +246,12 @@ declare module './index' {
|
|
|
246
246
|
* shared 表示页面 wxss 样式将影响到自定义组件,自定义组件 wxss 中指定的样式也会影响页面和其他设置了 apply-shared 或 shared 的自定义组件。(这个选项在插件中不可用。)
|
|
247
247
|
*/
|
|
248
248
|
styleIsolation?: 'isolated' | 'apply-shared' | 'shared'
|
|
249
|
+
/**
|
|
250
|
+
* 构建期是否为递归壳 comp 开启额外实例绑定;同一编译 root 内任一页为 true 则该 root 的 comp 生效。
|
|
251
|
+
* 不会写入小程序页面 json。
|
|
252
|
+
* @default false
|
|
253
|
+
*/
|
|
254
|
+
forceCustomWrapper?: boolean
|
|
249
255
|
/**
|
|
250
256
|
* 设置导航栏额外图标,目前支持设置属性 icon,值为图标 url(以 https/http 开头)或 base64 字符串,大小建议 30*30 px
|
|
251
257
|
*
|
|
@@ -331,6 +337,27 @@ declare module './index' {
|
|
|
331
337
|
plugins?: Plugins
|
|
332
338
|
}
|
|
333
339
|
|
|
340
|
+
/** 子分包独立模板 root 配置项,可以是路径字符串或包含额外选项的对象 */
|
|
341
|
+
type SubPackageIndieRootConfig = string | {
|
|
342
|
+
/** 分包根路径(相对于 sourceDir) */
|
|
343
|
+
path: string
|
|
344
|
+
/**
|
|
345
|
+
* 是否禁用递归组件(comp/custom-wrapper/recursive-component)的生成。
|
|
346
|
+
* 设为 true 时,该 root 下不会生成 comp.*、custom-wrapper.*、recursive-component.js,
|
|
347
|
+
* base.wxml 最后一层的 container template 也不会引用 <comp>,超出 baseLevel 的节点将被静默截断。
|
|
348
|
+
* @default false
|
|
349
|
+
*/
|
|
350
|
+
disableRecursiveComponent?: boolean
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/** 子分包独立模板配置项 */
|
|
354
|
+
interface SubPackageIndieConfig {
|
|
355
|
+
/** 主入口分包根路径(相对于 sourceDir),runtime chunks 将生成到此目录 */
|
|
356
|
+
mainPackageRoot: SubPackageIndieRootConfig
|
|
357
|
+
/** 子组件分包根路径列表,只生成独立的模板文件 */
|
|
358
|
+
subPackageRoots?: SubPackageIndieRootConfig[]
|
|
359
|
+
}
|
|
360
|
+
|
|
334
361
|
interface Plugins {
|
|
335
362
|
[key: string]: {
|
|
336
363
|
version: string
|
|
@@ -470,6 +497,23 @@ declare module './index' {
|
|
|
470
497
|
*/
|
|
471
498
|
subPackages?: SubPackage[]
|
|
472
499
|
subpackages?: SubPackage[]
|
|
500
|
+
/** 子分包独立模板配置(用于 newBlended 模式),支持多入口配置
|
|
501
|
+
* @example
|
|
502
|
+
* ```js
|
|
503
|
+
* subPackageIndie: [
|
|
504
|
+
* {
|
|
505
|
+
* mainPackageRoot: 'pages/order/index',
|
|
506
|
+
* subPackageRoots: ['pages/order/list', 'pages/order/detail']
|
|
507
|
+
* },
|
|
508
|
+
* {
|
|
509
|
+
* mainPackageRoot: 'pages/user/index',
|
|
510
|
+
* subPackageRoots: ['pages/user/profile']
|
|
511
|
+
* }
|
|
512
|
+
* ]
|
|
513
|
+
* ```
|
|
514
|
+
* @since 4.1.x
|
|
515
|
+
*/
|
|
516
|
+
subPackageIndie?: SubPackageIndieConfig[]
|
|
473
517
|
/** Worker 代码放置的目录
|
|
474
518
|
* 使用 Worker 处理多线程任务时,设置 Worker 代码放置的目录
|
|
475
519
|
* @since 1.9.90
|