Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
9a4a8e7c
U
uni-app
项目概览
DCloud
/
uni-app
通知
698
Star
38702
Fork
3641
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9a4a8e7c
编写于
4月 17, 2024
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
5b3156ee
变更
14
展开全部
隐藏空白更改
内联
并排
Showing
14 changed file
with
164 addition
and
152 deletion
+164
-152
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+12
-9
packages/uni-app-plus/dist/view.umd.min.js
packages/uni-app-plus/dist/view.umd.min.js
+2
-2
packages/uni-h5/dist/index.umd.min.js
packages/uni-h5/dist/index.umd.min.js
+1
-1
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+24
-21
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+21
-21
packages/uni-mp-jd/dist/index.js
packages/uni-mp-jd/dist/index.js
+8
-10
packages/uni-mp-kuaishou/dist/index.js
packages/uni-mp-kuaishou/dist/index.js
+21
-21
packages/uni-mp-lark/dist/index.js
packages/uni-mp-lark/dist/index.js
+22
-21
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+21
-21
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+5
-1
packages/uni-mp-xhs/dist/index.js
packages/uni-mp-xhs/dist/index.js
+4
-1
packages/uni-quickapp-native/dist/vue.dev.js
packages/uni-quickapp-native/dist/vue.dev.js
+1
-1
packages/uni-quickapp-native/dist/vue.prod.js
packages/uni-quickapp-native/dist/vue.prod.js
+1
-1
packages/uni-quickapp-webview/dist/index.js
packages/uni-quickapp-webview/dist/index.js
+21
-21
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -461,6 +461,7 @@ var en = {
"
uni.scanCode.flash.on
"
:
"
Tap to turn light on
"
,
"
uni.scanCode.flash.off
"
:
"
Tap to turn light off
"
,
"
uni.startSoterAuthentication.authContent
"
:
"
Fingerprint recognition
"
,
"
uni.startSoterAuthentication.waitingContent
"
:
"
Unrecognizable
"
,
"
uni.picker.done
"
:
"
Done
"
,
"
uni.picker.cancel
"
:
"
Cancel
"
,
"
uni.video.danmu
"
:
"
Danmu
"
,
...
...
@@ -497,6 +498,7 @@ var es = {
"
uni.scanCode.flash.on
"
:
"
Toque para encender la luz
"
,
"
uni.scanCode.flash.off
"
:
"
Toque para apagar la luz
"
,
"
uni.startSoterAuthentication.authContent
"
:
"
Reconocimiento de huellas dactilares
"
,
"
uni.startSoterAuthentication.waitingContent
"
:
"
Irreconocible
"
,
"
uni.picker.done
"
:
"
OK
"
,
"
uni.picker.cancel
"
:
"
Cancelar
"
,
"
uni.video.danmu
"
:
"
Danmu
"
,
...
...
@@ -533,6 +535,7 @@ var fr = {
"
uni.scanCode.flash.on
"
:
"
Appuyez pour activer l'éclairage
"
,
"
uni.scanCode.flash.off
"
:
"
Appuyez pour désactiver l'éclairage
"
,
"
uni.startSoterAuthentication.authContent
"
:
"
Reconnaissance de l'empreinte digitale
"
,
"
uni.startSoterAuthentication.waitingContent
"
:
"
Méconnaissable
"
,
"
uni.picker.done
"
:
"
OK
"
,
"
uni.picker.cancel
"
:
"
Annuler
"
,
"
uni.video.danmu
"
:
"
Danmu
"
,
...
...
@@ -569,6 +572,7 @@ var zhHans = {
"
uni.scanCode.flash.on
"
:
"
轻触照亮
"
,
"
uni.scanCode.flash.off
"
:
"
轻触关闭
"
,
"
uni.startSoterAuthentication.authContent
"
:
"
指纹识别中...
"
,
"
uni.startSoterAuthentication.waitingContent
"
:
"
无法识别
"
,
"
uni.picker.done
"
:
"
完成
"
,
"
uni.picker.cancel
"
:
"
取消
"
,
"
uni.video.danmu
"
:
"
弹幕
"
,
...
...
@@ -605,6 +609,7 @@ var zhHant = {
"
uni.scanCode.flash.on
"
:
"
輕觸照亮
"
,
"
uni.scanCode.flash.off
"
:
"
輕觸關閉
"
,
"
uni.startSoterAuthentication.authContent
"
:
"
指紋識別中...
"
,
"
uni.startSoterAuthentication.waitingContent
"
:
"
無法識別
"
,
"
uni.picker.done
"
:
"
完成
"
,
"
uni.picker.cancel
"
:
"
取消
"
,
"
uni.video.danmu
"
:
"
彈幕
"
,
...
...
@@ -1857,15 +1862,10 @@ class EventChannel {
const
eventChannels
=
{};
const
eventChannelStack
=
[];
function
getEventChannel
(
id
)
{
if
(
id
)
{
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
return
eventChannelStack
.
shift
()
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
const
hooks
=
[
...
...
@@ -1923,7 +1923,10 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
===
'
page
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
packages/uni-app-plus/dist/view.umd.min.js
浏览文件 @
9a4a8e7c
此差异已折叠。
点击以展开。
packages/uni-h5/dist/index.umd.min.js
浏览文件 @
9a4a8e7c
此差异已折叠。
点击以展开。
packages/uni-mp-alipay/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -687,8 +687,6 @@ class EventChannel {
const
eventChannels
=
{};
const
eventChannelStack
=
[];
let
id
=
0
;
function
initEventChannel
(
events
,
cache
=
true
)
{
...
...
@@ -696,31 +694,30 @@ function initEventChannel (events, cache = true) {
const
eventChannel
=
new
EventChannel
(
id
,
events
);
if
(
cache
)
{
eventChannels
[
id
]
=
eventChannel
;
eventChannelStack
.
push
(
eventChannel
);
}
return
eventChannel
}
function
getEventChannel
(
id
)
{
if
(
id
)
{
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
return
eventChannelStack
.
shift
()
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
var
navigateTo
=
{
args
(
fromArgs
,
toArgs
)
{
const
id
=
initEventChannel
(
fromArgs
.
events
).
id
;
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
id
;
function
navigateTo
()
{
let
eventChannel
;
return
{
args
(
fromArgs
,
toArgs
)
{
eventChannel
=
initEventChannel
(
fromArgs
.
events
);
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
eventChannel
.
id
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
eventChannel
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
getEventChannel
();
}
}
;
}
function
findExistsPageIndex
(
url
)
{
const
pages
=
getCurrentPages
();
...
...
@@ -1010,7 +1007,7 @@ function _handleNetworkInfo (result) {
}
const
protocols
=
{
// 需要做转换的 API 列表
navigateTo
,
navigateTo
:
navigateTo
()
,
redirectTo
,
returnValue
(
methodName
,
res
=
{})
{
// 通用 returnValue 解析
if
(
res
.
error
||
res
.
errorMessage
)
{
...
...
@@ -2878,6 +2875,9 @@ const hooks = [
function
initEventChannel$1
()
{
Vue
.
prototype
.
getOpenerEventChannel
=
function
()
{
{
if
(
my
.
canIUse
(
'
getOpenerEventChannel
'
))
{
return
this
.
$scope
.
getOpenerEventChannel
()
}
}
if
(
!
this
.
__eventChannel__
)
{
this
.
__eventChannel__
=
new
EventChannel
();
}
...
...
@@ -2996,7 +2996,10 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
===
'
page
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
@@ -3483,7 +3486,7 @@ if (typeof Proxy !== 'undefined' && "mp-alipay" !== 'app-plus') {
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
});
Object
.
keys
(
extraApi
).
forEach
(
name
=>
{
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
uni
[
name
]
=
promisify
(
name
,
extraApi
[
name
]);
});
}
...
...
packages/uni-mp-baidu/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -687,8 +687,6 @@ class EventChannel {
const
eventChannels
=
{};
const
eventChannelStack
=
[];
let
id
=
0
;
function
initEventChannel
(
events
,
cache
=
true
)
{
...
...
@@ -696,31 +694,30 @@ function initEventChannel (events, cache = true) {
const
eventChannel
=
new
EventChannel
(
id
,
events
);
if
(
cache
)
{
eventChannels
[
id
]
=
eventChannel
;
eventChannelStack
.
push
(
eventChannel
);
}
return
eventChannel
}
function
getEventChannel
(
id
)
{
if
(
id
)
{
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
return
eventChannelStack
.
shift
()
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
var
navigateTo
=
{
args
(
fromArgs
,
toArgs
)
{
const
id
=
initEventChannel
(
fromArgs
.
events
).
id
;
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
id
;
function
navigateTo
()
{
let
eventChannel
;
return
{
args
(
fromArgs
,
toArgs
)
{
eventChannel
=
initEventChannel
(
fromArgs
.
events
);
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
eventChannel
.
id
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
eventChannel
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
getEventChannel
();
}
}
;
}
function
findExistsPageIndex
(
url
)
{
const
pages
=
getCurrentPages
();
...
...
@@ -1022,7 +1019,7 @@ const protocols = {
method
:
false
}
},
navigateTo
,
navigateTo
:
navigateTo
()
,
redirectTo
,
previewImage
,
getSystemInfo
,
...
...
@@ -2412,7 +2409,10 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
===
'
page
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
@@ -2945,7 +2945,7 @@ if (typeof Proxy !== 'undefined' && "mp-baidu" !== 'app-plus') {
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
});
Object
.
keys
(
extraApi
).
forEach
(
name
=>
{
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
uni
[
name
]
=
promisify
(
name
,
extraApi
[
name
]);
});
}
...
...
packages/uni-mp-jd/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -1940,15 +1940,10 @@ class EventChannel {
const
eventChannels
=
{};
const
eventChannelStack
=
[];
function
getEventChannel
(
id
)
{
if
(
id
)
{
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
return
eventChannelStack
.
shift
()
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
const
hooks
=
[
...
...
@@ -2080,7 +2075,10 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
===
'
page
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
@@ -2465,7 +2463,7 @@ if (typeof Proxy !== 'undefined' && "mp-jd" !== 'app-plus') {
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
});
Object
.
keys
(
extraApi
).
forEach
(
name
=>
{
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
uni
[
name
]
=
promisify
(
name
,
extraApi
[
name
]);
});
}
...
...
packages/uni-mp-kuaishou/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -687,8 +687,6 @@ class EventChannel {
const
eventChannels
=
{};
const
eventChannelStack
=
[];
let
id
=
0
;
function
initEventChannel
(
events
,
cache
=
true
)
{
...
...
@@ -696,31 +694,30 @@ function initEventChannel (events, cache = true) {
const
eventChannel
=
new
EventChannel
(
id
,
events
);
if
(
cache
)
{
eventChannels
[
id
]
=
eventChannel
;
eventChannelStack
.
push
(
eventChannel
);
}
return
eventChannel
}
function
getEventChannel
(
id
)
{
if
(
id
)
{
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
return
eventChannelStack
.
shift
()
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
var
navigateTo
=
{
args
(
fromArgs
,
toArgs
)
{
const
id
=
initEventChannel
(
fromArgs
.
events
).
id
;
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
id
;
function
navigateTo
()
{
let
eventChannel
;
return
{
args
(
fromArgs
,
toArgs
)
{
eventChannel
=
initEventChannel
(
fromArgs
.
events
);
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
eventChannel
.
id
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
eventChannel
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
getEventChannel
();
}
}
;
}
function
findExistsPageIndex
(
url
)
{
const
pages
=
getCurrentPages
();
...
...
@@ -952,7 +949,7 @@ var getUserProfile = {
};
const
protocols
=
{
navigateTo
,
navigateTo
:
navigateTo
()
,
redirectTo
,
previewImage
,
getSystemInfo
,
...
...
@@ -2176,7 +2173,10 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
===
'
page
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
@@ -2606,7 +2606,7 @@ if (typeof Proxy !== 'undefined' && "mp-kuaishou" !== 'app-plus') {
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
});
Object
.
keys
(
extraApi
).
forEach
(
name
=>
{
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
uni
[
name
]
=
promisify
(
name
,
extraApi
[
name
]);
});
}
...
...
packages/uni-mp-lark/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -687,8 +687,6 @@ class EventChannel {
const
eventChannels
=
{};
const
eventChannelStack
=
[];
let
id
=
0
;
function
initEventChannel
(
events
,
cache
=
true
)
{
...
...
@@ -696,31 +694,30 @@ function initEventChannel (events, cache = true) {
const
eventChannel
=
new
EventChannel
(
id
,
events
);
if
(
cache
)
{
eventChannels
[
id
]
=
eventChannel
;
eventChannelStack
.
push
(
eventChannel
);
}
return
eventChannel
}
function
getEventChannel
(
id
)
{
if
(
id
)
{
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
return
eventChannelStack
.
shift
()
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
var
navigateTo
=
{
args
(
fromArgs
,
toArgs
)
{
const
id
=
initEventChannel
(
fromArgs
.
events
).
id
;
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
id
;
function
navigateTo
()
{
let
eventChannel
;
return
{
args
(
fromArgs
,
toArgs
)
{
eventChannel
=
initEventChannel
(
fromArgs
.
events
);
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
eventChannel
.
id
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
eventChannel
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
getEventChannel
();
}
}
;
}
function
findExistsPageIndex
(
url
)
{
const
pages
=
getCurrentPages
();
...
...
@@ -953,7 +950,7 @@ var getUserProfile = {
// 需要做转换的 API 列表
const
protocols
=
{
navigateTo
,
navigateTo
:
navigateTo
()
,
redirectTo
,
previewImage
,
getSystemInfo
,
...
...
@@ -2214,7 +2211,11 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
!==
'
app
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
@@ -2716,7 +2717,7 @@ if (typeof Proxy !== 'undefined' && "mp-lark" !== 'app-plus') {
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
});
Object
.
keys
(
extraApi
).
forEach
(
name
=>
{
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
uni
[
name
]
=
promisify
(
name
,
extraApi
[
name
]);
});
}
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -687,8 +687,6 @@ class EventChannel {
const
eventChannels
=
{};
const
eventChannelStack
=
[];
let
id
=
0
;
function
initEventChannel
(
events
,
cache
=
true
)
{
...
...
@@ -696,31 +694,30 @@ function initEventChannel (events, cache = true) {
const
eventChannel
=
new
EventChannel
(
id
,
events
);
if
(
cache
)
{
eventChannels
[
id
]
=
eventChannel
;
eventChannelStack
.
push
(
eventChannel
);
}
return
eventChannel
}
function
getEventChannel
(
id
)
{
if
(
id
)
{
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
return
eventChannelStack
.
shift
()
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
var
navigateTo
=
{
args
(
fromArgs
,
toArgs
)
{
const
id
=
initEventChannel
(
fromArgs
.
events
).
id
;
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
id
;
function
navigateTo
()
{
let
eventChannel
;
return
{
args
(
fromArgs
,
toArgs
)
{
eventChannel
=
initEventChannel
(
fromArgs
.
events
);
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
eventChannel
.
id
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
eventChannel
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
getEventChannel
();
}
}
;
}
function
findExistsPageIndex
(
url
)
{
const
pages
=
getCurrentPages
();
...
...
@@ -952,7 +949,7 @@ var getUserProfile = {
};
const
protocols
=
{
navigateTo
,
navigateTo
:
navigateTo
()
,
redirectTo
,
previewImage
,
getSystemInfo
,
...
...
@@ -2334,7 +2331,10 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
===
'
page
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
@@ -2725,7 +2725,7 @@ if (typeof Proxy !== 'undefined' && "mp-qq" !== 'app-plus') {
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
});
Object
.
keys
(
extraApi
).
forEach
(
name
=>
{
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
uni
[
name
]
=
promisify
(
name
,
extraApi
[
name
]);
});
}
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -2406,7 +2406,11 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
!==
'
app
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
packages/uni-mp-xhs/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -2073,7 +2073,10 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
===
'
page
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
packages/uni-quickapp-native/dist/vue.dev.js
浏览文件 @
9a4a8e7c
此差异已折叠。
点击以展开。
packages/uni-quickapp-native/dist/vue.prod.js
浏览文件 @
9a4a8e7c
此差异已折叠。
点击以展开。
packages/uni-quickapp-webview/dist/index.js
浏览文件 @
9a4a8e7c
...
...
@@ -687,8 +687,6 @@ class EventChannel {
const
eventChannels
=
{};
const
eventChannelStack
=
[];
let
id
=
0
;
function
initEventChannel
(
events
,
cache
=
true
)
{
...
...
@@ -696,31 +694,30 @@ function initEventChannel (events, cache = true) {
const
eventChannel
=
new
EventChannel
(
id
,
events
);
if
(
cache
)
{
eventChannels
[
id
]
=
eventChannel
;
eventChannelStack
.
push
(
eventChannel
);
}
return
eventChannel
}
function
getEventChannel
(
id
)
{
if
(
id
)
{
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
return
eventChannelStack
.
shift
()
const
eventChannel
=
eventChannels
[
id
];
delete
eventChannels
[
id
];
return
eventChannel
}
var
navigateTo
=
{
args
(
fromArgs
,
toArgs
)
{
const
id
=
initEventChannel
(
fromArgs
.
events
).
id
;
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
id
;
function
navigateTo
()
{
let
eventChannel
;
return
{
args
(
fromArgs
,
toArgs
)
{
eventChannel
=
initEventChannel
(
fromArgs
.
events
);
if
(
fromArgs
.
url
)
{
fromArgs
.
url
=
fromArgs
.
url
+
(
fromArgs
.
url
.
indexOf
(
'
?
'
)
===
-
1
?
'
?
'
:
'
&
'
)
+
'
__id__=
'
+
eventChannel
.
id
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
eventChannel
;
}
},
returnValue
(
fromRes
,
toRes
)
{
fromRes
.
eventChannel
=
getEventChannel
();
}
}
;
}
function
findExistsPageIndex
(
url
)
{
const
pages
=
getCurrentPages
();
...
...
@@ -944,7 +941,7 @@ var getSystemInfo = {
};
const
protocols
=
{
navigateTo
,
navigateTo
:
navigateTo
()
,
redirectTo
,
previewImage
,
getSystemInfo
,
...
...
@@ -2084,7 +2081,10 @@ function parseBaseApp (vm, {
delete
this
.
$options
.
mpType
;
delete
this
.
$options
.
mpInstance
;
if
(
this
.
mpType
===
'
page
'
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
if
(
(
this
.
mpType
===
'
page
'
)
&&
typeof
getApp
===
'
function
'
)
{
// hack vue-i18n
const
app
=
getApp
();
if
(
app
.
$vm
&&
app
.
$vm
.
$i18n
)
{
this
.
_i18n
=
app
.
$vm
.
$i18n
;
...
...
@@ -2593,7 +2593,7 @@ if (typeof Proxy !== 'undefined' && "quickapp-webview" !== 'app-plus') {
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
});
Object
.
keys
(
extraApi
).
forEach
(
name
=>
{
uni
[
name
]
=
promisify
(
name
,
todoApis
[
name
]);
uni
[
name
]
=
promisify
(
name
,
extraApi
[
name
]);
});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录