weexteam / picker-for-Apache-Weex

picker for Apache Weex is a third party plugin, and is not developed nor maintained by Apache Weex.
20 stars 10 forks source link

index默认选中报错 #16

Open dingly opened 6 years ago

dingly commented 6 years ago

1: 给pick增加index 默认选中, 当选中index=1之后再次重新选择,调用pick方法时,报错 index.js:2 Uncaught TypeError: Cannot read property 'x' of undefined webwxgetmsgimg

niubiliter commented 6 years ago

请问怎么添加这个H5的pick模块

wangzhenyu1260 commented 6 years ago

同样问题

androidzhangyanhui commented 6 years ago

同样如何添加h5的picker模块

androidzhangyanhui commented 6 years ago

Uncaught TypeError: Cannot read property 'pick' of undefined at Vue.pickSex (index.vue?a913:199) at weex$tap (index.vue?e265:45) at invoker (vue.runtime.esm.js?ff9b:2023) at HTMLParagraphElement.fn._withTask.fn._withTask (vue.runtime.esm.js?ff9b:1822) at fireEvent (gesture.js?6a15:87) at HTMLHtmlElement.touchendHandler (gesture.js?6a15:387)

wangzhenyu1260 commented 6 years ago

解决了,这里picker里的index所需类型是数组 picker.pick { index: [defalutIndex] }

wslaimin commented 5 years ago

解决了,这里picker里的index所需类型是数组 picker.pick { index: [defalutIndex] }

正解,谢谢