zhangquan

Results comments of zhangquan

@squirrelx 这个问题的原因是, 在使用`repeat`属性的标签和不使用`repeat`属性的标签上绑定事件,事件处理涵数的上下文并不相同,即`this`指向的并不是同一个对象。 demo ``` vue {{name}} module.exports = { data:{ items:[{name:1},{name:2}] }, methods:{ onClick1:function(){ //this是当前组件上下文 console.log(this) }, onClick2:function(){ //this是repeat上下文 console.log(this) }, onClick3:function(){ //this是repeat上下文 console.log(this) } } } ``` 在weex编译带有...

https://github.com/alibaba/weex/pull/1284 这个pr修复 `repeat` 内添加事件上下文不一致的情况,但同时导致了 `repeat` 内的事件获取不到数据的情况。 这里有一个矛盾, 保持上下文一致或者不一致都有问题。综合考虑之后的解决方案: - 保持原有设计, 些问题可以修复 - 如果用户发现上下文不一致,可以能过 `this._realParent` 获取真正的上下文。 pr: https://github.com/alibaba/weex/pull/1501

浏览器上的picker实现由于引入了第三库, 并没有做成内置的组件, 你可以到这里 https://github.com/weexteam/weex-picker 自行安装