baidufe / tangram-component Goto Github PK
View Code? Open in Web Editor NEWHome Page: tangram-component
License: BSD 3-Clause "New" or "Revised" License
Home Page: tangram-component
License: BSD 3-Clause "New" or "Revised" License
Tangram是一个简单可依赖的Javascript库,适合开发互联网产品。 被几乎所有百度产品做为基础库引用,如百度知道,百度广告管家等。 你可以在下面的地址看到API文档和DEMO,以及一些介绍文章: http://tangram.baidu.com 致开发者: 主干是稳定版本,如果你想提交代码、查看最新版本,请使用dev分支。 Tangram有完整的单元测试用例,用例执行依赖web server和php环境。 提交代码前,请确认测试用例的执行情况。 测试用例地址: http://localhost/path/to/tangram/test/tools/br/list.php Tangram component是基于Tangram base开发的组件,见: https://github.com/BaiduFE/Tangram-component Tangram is a simple and reliable JavaScript library designed for building web products. It is used by almost every Baidu product, such as Zhidao and AD Manager. For more information about Tangram, visit: http://tangram.baidu.com To developers: If you want to commit code, please fork dev branch. you can find unit test here: http://localhost/path/to/tangram/test/tools/br/list.php
tangram.baidu.com不能再访问,没有地方可以看Demo了!工程下载下来,examples目录都没有,test目录下的没配好php也跑不起来,哪怕是简单的尝试一下tangram障碍也太多了。
如描述
见链接,下方的插件部分
http://tangram.baidu.com/tangram-component/baidu_ui_tooltip.html
coordinate变量时必须的,但是代码里没有赋默认值,如果必须用户自己赋值,请在文档里说明
语句:scrollOffset = scrollOffset || 0, 冗余,
因为scrollTo中已经做了处理
update方法里var len = me.axis[me.layout].size;代码,me.layout应该是horizontal或vertical,此变量应该在options中定义吗,无文档说明。
在options里设置了onafterfinish ,由于baidu.fx.remove里有baidu.object.extend操作,会用onafterfinish: function(){baidu.dom.remove(this.element);}覆盖options里的onafterfinish ,因此,options定义的onafterfinish 不会被执行
http://localhost/code/tangram-component/test/baidu/ui/button/test.html
当目录结构和预设值不同时,自动用例仍然无法执行。
请QA关注。
元素的内部元素依然可以执行mouse事件
默认的,我们认为render和update中关于dom绘制的逻辑应该是要保持一致,目前在update中会追加一个全新的dom节点进来,导致重复的dom元素出现
baidu.ui.createUI的构造函数中me.layout = options.layout || "horizontal";赋初值了,但是在extend里又一次赋初值layout : "horizontal",
如题
比如设置min=0,max=300,slider元素宽度为200,
计算出的value=298.45360824742266,实际是300;
滑块位置(left) 为193,实际是194。
如题
如描述,实际代码中使用me.ajaxOption,但是文档写明在get的参数中传入,导致该使用方式无法使用,另外,
是否需要考虑ajaxOption extend 默认的设置方式,避免用户定制ajaxOption时还需要写类似缓存相关的处理代码
目前文档里没有offset变量的说明
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.