Skip to content

Commit

Permalink
fix(components): nerv 无法支持 render 的结果是一个数组,close #1804
Browse files Browse the repository at this point in the history
暂时性修复方案: render 返回一个数组时目前 nerv 只能渲染,不能移除,需要等待 fragments 支持
  • Loading branch information
yuche committed Jan 9, 2019
1 parent 831db14 commit 8bd95c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-components/src/components/block/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export default class Block extends Nerv.Component {
}

render () {
return this.props.children
return <div>{this.props.children}</div>
}
}

0 comments on commit 8bd95c8

Please sign in to comment.