Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
b8ff2421
U
uni-app
项目概览
DCloud
/
uni-app
6 个月 前同步成功
通知
751
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b8ff2421
编写于
6月 12, 2023
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
fbaabec0
变更
18
展开全部
隐藏空白更改
内联
并排
Showing
18 changed file
with
169 addition
and
189 deletion
+169
-189
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+8
-8
packages/uni-app-plus/dist/index.v3.js
packages/uni-app-plus/dist/index.v3.js
+22
-9
packages/uni-app-plus/dist/view.css
packages/uni-app-plus/dist/view.css
+1
-1
packages/uni-app-plus/dist/view.umd.min.js
packages/uni-app-plus/dist/view.umd.min.js
+1
-1
packages/uni-h5/dist/index.css
packages/uni-h5/dist/index.css
+1
-1
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
+20
-20
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+17
-20
packages/uni-mp-jd/dist/index.js
packages/uni-mp-jd/dist/index.js
+4
-9
packages/uni-mp-kuaishou/dist/index.js
packages/uni-mp-kuaishou/dist/index.js
+17
-20
packages/uni-mp-lark/dist/index.js
packages/uni-mp-lark/dist/index.js
+17
-20
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+17
-20
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+16
-19
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+4
-9
packages/uni-mp-xhs/dist/index.js
packages/uni-mp-xhs/dist/index.js
+4
-9
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
+17
-20
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
b8ff2421
...
...
@@ -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
=
[
...
...
packages/uni-app-plus/dist/index.v3.js
浏览文件 @
b8ff2421
...
...
@@ -677,7 +677,7 @@ var serviceContext = (function () {
const modeStyle = themeConfig[mode];
const styles = {};
if (!modeStyle) {
return
styles
return
pageStyle
}
Object.keys(pageStyle).forEach((key) => {
const styleItem = pageStyle[key]; // Object Array String
...
...
@@ -1697,6 +1697,7 @@ var serviceContext = (function () {
"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",
...
...
@@ -1733,6 +1734,7 @@ var serviceContext = (function () {
"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",
...
...
@@ -1769,6 +1771,7 @@ var serviceContext = (function () {
"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",
...
...
@@ -1805,6 +1808,7 @@ var serviceContext = (function () {
"uni.scanCode.flash.on": "轻触照亮",
"uni.scanCode.flash.off": "轻触关闭",
"uni.startSoterAuthentication.authContent": "指纹识别中...",
"uni.startSoterAuthentication.waitingContent": "无法识别",
"uni.picker.done": "完成",
"uni.picker.cancel": "取消",
"uni.video.danmu": "弹幕",
...
...
@@ -1841,6 +1845,7 @@ var serviceContext = (function () {
"uni.scanCode.flash.on": "輕觸照亮",
"uni.scanCode.flash.off": "輕觸關閉",
"uni.startSoterAuthentication.authContent": "指紋識別中...",
"uni.startSoterAuthentication.waitingContent": "無法識別",
"uni.picker.done": "完成",
"uni.picker.cancel": "取消",
"uni.video.danmu": "彈幕",
...
...
@@ -6237,7 +6242,7 @@ var serviceContext = (function () {
case e.AUTHENTICATE_MISMATCH:
if (waiting) {
clearTimeout(waitingTimer);
waiting.setTitle(
'无法识别'
);
waiting.setTitle(
t('uni.startSoterAuthentication.waitingContent')
);
waitingTimer = setTimeout(() => {
waiting && waiting.setTitle(waitingTitle);
}, 1000);
...
...
@@ -10560,14 +10565,22 @@ var serviceContext = (function () {
}
return proxy;
}
function resolveSyncResult(res, returnOptions, instanceId, proxy) {
// devtools 环境是字符串?
if (isString(res)) {
res = JSON.parse(res);
}
function resolveSyncResult(args, res, returnOptions, instanceId, proxy) {
if ((process.env.NODE_ENV !== 'production')) {
console.log('uts.invokeSync.result', res, returnOptions, instanceId, typeof proxy);
}
if (!res) {
throw new Error(JSON.stringify(args));
}
// devtools 环境是字符串?
if (isString(res)) {
try {
res = JSON.parse(res);
}
catch (e) {
throw new Error(`JSON.parse(${res}): ` + e);
}
}
if (res.errMsg) {
throw new Error(res.errMsg);
}
...
...
@@ -10596,7 +10609,7 @@ var serviceContext = (function () {
if ((process.env.NODE_ENV !== 'production')) {
console.log('uts.invokePropGetter.args', args);
}
return resolveSyncResult(getProxy().invokeSync(args, () => { }));
return resolveSyncResult(
args,
getProxy().invokeSync(args, () => { }));
}
function initProxyFunction(async, { moduleName, moduleType, package: pkg, class: cls, name: propOrMethod, method, companion, params: methodParams, return: returnOptions, errMsg, }, instanceId, proxy) {
const invokeCallback = ({ id, name, params, keepAlive, }) => {
...
...
@@ -10661,7 +10674,7 @@ var serviceContext = (function () {
if ((process.env.NODE_ENV !== 'production')) {
console.log('uts.invokeSync.args', invokeArgs);
}
return resolveSyncResult(getProxy().invokeSync(invokeArgs, invokeCallback), returnOptions, instanceId, proxy);
return resolveSyncResult(
invokeArgs,
getProxy().invokeSync(invokeArgs, invokeCallback), returnOptions, instanceId, proxy);
};
}
function initUTSStaticMethod(async, opts) {
...
...
packages/uni-app-plus/dist/view.css
浏览文件 @
b8ff2421
此差异已折叠。
点击以展开。
packages/uni-app-plus/dist/view.umd.min.js
浏览文件 @
b8ff2421
此差异已折叠。
点击以展开。
packages/uni-h5/dist/index.css
浏览文件 @
b8ff2421
此差异已折叠。
点击以展开。
packages/uni-h5/dist/index.umd.min.js
浏览文件 @
b8ff2421
此差异已折叠。
点击以展开。
packages/uni-mp-alipay/dist/index.js
浏览文件 @
b8ff2421
...
...
@@ -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
();
}
...
...
@@ -3483,7 +3483,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
浏览文件 @
b8ff2421
...
...
@@ -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
,
...
...
@@ -2945,7 +2942,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
浏览文件 @
b8ff2421
...
...
@@ -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
=
[
...
...
@@ -2465,7 +2460,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
浏览文件 @
b8ff2421
...
...
@@ -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
,
...
...
@@ -2606,7 +2603,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
浏览文件 @
b8ff2421
...
...
@@ -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
,
...
...
@@ -2716,7 +2713,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
浏览文件 @
b8ff2421
...
...
@@ -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
,
...
...
@@ -2725,7 +2722,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
浏览文件 @
b8ff2421
...
...
@@ -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
();
...
...
@@ -1045,7 +1042,7 @@ const canIUses = [
// 需要做转换的 API 列表
const
protocols
=
{
navigateTo
,
navigateTo
:
navigateTo
()
,
redirectTo
,
previewImage
,
getSystemInfo
,
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
b8ff2421
...
...
@@ -2084,15 +2084,10 @@ function handleEvent (event) {
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
=
[
...
...
@@ -2606,7 +2601,7 @@ if (typeof Proxy !== 'undefined' && "mp-weixin" !== '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-xhs/dist/index.js
浏览文件 @
b8ff2421
...
...
@@ -1938,15 +1938,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
=
[
...
...
@@ -2590,7 +2585,7 @@ if (typeof Proxy !== 'undefined' && "mp-xhs" !== '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-quickapp-native/dist/vue.dev.js
浏览文件 @
b8ff2421
此差异已折叠。
点击以展开。
packages/uni-quickapp-native/dist/vue.prod.js
浏览文件 @
b8ff2421
此差异已折叠。
点击以展开。
packages/uni-quickapp-webview/dist/index.js
浏览文件 @
b8ff2421
...
...
@@ -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
,
...
...
@@ -2593,7 +2590,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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录