Skip to content

Commit

Permalink
feat(okam-core): add toutiao mini program support
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhy committed Nov 11, 2018
1 parent c516b79 commit 20a15a2
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/okam-core/src/tt/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @file Create toutiao App instance
* @author [email protected]
*/

'use strict';

import App from '../App';
export default App;
28 changes: 28 additions & 0 deletions packages/okam-core/src/tt/Component.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* @file Create toutiao component instance
* @author [email protected]
*/

'use strict';

import {createComponent} from '../helper/factory';
import {normalizeComponent} from '../helper/component';
import componentBase from '../base/component';

/**
* Create component instance
*
* @param {Object} componentInfo the component information
* @param {Object} refComponents the component reference used in the component, the
* reference information is defined in the template
* @return {Object}
*/
export default function extendComponent(componentInfo, refComponents) {
return createComponent(
componentInfo,
componentBase,
normalizeComponent,
refComponents
);
}

9 changes: 9 additions & 0 deletions packages/okam-core/src/tt/Page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @file Create wx page instance
* @author [email protected]
*/

'use strict';

import Page from '../Page';
export default Page;

0 comments on commit 20a15a2

Please sign in to comment.