Fork自 DCloud / uni-app
体验新版 GitCode,发现更多精彩内容 >>
import parseComponent from 'uni-platform/runtime/wrapper/component-parser'
export function createComponent (vueOptions) {
if (__PLATFORM__ === 'mp-alipay') { return my.createComponent(parseComponent(vueOptions))
} else {
return Component(parseComponent(vueOptions))
} }