提交 bfddd35d 编写于 作者: R RubaXa

+ choice between 'state' or 'props'

上级 fbf4f8b6
......@@ -44,7 +44,10 @@
function _getModelItems(component) {
return component.state[_getModelName(component)].slice();
var name = _getModelName(component),
items = component.state && component.state[name] || component.props[name];
return items.slice();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册