Git Product home page Git Product logo

Comments (3)

otakustay avatar otakustay commented on July 22, 2024
  1. format有点问题(大概老版本的就有,没关注),日期格式字符串已经有标准化,具体可以参考这里的:http://momentjs.com/docs/#/parsing/string-format/,注意大小写
  2. 当原来的rawValue是符合range的限制但,但通过setRange修改了可选范围,导致原来的rawValue在可选范围之外的时候,控件会如何表现?
  3. rawValue需说明值超过可选范围时怎么处理。
  4. 是否应该有yearchangemonthchange之类的方法,有时候RangeCalendar要求左边的一个选了某个月份后,右边的也跳到同一个月(或下一个月)这样的交互。

from esui.

DDDBear avatar DDDBear commented on July 22, 2024
  1. 吃饱了我看看。
  2. 这个我也纠结很久,目前也没想出一个特别好的表现方式。
    现在的处理是:如果rawValue超出range,那么日历是会显示左边界(或者右边界)的年份和月份。至于日期的显示效果,则是如果rawValue的date恰好在这个月,那么会有个加粗显示,如果没在,日历上就没有任何的显示了。
    其余的处理方式还考虑过:a. 报错 b.自动修正rawValue到最近的合理值。但都觉得不如人意。
  3. 跟上面的问题一样。
  4. 如果有这类需求,我可以增加这个的事件。这两个方法都是有的,只不过是私有的。

from esui.

otakustay avatar otakustay commented on July 22, 2024
  1. 注意更新文档中的事件名大小写问题
  2. format的问题请重新再回顾一下
  3. valuerange的问题,我建议值超过范围时抛异常

from esui.

Related Issues (20)

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.