Coder Social home page Coder Social logo

weexteam / dsl-transformer-for-apache-weex Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 3.0 49 KB

DSL-transformer-for-Apache-Weex is is a third party plugin, and is not developed nor maintained by Apache Weex.

License: MIT License

JavaScript 80.94% HTML 19.06%

dsl-transformer-for-apache-weex's People

Contributors

hanks10100 avatar songsiqi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dsl-transformer-for-apache-weex's Issues

Transformer 不能正确的 解析 require('package')

  <template>
  <div>
    <cnx-white-space></cnx-white-space>
    <text>Hello</text>
  </div>
</template>

<script>
  require("@ali/cnx-component");   

  // 是否这里写法上有问题, 该不会要 写成  require('path/node_modules/@ali/cnx-component') 之类的吧???
</script>

@ali/cnx-component 是我们自己发布的一个 weex component 包, 已经发布的.

我需要运行 transformer.transform('name', '上面的source code'), 目前发现转化后的 result 不含 '@ali/cnx-component'里面的widget.

请问是否支持?

重复解析

重复解析A

<template>
  <div>
      <a href="http://g.tbcdn.cn/ali-wireless-h5/res/0.0.16/hello.js" onclick='onclick1' 
      style='height:10;top:100'>

        <div>
          <a href="http://g.tbcdn.cn/ali-wireless-h5/res/0.0.16/hello.js" onclick='onclick2' style='top:100'>
            <text>Hello</text>
          </a>
        </div>

        <text>Weex</text>
      </a>
  </div>
</template>

<script>
 module.exports = {
    methods:{
      onclick1:function() {
        console.log('onclick1');
      },
      onclick2:function(){
        console.log('onclick2');
      }
    }
  }
</script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.