jessemao / react-calendar-mobile Goto Github PK
View Code? Open in Web Editor NEWReact Calendar Mobile is a component very easy to use with scroll event enabled.
Home Page: https://jessemao.github.io/react-calendar-mobile/
License: MIT License
React Calendar Mobile is a component very easy to use with scroll event enabled.
Home Page: https://jessemao.github.io/react-calendar-mobile/
License: MIT License
I'm using nextjs, and because I import react-calendar-mobile. It says window is not defined.
but on desktop refreshing would rum with no problem. on iPhone it just says window is not defined.
IPHONE的机器上没有问题,但是在ANDROID机器上,点击日期,很难选中,偶尔能选中。
Hi,
I'm trying make a custom navigation between months, but I am barred, because the component not update the render when update de startDateAt
prop.
Ex:
// ...
this.state = {
startAt: moment().toDate()
}
// ...
goToNextMonth() {
this.setState({
startAt: moment(this.state.startDateAt).add(1, 'months').toDate()
})
}
// ...
<Calendar
startDateAt={this.state.startAt}
decorate={this.decorates}
i18n={locale}
onSelectDate={(date) => this.handleSelect(date)}
/>
<button className='agenda-btn next' onClick={this.goToNextMonth}>{monthName} >></button>
In the console is showing the correct data, but just is not updating the component.
The behaviour am expecting, is for my screen to scroll down on mobile, but the calendar is registering a touch event and is scrolling the calendar instead of the whole viewport
请问/util/constant.js中item_height是什么意思? month是怎样 week又是怎样在移动到手机需要处理兼容性问题,不知道这两个参数的意思
Works with firefox.
But in chrome, there is an issue with selecting date in calendar.
There are multiple issue.
Hi,
In render I'm missing a easy way to move to next and previous month.
I think it could be done using startDateAt... But I have to implement it, create the arrows < > to move the months, etc...
I good idea is to have that out of box.
Scroll doesn't work well with iphone but works for browser simulator. Need more investigation
The calendar does not re-render the 'decorated' days when clicking the arrows to change the month. It only re-renders if the month is changed by swiping.
描述: 我启用了zh-CN的方式,pc显示无问题,但是在设备上无论我设置什么始终是2017年5月1号 类型这样的格式。
我看了代码,测试了下,在ios上就是无法正确获取
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.