okam-core
Version:
The extension for small program framework
29 lines (25 loc) • 677 B
JavaScript
/**
* @file Create wx page instance
* @author sparklewhy@gmail.com
*/
;
import {createPage} from '../helper/factory';
import {normalizePage} from '../helper/page';
import pageBase from '../base/page';
/**
* Create the page instance
*
* @param {Object} pageInfo the page info
* @param {Object=} options the extra init options
* @param {Object=} options.refs the component reference used in the component, the
* reference information is defined in the template
* @return {Object}
*/
export default function extendPage(pageInfo, options) {
return createPage(
pageInfo,
pageBase,
normalizePage,
options
);
}