Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Velpro187
uni-app
提交
257c2ff4
U
uni-app
项目概览
Velpro187
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
257c2ff4
编写于
4月 01, 2022
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build runtime
上级
7b474871
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
79 addition
and
77 deletion
+79
-77
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+4
-4
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+40
-38
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+4
-4
packages/uni-mp-jd/dist/index.js
packages/uni-mp-jd/dist/index.js
+4
-4
packages/uni-mp-kuaishou/dist/index.js
packages/uni-mp-kuaishou/dist/index.js
+4
-4
packages/uni-mp-lark/dist/index.js
packages/uni-mp-lark/dist/index.js
+4
-4
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+4
-4
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+5
-5
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+4
-4
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
+4
-4
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -2082,10 +2082,10 @@ function parsePage$1 (vuePageOptions) {
return
pageOptions
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage$1
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage$1
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
packages/uni-mp-alipay/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -2143,10 +2143,6 @@ const hooks = [
'
onUnhandledRejection
'
];
{
hooks
.
push
(
'
onShareAppMessage
'
);
}
function
initEventChannel$1
()
{
Vue
.
prototype
.
getOpenerEventChannel
=
function
()
{
if
(
!
this
.
__eventChannel__
)
{
...
...
@@ -2471,40 +2467,44 @@ function initChildVues (mpInstance) {
delete
mpInstance
.
_$childVues
;
}
function
handleProps
(
ref
)
{
const
eventProps
=
{};
let
refProps
=
ref
.
props
;
const
eventList
=
refProps
[
'
data-event-list
'
].
split
(
'
,
'
);
// 初始化支付宝小程序组件事件
Object
.
keys
(
refProps
).
forEach
(
key
=>
{
if
(
eventList
.
includes
(
key
))
{
const
handler
=
refProps
[
key
];
const
res
=
key
.
match
(
/^on
([
A-Z
])(\S
*
)
/
);
const
event
=
res
&&
(
res
[
1
].
toLowerCase
()
+
res
[
2
]);
refProps
[
key
]
=
eventProps
[
key
]
=
function
()
{
const
props
=
Object
.
assign
({},
refProps
);
props
[
key
]
=
handler
;
// 由于支付宝事件可能包含多个参数,不使用微信小程序事件格式
delete
props
[
'
data-com-type
'
];
triggerEvent
.
bind
({
props
})(
event
,
{
__args__
:
[...
arguments
]
});
};
}
});
// 处理 props 重写
Object
.
defineProperty
(
ref
,
'
props
'
,
{
get
()
{
return
refProps
},
set
(
value
)
{
refProps
=
Object
.
assign
(
value
,
eventProps
);
}
});
}
function
handleRef
(
ref
)
{
if
(
!
ref
)
{
return
}
if
(
ref
.
props
[
'
data-com-type
'
]
===
'
wx
'
)
{
const
eventProps
=
{};
let
refProps
=
ref
.
props
;
const
eventList
=
refProps
[
'
data-event-list
'
].
split
(
'
,
'
);
// 初始化支付宝小程序组件事件
Object
.
keys
(
refProps
).
forEach
(
key
=>
{
if
(
eventList
.
includes
(
key
))
{
const
handler
=
refProps
[
key
];
const
res
=
key
.
match
(
/^on
([
A-Z
])(\S
*
)
/
);
const
event
=
res
&&
(
res
[
1
].
toLowerCase
()
+
res
[
2
]);
refProps
[
key
]
=
eventProps
[
key
]
=
function
()
{
const
props
=
Object
.
assign
({},
refProps
);
props
[
key
]
=
handler
;
// 由于支付宝事件可能包含多个参数,不使用微信小程序事件格式
delete
props
[
'
data-com-type
'
];
triggerEvent
.
bind
({
props
})(
event
,
{
__args__
:
[...
arguments
]
});
};
}
});
// 处理 props 重写
Object
.
defineProperty
(
ref
,
'
props
'
,
{
get
()
{
return
refProps
},
set
(
value
)
{
refProps
=
Object
.
assign
(
value
,
eventProps
);
}
});
handleProps
(
ref
);
}
const
refName
=
ref
.
props
[
'
data-ref
'
];
const
refInForName
=
ref
.
props
[
'
data-ref-in-for
'
];
...
...
@@ -2592,12 +2592,14 @@ const handleWrap = function (mp, destory) {
if
(
destory
)
{
delete
this
[
key
];
}
else
{
// TODO remove handleRef
this
[
key
]
=
function
()
{
mp
.
props
[
eventName
].
apply
(
this
,
arguments
);
};
}
});
if
(
!
destory
)
{
handleProps
(
mp
);
}
};
function
parseApp
(
vm
)
{
...
...
@@ -2778,10 +2780,10 @@ function parsePage (vuePageOptions) {
return
pageOptions
}
function
createPage
(
vuePageOptions
)
{
{
return
Page
(
parsePage
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Page
(
parsePage
(
vuePageOptions
))
}
}
function
initVm
(
VueComponent
)
{
...
...
packages/uni-mp-baidu/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -2408,10 +2408,10 @@ function parsePage (vuePageOptions) {
return
pageOptions
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
packages/uni-mp-jd/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -1900,10 +1900,10 @@ function parsePage$1 (vuePageOptions) {
return
parsePage
(
vuePageOptions
)
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage$1
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage$1
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
packages/uni-mp-kuaishou/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -2064,10 +2064,10 @@ function parsePage$1 (vuePageOptions) {
return
parsePage
(
vuePageOptions
)
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage$1
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage$1
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
packages/uni-mp-lark/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -2173,10 +2173,10 @@ function parsePage (vuePageOptions) {
return
pageOptions
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -2186,10 +2186,10 @@ function parsePage$1 (vuePageOptions) {
return
parsePage
(
vuePageOptions
)
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage$1
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage$1
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -1170,7 +1170,7 @@ function initTriggerEvent (mpInstance) {
function
initHook
(
name
,
options
,
isComponent
)
{
{
// fix by Lxh 字节自定义组件Component构造器文档上写有created,但是实测只触发了lifetimes上的created
isComponent
&&
(
options
=
options
.
lifetimes
);
isComponent
&&
options
.
lifetimes
&&
options
.
lifetimes
[
name
]
&&
(
options
=
options
.
lifetimes
);
}
const
oldHook
=
options
[
name
];
if
(
!
oldHook
)
{
...
...
@@ -2414,10 +2414,10 @@ function parsePage (vuePageOptions) {
return
pageOptions
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -1925,10 +1925,10 @@ function parsePage (vuePageOptions) {
})
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
packages/uni-quickapp-native/dist/vue.dev.js
浏览文件 @
257c2ff4
此差异已折叠。
点击以展开。
packages/uni-quickapp-native/dist/vue.prod.js
浏览文件 @
257c2ff4
此差异已折叠。
点击以展开。
packages/uni-quickapp-webview/dist/index.js
浏览文件 @
257c2ff4
...
...
@@ -2042,10 +2042,10 @@ function parsePage (vuePageOptions) {
return
pageOptions
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
function
createPage
(
vuePageOptions
)
{
{
return
Component
(
parsePage
(
vuePageOptions
))
}
}
function
createComponent
(
vueOptions
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录