@tarojs/taro 3.6.9-alpha.5 → 3.6.9-alpha.6
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.9-alpha.
|
|
3
|
+
"version": "3.6.9-alpha.6",
|
|
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.9-alpha.
|
|
25
|
-
"@tarojs/runtime": "3.6.9-alpha.
|
|
24
|
+
"@tarojs/api": "3.6.9-alpha.6",
|
|
25
|
+
"@tarojs/runtime": "3.6.9-alpha.6"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tarojs/helper": "3.6.9-alpha.
|
|
28
|
+
"@tarojs/helper": "3.6.9-alpha.6"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
31
|
"@types/react": {
|
|
@@ -18,11 +18,23 @@ declare module '../../index' {
|
|
|
18
18
|
interface Option {
|
|
19
19
|
/** 需要预览的图片链接列表。 */
|
|
20
20
|
urls: string[]
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/**
|
|
22
|
+
* 微信端为当前显示图片的链接,支付宝端为当前显示图片的索引值
|
|
23
|
+
*/
|
|
24
|
+
current?: string | number
|
|
25
|
+
/**
|
|
26
|
+
* 是否支持长按下载图片
|
|
27
|
+
* @supported alipay 基础库: 1.13.0
|
|
28
|
+
*/
|
|
29
|
+
enablesavephoto?: boolean
|
|
30
|
+
/**
|
|
31
|
+
* 是否在右下角显示下载入口
|
|
32
|
+
* @supported alipay 基础库: 1.13.0
|
|
33
|
+
*/
|
|
34
|
+
enableShowPhotoDownload?: boolean
|
|
35
|
+
/** @supported weapp 最低版本:2.13.0。是否显示长按菜单,默认值:true */
|
|
24
36
|
showmenu?: boolean
|
|
25
|
-
/** @
|
|
37
|
+
/** @supported weapp 最低版本:2.13.0。origin: 发送完整的referrer; no-referrer: 不发送。格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;默认值:no-referrer */
|
|
26
38
|
referrerPolicy?: string
|
|
27
39
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
28
40
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
@@ -46,7 +58,7 @@ declare module '../../index' {
|
|
|
46
58
|
/** 需要预览的资源列表 */
|
|
47
59
|
sources: Sources[]
|
|
48
60
|
/** 当前显示的资源序号,默认值:0 */
|
|
49
|
-
current?:
|
|
61
|
+
current?: number
|
|
50
62
|
/** 是否显示长按菜单 2.13.0,默认值:true */
|
|
51
63
|
showmenu?: boolean
|
|
52
64
|
/** origin: 发送完整的referrer; no-referrer: 不发送。格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;默认值:no-referrer */
|
|
@@ -35,7 +35,20 @@ export interface IMiniAppConfig {
|
|
|
35
35
|
webpackChain?: (chain: Chain, webpack: typeof Webpack, PARSE_AST_TYPE: any) => void
|
|
36
36
|
|
|
37
37
|
/** 可用于修改、拓展 Webpack 的 [output](https://webpack.js.org/configuration/output/) 选项 */
|
|
38
|
-
output?: Webpack.Configuration['output']
|
|
38
|
+
output?: Webpack.Configuration['output'] & {
|
|
39
|
+
/**
|
|
40
|
+
* 编译前清空输出目录
|
|
41
|
+
* @since Taro v3.6.9
|
|
42
|
+
* @description
|
|
43
|
+
* - 默认清空输出目录,可设置 clean: false 不清空
|
|
44
|
+
* - 可设置 clean: { keep: ['project.config.json'] } 保留指定文件
|
|
45
|
+
* - 注意 clean.keep 不支持函数
|
|
46
|
+
*/
|
|
47
|
+
clean?: boolean | {
|
|
48
|
+
/** 保留指定文件不删除 */
|
|
49
|
+
keep?: Array<string | RegExp> | string | RegExp
|
|
50
|
+
}
|
|
51
|
+
}
|
|
39
52
|
|
|
40
53
|
/** 配置 postcss 相关插件 */
|
|
41
54
|
postcss?: IPostcssOption
|