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.
32 lines
599 B
32 lines
599 B
|
3 years ago
|
import {
|
||
|
|
parseData
|
||
|
|
} from './data-parser'
|
||
|
|
|
||
|
|
import {
|
||
|
|
parseComponents
|
||
|
|
} from './components-parser'
|
||
|
|
|
||
|
|
import {
|
||
|
|
parsePageMethods
|
||
|
|
} from './page-methods-parser'
|
||
|
|
|
||
|
|
import {
|
||
|
|
parsePageLifecycle
|
||
|
|
} from './page-lifecycle-parser'
|
||
|
|
|
||
|
|
export function parsePage (mpComponentOptions) {
|
||
|
|
const vueComponentOptions = {
|
||
|
|
mixins: [],
|
||
|
|
mpOptions: {}
|
||
|
|
}
|
||
|
|
|
||
|
|
parseComponents(vueComponentOptions)
|
||
|
|
|
||
|
|
parseData(mpComponentOptions.data, vueComponentOptions)
|
||
|
|
|
||
|
|
parsePageMethods(mpComponentOptions, vueComponentOptions)
|
||
|
|
parsePageLifecycle(mpComponentOptions, vueComponentOptions)
|
||
|
|
|
||
|
|
return vueComponentOptions
|
||
|
|
}
|