Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

weex 覆盖在上面的层无法挡住底下的点击事件?

http://dotwe.org/vue/5f2962a3...
底下红色的层中间有个text,响应click事件,在手机端试一下,点击红色层的中间位置,会显示hello,world


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

查了一下安卓的事件传递机制,在上面的层上加个@click.stop,果然可以了,不过在debuger中会报$event.stopPropagation,但也没有影响。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...