Skip to content

Commit

Permalink
fix(taro-weapp): 支持自定义组件循环输出自定义组件
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbachen committed Jun 9, 2018
1 parent e72a3e1 commit a0af9d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/taro-weapp/src/create-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export function processDynamicComponents (page) {
child.props.$path = comPath
child._init(component.$scope)
child._initData(component.$root || component, component)
recursiveDynamicComponents(child)
componentTrigger(child, 'componentWillMount')
} else {
child.$path = comPath
Expand All @@ -155,6 +156,7 @@ export function processDynamicComponents (page) {
child.state = child._createData()
child._init(component.$scope)
child._initData(component.$root || component, component)
recursiveDynamicComponents(child)
}

if (stateData) {
Expand Down

0 comments on commit a0af9d9

Please sign in to comment.