Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MuGuiLin
uni-app
提交
0a51a642
U
uni-app
项目概览
MuGuiLin
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0a51a642
编写于
7月 14, 2020
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build runtime
上级
ba66d7d1
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
91 addition
and
84 deletion
+91
-84
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+13
-12
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+13
-12
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+13
-12
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+13
-12
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+13
-12
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+13
-12
packages/uni-quickapp-webview/dist/index.js
packages/uni-quickapp-webview/dist/index.js
+13
-12
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
0a51a642
...
...
@@ -470,10 +470,6 @@ TODOS.forEach(function (name) {
});
const
getEmitter
=
(
function
()
{
if
(
typeof
getUniEmitter
===
'
function
'
)
{
/* eslint-disable no-undef */
return
getUniEmitter
}
let
Emitter
;
return
function
getUniEmitter
()
{
if
(
!
Emitter
)
{
...
...
@@ -637,8 +633,8 @@ Component = function (options = {}) {
const
PAGE_EVENT_HOOKS
=
[
'
onPullDownRefresh
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onShareTimeline
'
,
'
onShareAppMessage
'
,
'
onPageScroll
'
,
...
...
@@ -1073,6 +1069,15 @@ function isMatchEventType (eventType, optType) {
)
}
function
getContextVm
(
vm
)
{
let
$parent
=
vm
.
$parent
;
// 父组件是 scoped slots 或者其他自定义组件时继续查找
while
(
$parent
&&
$parent
.
$parent
&&
(
$parent
.
$options
.
generic
||
$parent
.
$parent
.
$options
.
generic
||
$parent
.
$scope
.
_$vuePid
))
{
$parent
=
$parent
.
$parent
;
}
return
$parent
&&
$parent
.
$parent
}
function
handleEvent
(
event
)
{
event
=
wrapper$2
(
event
);
...
...
@@ -1105,12 +1110,8 @@ function handleEvent (event) {
const
methodName
=
eventArray
[
0
];
if
(
methodName
)
{
let
handlerCtx
=
this
.
$vm
;
if
(
handlerCtx
.
$options
.
generic
&&
handlerCtx
.
$parent
&&
handlerCtx
.
$parent
.
$parent
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
handlerCtx
.
$parent
.
$parent
;
if
(
handlerCtx
.
$options
.
generic
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
getContextVm
(
handlerCtx
)
||
handlerCtx
;
}
if
(
methodName
===
'
$emit
'
)
{
handlerCtx
.
$emit
.
apply
(
handlerCtx
,
...
...
packages/uni-mp-alipay/dist/index.js
浏览文件 @
0a51a642
...
...
@@ -972,10 +972,6 @@ var extraApi = /*#__PURE__*/Object.freeze({
});
const
getEmitter
=
(
function
()
{
if
(
typeof
getUniEmitter
===
'
function
'
)
{
/* eslint-disable no-undef */
return
getUniEmitter
}
let
Emitter
;
return
function
getUniEmitter
()
{
if
(
!
Emitter
)
{
...
...
@@ -1124,8 +1120,8 @@ var api = /*#__PURE__*/Object.freeze({
const
PAGE_EVENT_HOOKS
=
[
'
onPullDownRefresh
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onShareTimeline
'
,
'
onShareAppMessage
'
,
'
onPageScroll
'
,
...
...
@@ -1550,6 +1546,15 @@ function isMatchEventType (eventType, optType) {
)
}
function
getContextVm
(
vm
)
{
let
$parent
=
vm
.
$parent
;
// 父组件是 scoped slots 或者其他自定义组件时继续查找
while
(
$parent
&&
$parent
.
$parent
&&
(
$parent
.
$options
.
generic
||
$parent
.
$parent
.
$options
.
generic
||
$parent
.
$scope
.
_$vuePid
))
{
$parent
=
$parent
.
$parent
;
}
return
$parent
&&
$parent
.
$parent
}
function
handleEvent
(
event
)
{
event
=
wrapper$1
(
event
);
...
...
@@ -1582,12 +1587,8 @@ function handleEvent (event) {
const
methodName
=
eventArray
[
0
];
if
(
methodName
)
{
let
handlerCtx
=
this
.
$vm
;
if
(
handlerCtx
.
$options
.
generic
&&
handlerCtx
.
$parent
&&
handlerCtx
.
$parent
.
$parent
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
handlerCtx
.
$parent
.
$parent
;
if
(
handlerCtx
.
$options
.
generic
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
getContextVm
(
handlerCtx
)
||
handlerCtx
;
}
if
(
methodName
===
'
$emit
'
)
{
handlerCtx
.
$emit
.
apply
(
handlerCtx
,
...
...
packages/uni-mp-baidu/dist/index.js
浏览文件 @
0a51a642
...
...
@@ -650,10 +650,6 @@ var extraApi = /*#__PURE__*/Object.freeze({
});
const
getEmitter
=
(
function
()
{
if
(
typeof
getUniEmitter
===
'
function
'
)
{
/* eslint-disable no-undef */
return
getUniEmitter
}
let
Emitter
;
return
function
getUniEmitter
()
{
if
(
!
Emitter
)
{
...
...
@@ -753,8 +749,8 @@ Component = function (options = {}) {
const
PAGE_EVENT_HOOKS
=
[
'
onPullDownRefresh
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onShareTimeline
'
,
'
onShareAppMessage
'
,
'
onPageScroll
'
,
...
...
@@ -1215,6 +1211,15 @@ function isMatchEventType (eventType, optType) {
)
}
function
getContextVm
(
vm
)
{
let
$parent
=
vm
.
$parent
;
// 父组件是 scoped slots 或者其他自定义组件时继续查找
while
(
$parent
&&
$parent
.
$parent
&&
(
$parent
.
$options
.
generic
||
$parent
.
$parent
.
$options
.
generic
||
$parent
.
$scope
.
_$vuePid
))
{
$parent
=
$parent
.
$parent
;
}
return
$parent
&&
$parent
.
$parent
}
function
handleEvent
(
event
)
{
event
=
wrapper$1
(
event
);
...
...
@@ -1247,12 +1252,8 @@ function handleEvent (event) {
const
methodName
=
eventArray
[
0
];
if
(
methodName
)
{
let
handlerCtx
=
this
.
$vm
;
if
(
handlerCtx
.
$options
.
generic
&&
handlerCtx
.
$parent
&&
handlerCtx
.
$parent
.
$parent
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
handlerCtx
.
$parent
.
$parent
;
if
(
handlerCtx
.
$options
.
generic
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
getContextVm
(
handlerCtx
)
||
handlerCtx
;
}
if
(
methodName
===
'
$emit
'
)
{
handlerCtx
.
$emit
.
apply
(
handlerCtx
,
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
0a51a642
...
...
@@ -611,10 +611,6 @@ var extraApi = /*#__PURE__*/Object.freeze({
});
const
getEmitter
=
(
function
()
{
if
(
typeof
getUniEmitter
===
'
function
'
)
{
/* eslint-disable no-undef */
return
getUniEmitter
}
let
Emitter
;
return
function
getUniEmitter
()
{
if
(
!
Emitter
)
{
...
...
@@ -695,8 +691,8 @@ Component = function (options = {}) {
const
PAGE_EVENT_HOOKS
=
[
'
onPullDownRefresh
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onShareTimeline
'
,
'
onShareAppMessage
'
,
'
onPageScroll
'
,
...
...
@@ -1131,6 +1127,15 @@ function isMatchEventType (eventType, optType) {
)
}
function
getContextVm
(
vm
)
{
let
$parent
=
vm
.
$parent
;
// 父组件是 scoped slots 或者其他自定义组件时继续查找
while
(
$parent
&&
$parent
.
$parent
&&
(
$parent
.
$options
.
generic
||
$parent
.
$parent
.
$options
.
generic
||
$parent
.
$scope
.
_$vuePid
))
{
$parent
=
$parent
.
$parent
;
}
return
$parent
&&
$parent
.
$parent
}
function
handleEvent
(
event
)
{
event
=
wrapper$1
(
event
);
...
...
@@ -1163,12 +1168,8 @@ function handleEvent (event) {
const
methodName
=
eventArray
[
0
];
if
(
methodName
)
{
let
handlerCtx
=
this
.
$vm
;
if
(
handlerCtx
.
$options
.
generic
&&
handlerCtx
.
$parent
&&
handlerCtx
.
$parent
.
$parent
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
handlerCtx
.
$parent
.
$parent
;
if
(
handlerCtx
.
$options
.
generic
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
getContextVm
(
handlerCtx
)
||
handlerCtx
;
}
if
(
methodName
===
'
$emit
'
)
{
handlerCtx
.
$emit
.
apply
(
handlerCtx
,
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
0a51a642
...
...
@@ -703,10 +703,6 @@ var extraApi = /*#__PURE__*/Object.freeze({
});
const
getEmitter
=
(
function
()
{
if
(
typeof
getUniEmitter
===
'
function
'
)
{
/* eslint-disable no-undef */
return
getUniEmitter
}
let
Emitter
;
return
function
getUniEmitter
()
{
if
(
!
Emitter
)
{
...
...
@@ -787,8 +783,8 @@ Component = function (options = {}) {
const
PAGE_EVENT_HOOKS
=
[
'
onPullDownRefresh
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onShareTimeline
'
,
'
onShareAppMessage
'
,
'
onPageScroll
'
,
...
...
@@ -1223,6 +1219,15 @@ function isMatchEventType (eventType, optType) {
)
}
function
getContextVm
(
vm
)
{
let
$parent
=
vm
.
$parent
;
// 父组件是 scoped slots 或者其他自定义组件时继续查找
while
(
$parent
&&
$parent
.
$parent
&&
(
$parent
.
$options
.
generic
||
$parent
.
$parent
.
$options
.
generic
||
$parent
.
$scope
.
_$vuePid
))
{
$parent
=
$parent
.
$parent
;
}
return
$parent
&&
$parent
.
$parent
}
function
handleEvent
(
event
)
{
event
=
wrapper$1
(
event
);
...
...
@@ -1255,12 +1260,8 @@ function handleEvent (event) {
const
methodName
=
eventArray
[
0
];
if
(
methodName
)
{
let
handlerCtx
=
this
.
$vm
;
if
(
handlerCtx
.
$options
.
generic
&&
handlerCtx
.
$parent
&&
handlerCtx
.
$parent
.
$parent
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
handlerCtx
.
$parent
.
$parent
;
if
(
handlerCtx
.
$options
.
generic
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
getContextVm
(
handlerCtx
)
||
handlerCtx
;
}
if
(
methodName
===
'
$emit
'
)
{
handlerCtx
.
$emit
.
apply
(
handlerCtx
,
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
0a51a642
...
...
@@ -563,10 +563,6 @@ var extraApi = /*#__PURE__*/Object.freeze({
});
const
getEmitter
=
(
function
()
{
if
(
typeof
getUniEmitter
===
'
function
'
)
{
/* eslint-disable no-undef */
return
getUniEmitter
}
let
Emitter
;
return
function
getUniEmitter
()
{
if
(
!
Emitter
)
{
...
...
@@ -652,8 +648,8 @@ Component = function (options = {}) {
const
PAGE_EVENT_HOOKS
=
[
'
onPullDownRefresh
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onShareTimeline
'
,
'
onShareAppMessage
'
,
'
onPageScroll
'
,
...
...
@@ -1088,6 +1084,15 @@ function isMatchEventType (eventType, optType) {
)
}
function
getContextVm
(
vm
)
{
let
$parent
=
vm
.
$parent
;
// 父组件是 scoped slots 或者其他自定义组件时继续查找
while
(
$parent
&&
$parent
.
$parent
&&
(
$parent
.
$options
.
generic
||
$parent
.
$parent
.
$options
.
generic
||
$parent
.
$scope
.
_$vuePid
))
{
$parent
=
$parent
.
$parent
;
}
return
$parent
&&
$parent
.
$parent
}
function
handleEvent
(
event
)
{
event
=
wrapper$1
(
event
);
...
...
@@ -1120,12 +1125,8 @@ function handleEvent (event) {
const
methodName
=
eventArray
[
0
];
if
(
methodName
)
{
let
handlerCtx
=
this
.
$vm
;
if
(
handlerCtx
.
$options
.
generic
&&
handlerCtx
.
$parent
&&
handlerCtx
.
$parent
.
$parent
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
handlerCtx
.
$parent
.
$parent
;
if
(
handlerCtx
.
$options
.
generic
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
getContextVm
(
handlerCtx
)
||
handlerCtx
;
}
if
(
methodName
===
'
$emit
'
)
{
handlerCtx
.
$emit
.
apply
(
handlerCtx
,
...
...
packages/uni-quickapp-webview/dist/index.js
浏览文件 @
0a51a642
...
...
@@ -553,10 +553,6 @@ var extraApi = /*#__PURE__*/Object.freeze({
});
const
getEmitter
=
(
function
()
{
if
(
typeof
getUniEmitter
===
'
function
'
)
{
/* eslint-disable no-undef */
return
getUniEmitter
}
let
Emitter
;
return
function
getUniEmitter
()
{
if
(
!
Emitter
)
{
...
...
@@ -637,8 +633,8 @@ Component = function (options = {}) {
const
PAGE_EVENT_HOOKS
=
[
'
onPullDownRefresh
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onReachBottom
'
,
'
onAddToFavorites
'
,
'
onShareTimeline
'
,
'
onShareAppMessage
'
,
'
onPageScroll
'
,
...
...
@@ -1073,6 +1069,15 @@ function isMatchEventType (eventType, optType) {
)
}
function
getContextVm
(
vm
)
{
let
$parent
=
vm
.
$parent
;
// 父组件是 scoped slots 或者其他自定义组件时继续查找
while
(
$parent
&&
$parent
.
$parent
&&
(
$parent
.
$options
.
generic
||
$parent
.
$parent
.
$options
.
generic
||
$parent
.
$scope
.
_$vuePid
))
{
$parent
=
$parent
.
$parent
;
}
return
$parent
&&
$parent
.
$parent
}
function
handleEvent
(
event
)
{
event
=
wrapper$1
(
event
);
...
...
@@ -1105,12 +1110,8 @@ function handleEvent (event) {
const
methodName
=
eventArray
[
0
];
if
(
methodName
)
{
let
handlerCtx
=
this
.
$vm
;
if
(
handlerCtx
.
$options
.
generic
&&
handlerCtx
.
$parent
&&
handlerCtx
.
$parent
.
$parent
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
handlerCtx
.
$parent
.
$parent
;
if
(
handlerCtx
.
$options
.
generic
)
{
// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
handlerCtx
=
getContextVm
(
handlerCtx
)
||
handlerCtx
;
}
if
(
methodName
===
'
$emit
'
)
{
handlerCtx
.
$emit
.
apply
(
handlerCtx
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录