erik168 / er Goto Github PK
View Code? Open in Web Editor NEWHome Page: ER ( Enterprise RIA ) Framework
License: Other
Home Page: ER ( Enterprise RIA ) Framework
License: Other
当需要点击一个按钮然后show一个layer的时候,必须让开发者主动去调用layer._preventHide()
这种隐藏接口,否则show了还会被render就绑定的document
点击事件给hide掉。
就个人理解,autoHide
相关的事件绑定应该放在show之后去做,而且必须是临时的,即在hide之后取消绑定。而不应该让使用者主动的去了解当前是何种场景及显示状态来做额外的适应操作,应该对使用者保持简单透明。
不等于比较逻辑错误,详见test case pull request。
BoxControl.js
中,如果render过一次以后,再次render时不会走创建label的分支(line 150),然后局域变量label
是未赋值状态,调用innerHTML
报undefined
(line 161)。
操作步骤:
/module
;/module/first
;/module/second
;/module/first
或/module
,在此步均无法正常跳回。追查代码后发现任何点击链接的跳转不会记录新的链接到变量currentLocation
中,由此引发上述问题。
建议修改er.locator.js
第136行,加入updateLocation( loc )
的处理更新当前地址的记录。
rt
模板代码:
<!-- if: ${num} == -1 -->${num}<!-- /if -->
console报错:
if is invalid: if: ${num} == -1
esui.init()的时候没有判断被初始化的对象已经存在,例如浮层中的日历控件,在使用innerHTML后执行init的时候会创建多份隐藏的日历。
在init方法中加入下面的代码:
void function(){
if(objId && (objId + "" ).substring(0,4) != "ctrl"){
esui.get(objId) && esui.get(objId).dispose();
}
}();
Button.js
中的代码:
if ( !me.isDisabled() ) {
me.onclick();
}
onclick
事件不能通过return false
来阻止默认行为,如果是一个submit
按钮,那么点击后表单仍会提交。
另外,css里在disabled
状态下按钮上鼠标仍是手型。
function execImport
函数中调用exec
时没有传递scope
参数,导致后续getVariableValue
调用中找不到scope
变量。
按照HTML原生的同样操作是不会触发onchange
事件的,esui里是没考虑到还是就是这样设计的?
当一个加载队列中的某个加载器出现某些业务问题时,无法提前结束当前流程,跳转到界面渲染的处理。stop()
只能暂停,但不能跳出。希望能增加一个exit()
方法,以便控制加载流程。
原因是在_resetTop过程中,设定了200毫秒后对移动过快修补最后一次调整。
应在dispose时,移除此定时器。
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.