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

更新 component-base-parser.js,简化options配置代码

上级 9ec88b92
...@@ -20,11 +20,11 @@ export default function parseBaseComponent (vueComponentOptions, { ...@@ -20,11 +20,11 @@ export default function parseBaseComponent (vueComponentOptions, {
initRelation initRelation
} = {}) { } = {}) {
let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions) let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions)
const _options = vueOptions.otpions || {}
const options = { const options = {
multipleSlots: true, multipleSlots: true,
addGlobalClass: true, addGlobalClass: true,
..._options ...(vueOptions.options || {})
} }
if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'mp-qq') { if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'mp-qq') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册