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 e560022d5807cd484e4b1428a5b9e37f36a158ba..6e0668d72870e4b2924ea5e5931ac69c2ec91db9 100644 --- a/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js +++ b/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js @@ -23,10 +23,11 @@ export default function parseBaseComponent (vueComponentOptions, { const options = { multipleSlots: true, - addGlobalClass: true + addGlobalClass: true, + ...vueOptions.options } - if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'mp-qq') { + if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'mp-qq') { // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项 if (vueOptions['mp-weixin'] && vueOptions['mp-weixin']['options']) { Object.assign(options, vueOptions['mp-weixin']['options']) @@ -109,4 +110,4 @@ export default function parseBaseComponent (vueComponentOptions, { return componentOptions } return [componentOptions, VueComponent] -} +}