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/07/10 11:52:08 UTC

[GitHub] [incubator-weex] bugaosunihhh opened a new issue #2675: 元素绑定多个自定义指令时,weex native端不生效

bugaosunihhh opened a new issue #2675: 元素绑定多个自定义指令时,weex native端不生效
URL: https://github.com/apache/incubator-weex/issues/2675
 
 
   sdk:0.18
   
   自定义指令
   ```js
   Vue.directive('d1', {
       bind: function(el, binding, vnode) {
           vnode.elm.addEvent('click',  function(e){
               console.log(1)
           });
       })
   })
   
   Vue.directive('d2', {
       bind: function(el, binding, vnode) {
           vnode.elm.addEvent('click',  function(e){
               console.log(2)
           });
       })
   })
   ```
   结构
   ```html
   <div v-d1 v-d2></div>
   ```
   点击 div 元素:
   在weex h5下 浏览器端,可以正常打印出 1 2
   但是在app内 weex native端,无法全部打印出来
   
   有人遇到过类型情况吗?
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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