weexteam / dsl-transformer-for-apache-weex Goto Github PK
View Code? Open in Web Editor NEWDSL-transformer-for-Apache-Weex is is a third party plugin, and is not developed nor maintained by Apache Weex.
License: MIT License
DSL-transformer-for-Apache-Weex is is a third party plugin, and is not developed nor maintained by Apache Weex.
License: MIT License
<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>
检查节点深度 是否超过警戒值(警戒值最好可以配置)
要考虑解包第三方组件后的实际深度。
还有一些其他的可优化的结构检查(如无意义的嵌套div)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.