You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/02/27 02:43:05 UTC
[GitHub] Hanks10100 commented on issue #2155: [iOS] weex+vue,this.$refs.xxx.ref,普通div正常,但在v-for中的div返回undefined
Hanks10100 commented on issue #2155: [iOS] weex+vue,this.$refs.xxx.ref,普通div正常,但在v-for中的div返回undefined
URL: https://github.com/apache/incubator-weex/issues/2155#issuecomment-467701278
Please check the document of Vue.js (https://vuejs.org/v2/guide/components-edge-cases.html#Accessing-Child-Component-Instances-amp-Child-Elements).
> When ref is used together with v-for, the ref you get will be an array containing the child components mirroring the data source.
Try `this.$refs.for[0].ref`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services