Comments (12)
1、监听dayClick事件,获取点击日期
2、判断是否是目标日期
3、修改days-color数组
from calendar.
现在可以了,如果需要多选的话,需要怎样做呢?谢谢你!
from calendar.
from calendar.
还有一个问题,month那里,我要跨月选择,不能用current那应该用什么?我用event.detail.month 不行
from calendar.
from calendar.
我也在研究,因为切换上下月后,没有保存,所以显示失效了。
切换时放到list里呢,博主有更好地建议吗
from calendar.
能不能在日期底下显示添加的事件名称。样式区分下工作日和周末,还有当日的默认显示样式
from calendar.
切换月份的话,要保持上下月之前选择的东西,那肯定是自己代码实现逻辑的问题,你可以在js代码里面实现一个数组,做持久化保存。然后监听月份切换事件,在月份切换事件中检测切换到的月份是否在持久化数组里面,有就设置对应的样式就好了。
from calendar.
请问js中怎么改变days-color数组啊?
from calendar.
@czcaiwj 月份怎么记录啊,都是current啊
from calendar.
经过各位的提示,现在可以实现点击换色,跨月再切换回来也能保存上一个月的点击了,谢谢各位
from calendar.
我点击事件颜色在ios真机显示没问题,在安卓上测试时就显示不了颜色,有遇到相同问题的么?
from calendar.
Related Issues (20)
- 有什么属性点击当前2018九月标题,不弹出选择年月的弹出事件,
- days-color数组项构成 让日历显示下个月 month属性无法生效 HOT 3
- 日历的起始年份(start-date) 日历的结束年份(end-date)设置无效 HOT 3
- 能不能自定义按钮和选中的背景样式图片, HOT 1
- 怎么在日期下面添加文字? HOT 1
- 能不能添加左右滑动的特效啊?
- 日期下面文字配置无效
- VM23276:1 [non-writable] modification of global variable "wx.version" is not allowed when using plugins at app.json.
- 无法支持Promise回调函数 HOT 1
- 有一个坑,要显示日历,必须把addon属性也等于 'lunar' 才行
- days_style设置无效 current 应该只是当前月的20日改变颜色?事实是所有月的的20号都变了 HOT 1
- 点击当前日期设置样式 HOT 2
- 农历日期显示不对
- 希望能加入时间段选择! HOT 1
- 能否将标题得点击事件禁用啊? HOT 1
- days-addon 貌似无效? HOT 2
- 后面相同的日期都会被选中?
- 在具体日期下面如何自定义备忘录?
- 是不是不维护了?想接锅,不知道有没有转让 HOT 1
- 垃圾东西,被拿去坑人了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendar.