marekchen created WEEX-58:
-----------------------------

             Summary: @click function is invoked twice
                 Key: WEEX-58
                 URL: https://issues.apache.org/jira/browse/WEEX-58
             Project: Weex
          Issue Type: Bug
          Components: Web Renderer
    Affects Versions: 0.12
         Environment: latest vue weex 
            Reporter: marekchen
            Assignee: Danz He
         Attachments: TIM截图20170718113555.jpg

@click function is invoked twice in web.

```
<template>
  <div class="wrapper" @click="update">
    <image :src="logoUrl" class="logo"></image>
    <text class="title">Hello {{target}}</text>
  </div>
</template>

<style>
  .wrapper { align-items: center; margin-top: 120px; }
  .title { font-size: 48px; }
  .logo { width: 360px; height: 82px; }
</style>

<script>
  export default {
    data: {
      logoUrl: 'https://alibaba.github.io/weex/img/[email protected]',
      target: 'World',
      time: 0
    },
    methods: {
      update: function (e) {
        this.time++
        this.target = 'Weex'
        console.log('target:', this.target, this.time)
      }
    }
  }
</script>
```
!TIM截图20170718113555.jpg|thumbnail!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to