You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
293 B
10 lines
293 B
|
3 years ago
|
import parseComponent from 'uni-platform/runtime/wrapper/component-parser'
|
||
|
|
|
||
|
|
export default function createComponent (vueOptions) {
|
||
|
|
if (__PLATFORM__ === 'mp-alipay') {
|
||
|
|
return my.defineComponent(parseComponent(vueOptions))
|
||
|
|
} else {
|
||
|
|
return Component(parseComponent(vueOptions))
|
||
|
|
}
|
||
|
|
}
|