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

增强微信小程序Component构造器中options的配置,让其支持更多options配置,如styleIsolation

上级 a2c9a7c9
......@@ -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,
...vueOptions.options
..._options
}
if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'mp-qq') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册