提交 323e28eb 编写于 作者: fxy060608's avatar fxy060608

feat(mp-weixin): add options

上级 12850d26
......@@ -21,11 +21,20 @@ export default function parseBaseComponent (vueComponentOptions, {
} = {}) {
let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions)
const options = {
multipleSlots: true,
addGlobalClass: true
}
if (__PLATFORM__ === 'mp-weixin') {
// 微信multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
if (vueComponentOptions['mp-weixin'] && vueComponentOptions['mp-weixin']['options']) {
Object.assign(options, vueComponentOptions['mp-weixin']['options'])
}
}
const componentOptions = {
options: {
multipleSlots: true,
addGlobalClass: true
},
options,
data: initData(vueOptions, Vue.prototype),
behaviors: initBehaviors(vueOptions, initBehavior),
properties: initProperties(vueOptions.props, false, vueOptions.__file),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册