8000 can't transfer attribute "onclick" to child component · Issue #1 · alibaba/weex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
can't transfer attribute "onclick" to child component #1
Closed
@luics

Description

@luics
<element name="foo">
  <template>
    <container style="margin-top: 40px;margin-bottom: 40px;">
      <text onclick={{onclick}}>Bind onclick, failed</text>
    </container>
  </template>
</element>

<element name="bar">
  <template>
    <container>
      <text onclick={{click}}>Bind other prop, succeed</text>
    </container>
  </template>
</element>

<template>
  <container>
    <foo onclick={{clicked}}></foo>
    <bar click={{clicked}}></bar>
    <!--<text >bind onclick prop</text>-->
  </container>
</template>

<script>
  module.exports = {
    methods: {
      clicked: function() {
        this.$call('modal', 'toast', {'message': 'clicked!'});
      }
    }
  }
</script>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0