-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(okam-core): add toutiao mini program support
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |