GithubHelp home page GithubHelp logo

xcx-plugins's People

Contributors

afap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xcx-plugins's Issues

[bug] 在页面的非第一屏引用时,样式出现问题

在页面的非第一屏引用时,样式出现问题

demo.wxml

<view>内容</view>
 <!-- 其中内容超过一屏可显示范围 -->
<view>内容</view>

<calendar mode='pickerRange'/>

<view>少量内容,不足以填充calendar的高度时</view>

calendar的wxml中,下拉的日历view定位为fixed,在组件之后没有内容或内容过少,会出现下拉日历显示不全的问题

[Bug] mode normal 下的 不同时区下月日历显示有误

我遇到的问题:澳大利亚时区下的2021年4月,显示有两个4日;定位到的问题
image

我的解决方案:

在components/calendar/index.js 文件
使用moment 的日期库
// let date = new Date(currenDate.getTime() + 86400000 * i);
let date = new Date(moment(currenDate.getTime()).add(i, 'days').valueOf())

而且进一步在 getMonthDayCount 方法获取 一个月的天数最好也是使用 moment

// return (d_next_month_first_day.getTime() - d_first_day.getTime()) / 86400000;
return moment(d_next_month_first_day.getTime()).diff(moment(d_first_day.getTime()), 'days')

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.