Giter Club home page Giter Club logo

er's Issues

Layer的autoHide流程设计的不科学

当需要点击一个按钮然后show一个layer的时候,必须让开发者主动去调用layer._preventHide()这种隐藏接口,否则show了还会被render就绑定的document点击事件给hide掉。

就个人理解,autoHide相关的事件绑定应该放在show之后去做,而且必须是临时的,即在hide之后取消绑定。而不应该让使用者主动的去了解当前是何种场景及显示状态来做额外的适应操作,应该对使用者保持简单透明。

label in BoxControl?

BoxControl.js中,如果render过一次以后,再次render时不会走创建label的分支(line 150),然后局域变量label是未赋值状态,调用innerHTMLundefined(line 161)。

页面内点击链接切换Action时有时失效

操作步骤:

  1. 默认路径进入/module
  2. 根据逻辑跳转到指定Action/module/first
  3. 点击链接跳转到/module/second
  4. 点击链接跳回/module/first/module在此步均无法正常跳回

追查代码后发现任何点击链接的跳转不会记录新的链接到变量currentLocation中,由此引发上述问题。

建议修改er.locator.js第136行,加入updateLocation( loc )的处理更新当前地址的记录。

esui库init() 时候没有容错已经存在的DOM对象

esui.init()的时候没有判断被初始化的对象已经存在,例如浮层中的日历控件,在使用innerHTML后执行init的时候会创建多份隐藏的日历。

 在init方法中加入下面的代码:

void function(){
if(objId && (objId + "" ).substring(0,4) != "ctrl"){
esui.get(objId) && esui.get(objId).dispose();
}
}();

Button组件onclick事件无法阻止默认浏览器行为

Button.js中的代码:

if ( !me.isDisabled() ) {
    me.onclick();
}

onclick事件不能通过return false来阻止默认行为,如果是一个submit按钮,那么点击后表单仍会提交。

另外,css里在disabled状态下按钮上鼠标仍是手型。

scope is undefined in 2.1.1

function execImport函数中调用exec时没有传递scope参数,导致后续getVariableValue调用中找不到scope变量。

加载器队列需要跳出控制

当一个加载队列中的某个加载器出现某些业务问题时,无法提前结束当前流程,跳转到界面渲染的处理。stop()只能暂停,但不能跳出。希望能增加一个exit()方法,以便控制加载流程。

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.