From 358f05b527bb04ce402d1ae2802628729dd9b430 Mon Sep 17 00:00:00 2001 From: jaceechan Date: Fri, 28 Feb 2020 22:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20component-base-parser.js?= =?UTF-8?q?=EF=BC=8C=E7=AE=80=E5=8C=96options=E9=85=8D=E7=BD=AE=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mp-weixin/runtime/wrapper/component-base-parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js b/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js index 054e876bb..f54ffd6fb 100644 --- a/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js +++ b/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js @@ -20,11 +20,11 @@ export default function parseBaseComponent (vueComponentOptions, { initRelation } = {}) { let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions) - const _options = vueOptions.otpions || {} + const options = { multipleSlots: true, addGlobalClass: true, - ..._options + ...(vueOptions.options || {}) } if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'mp-qq') { -- GitLab