Giter Site home page Giter Site logo

sc-ui's Issues

日期选择器在10/31号时无法选择11月的任何日期

使用sc-date-picker 也就是今天(2019/10/31 UTC+8) 无法选择11月的日期,准确来说选择11月的任一日期会显示12月,非常的奇怪。细看了源码可能是day.js出了问题,我已经定位到 _MonthDay: function(t) {} 函数里,在该函数里生成a这个array时,有这么两句
var l = dayjs(); l = l.set("year", n).set("month", i).set("date", c)

n是2019 i是10 (也就代表着11月),都是符合预期的,但是l就是错误的了,出来的结果l 为 {$m: 11, ...},$m明显是错的,跑到12月去了。

微信图片_20191031150253

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.