未验证 提交 a2c9a7c9 编写于 作者: J jaceechan 提交者: GitHub

Update component-base-parser.js

try add more support to mp-weixin component options setting, such as styleIsolation
上级 350fa0a0
......@@ -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]
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册