Giter Club home page Giter Club logo

tealui's Issues

3个bug

Object.set(callback 被执行)

Suggest blur 关闭

IE6报错

Scalable的问题

ScrollableControl我觉得还是难以认知。

。。。。 不知道你的直观感受是啥

Validator.Form 组件 如何设置自定义错误提示

Validator 组件中有 messages
var validator1 = new Validator({
elem: Dom.get('validator1'),
rules: {
// 必填字段。
required: true,
// 最小长度。
minLength: 1,
// 最大长度。
maxLength: 10,
// 自定义正则。
pattern: /\d/
},
// 通过 messages 的同名字段,可自定义错误信息。
messages: {
pattern: '必须包含一个数字'
}
});
而在Validator.Form 怎样自定义错误信息?

Dialog IE6 无显示

Dialog 组件在 IE6 无显示

在谷歌浏览器 Dialog 组件能正常弹出对话框,但在IE6浏览下无Dialog 对话框。

这是什么问题呀?大神求解

跑单元测试 抛了很多TypeError、ReferenceError

如:

dom/base:core: Basic requirements (2, 4, 6)重新执行16 ms
Dom
可以获取长度
push() 增加长度
push() 添加到最后一个元素
在执行 #5 at http://jplusui.github.com/dev/unittest/unit/dom/core.js:3:1 时出现异常: fn is not defined
源:
ReferenceError: fn is not defined
at http://jplusui.github.com/src/dom/base.js:130:16
at Class.map (http://jplusui.github.com/src/dom/base.js:115:17)
at Class.filter (http://jplusui.github.com/src/dom/base.js:127:20)
at Object. (http://jplusui.github.com/dev/unittest/unit/dom/core.js:16:15)
共 9 个确认, 但只执行了 5 个
源:
at http://jplusui.github.com/dev/unittest/unit/dom/core.js:3:1

dialog width值没有统一, IE浏览器width 是400px,chrome浏览器 min-width 是200px

/ui/container/dialog.less

.x-dialog {
position: absolute;
top: 50%;
left: 50%;
z-index: @zindexDialog;
min-width: 200px;
*width: 400px;
margin-left: -100px;
background-color: @white;
border: 7px solid #999;
border: 7px solid rgba(0,0,0,.3);
.border-radius(6px);
.box-shadow(0 0 10px rgba(0, 0, 0, 0.3));
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}

addClass()提示错误

按照API中说明来做,
var myDiv = Dom.get("myDivId"); myDiv.addClass("cssClass");
竟然报错了,不过问题已经解决

impress代码风格

我刚刚看了看,感觉非常不错非常赞~(≧▽≦)/~。另外组件的页面可以用h5bp来搞。有人很支持stylus,不喜欢less,而且chrome可以开启sass支持。→_→我在说什么

运用YUIDoc生成JS文档方法

1、YUIDoc使用nodejs进行开发安装。 我们只需要将我们的代码加上必要的注释,便可以很方便的生成文档。
2、使用npm安装yuidoc(命令:npm -g i yuidocjs)
安装完成目录路径 apps/node/node_modules/yuidocjs
3、在apps/node目录配置yuidoc.json文件
{
"name": "YUIDoc",
"description": "YUIDoc documentation tool written in Javascript",
"version": "0.2.38",
"url": "http://yuilibrary.com/projects/yuidoc",
"logo": "http://yuilibrary.com/img/yui-logo.png",
"options": {
"external": {
"data": "/node_modules/yuidocjs/output/api/data.json"
},
"linkNatives": "true",
"attributesEmit": "true",
"paths": [
"../../src"
],
"outdir": "../../output"
}
}
4、在apps/node目录下运行(命令:yuidoc -c yuidoc.json)

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.