提交 365b7a4a 编写于 作者: Q qiang

chore: build

上级 1e2476c7
......@@ -2125,7 +2125,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions
}
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -1098,7 +1098,6 @@ const protocols = { // 需要做转换的 API 列表
const args = {
title: 'content',
icon: 'type',
duration: false,
image: false,
mask: false
};
......@@ -2814,7 +2813,7 @@ function initChildVues (mpInstance) {
function handleProps (ref) {
const eventProps = {};
let refProps = ref.props;
const eventList = refProps['data-event-list'].split(',');
const eventList = (refProps['data-event-list'] || '').split(',');
// 初始化支付宝小程序组件事件
Object.keys(refProps).forEach(key => {
if (eventList.includes(key)) {
......@@ -2930,7 +2929,7 @@ const handleLink$1 = (function () {
const handleWrap = function (mp, destory) {
const vueId = mp.props.vueId;
const list = mp.props['data-event-list'].split(',');
const list = (mp.props['data-event-list'] || '').split(',');
list.forEach(eventName => {
const key = `${eventName}${vueId}`;
if (destory) {
......
......@@ -2680,7 +2680,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onInit', 'onReady']);
}
return pageOptions
}
......
......@@ -2254,7 +2254,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions
}
......
......@@ -2386,7 +2386,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions
}
......
......@@ -2481,7 +2481,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions
}
......
......@@ -2514,7 +2514,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions
}
......
......@@ -2748,7 +2748,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions
}
......
......@@ -2360,7 +2360,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions
}
......
......@@ -2149,7 +2149,7 @@ function initSpecialMethods (mpInstance) {
const handleWrap = function (mp, destory) {
const vueId = mp.props.vueId;
const list = mp.props['data-event-list'].split(',');
const list = (mp.props['data-event-list'] || '').split(',');
list.forEach(eventName => {
const key = `${eventName}${vueId}`;
if (destory) {
......
......@@ -2377,7 +2377,9 @@ function parseBasePage (vuePageOptions, {
this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query);
};
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册