提交 3a1d3bcd 编写于 作者: Q qiang

chore: build

上级 8154200e
......@@ -491,6 +491,8 @@ function initRouteMeta(pageMeta, id) {
PAGE_META_KEYS.forEach((name) => {
res[name] = shared.extend({}, globalStyle[name], pageMeta[name]);
});
const { navigationBar } = res;
navigationBar.titleText && navigationBar.titleImage && (navigationBar.titleText = "");
return res;
}
function normalizePullToRefreshRpx(pullToRefresh) {
......
......@@ -942,6 +942,8 @@ function initRouteMeta(pageMeta, id2) {
PAGE_META_KEYS.forEach((name) => {
res[name] = extend({}, globalStyle[name], pageMeta[name]);
});
const { navigationBar } = res;
navigationBar.titleText && navigationBar.titleImage && (navigationBar.titleText = "");
return res;
}
function normalizePullToRefreshRpx(pullToRefresh) {
......
......@@ -476,7 +476,7 @@ function initScopedSlotsParams(instance) {
const vueIds = instance.attrs.vueId;
if (vueIds) {
const vueId = vueIds.split(',')[0];
const object = center[vueId] = center[vueId] || {};
const object = (center[vueId] = center[vueId] || {});
object[name] = value;
if (parents[vueId]) {
parents[vueId].$forceUpdate();
......
......@@ -501,7 +501,7 @@ function initScopedSlotsParams(instance) {
const vueIds = instance.attrs.vueId;
if (vueIds) {
const vueId = vueIds.split(',')[0];
const object = center[vueId] = center[vueId] || {};
const object = (center[vueId] = center[vueId] || {});
object[name] = value;
if (parents[vueId]) {
parents[vueId].$forceUpdate();
......
......@@ -501,7 +501,7 @@ function initScopedSlotsParams(instance) {
const vueIds = instance.attrs.vueId;
if (vueIds) {
const vueId = vueIds.split(',')[0];
const object = center[vueId] = center[vueId] || {};
const object = (center[vueId] = center[vueId] || {});
object[name] = value;
if (parents[vueId]) {
parents[vueId].$forceUpdate();
......
......@@ -501,7 +501,7 @@ function initScopedSlotsParams(instance) {
const vueIds = instance.attrs.vueId;
if (vueIds) {
const vueId = vueIds.split(',')[0];
const object = center[vueId] = center[vueId] || {};
const object = (center[vueId] = center[vueId] || {});
object[name] = value;
if (parents[vueId]) {
parents[vueId].$forceUpdate();
......
......@@ -501,7 +501,7 @@ function initScopedSlotsParams(instance) {
const vueIds = instance.attrs.vueId;
if (vueIds) {
const vueId = vueIds.split(',')[0];
const object = center[vueId] = center[vueId] || {};
const object = (center[vueId] = center[vueId] || {});
object[name] = value;
if (parents[vueId]) {
parents[vueId].$forceUpdate();
......
......@@ -4045,11 +4045,8 @@ function withModifiers() { }
function createVNode$1() { }
function applyOptions(options, instance, publicThis) {
const mpType = options.mpType || publicThis.$mpType;
if (!mpType) {
// 仅 App,Page 类型支持 on 生命周期
return;
}
options.mpType || publicThis.$mpType;
// 为了组件也可以监听部分生命周期,故不再判断mpType,统一添加on开头的生命周期
Object.keys(options).forEach((name) => {
if (name.indexOf('on') === 0) {
const hook = options[name];
......
......@@ -447,7 +447,7 @@ function initScopedSlotsParams(instance) {
const vueIds = instance.attrs.vueId;
if (vueIds) {
const vueId = vueIds.split(',')[0];
const object = center[vueId] = center[vueId] || {};
const object = (center[vueId] = center[vueId] || {});
object[name] = value;
if (parents[vueId]) {
parents[vueId].$forceUpdate();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册