Comments (5)
@Azxj 你好,
第一个问题,可以设置多个月份的。
第二个问题,提供了单独的事件可以动态更新的。
我试了下master
分支,是没问题的,详情见下图,不知道是不是你要的效果:
from wx_calendar.
@treadpit 好的非常感谢,之前我用法上有错误所以没有成功,现在可以了,但是还有一个问题是,之前设置过的事件标记是没办法取消掉的吗?我用空数组调用setTodoLabels
,之前的事件标记并没有消失,也就是只能新增标记而不能删除标记。
我翻了一下你的源码,然后现在是采取直接调用this.data.calendar.todoLabels = [];
,然后重新渲染calendar的方式来删除标记。
from wx_calendar.
@Azxj 你好,这里会提供一个删除的方法,因为单独调用也不太可能每次全部重新写入,还是采用增量的,所以删除的方法会单独出来,今天我把这个方法添上,如果你着急的话,可以自己先扩展一下哈
from wx_calendar.
好的,非常感谢!
from wx_calendar.
@Azxj 新增了两个函数,deleteTodoLabels([])
, clearTodoLabels()
,已合并至 maser
分支
from wx_calendar.
Related Issues (20)
- 为什么现在周视图模式不支持jump了
- v2 disableMode不管用 HOT 1
- 使用calendar.chooseDateArea()跨年设置日期范围,再用calendar.getSelectedDates()获取选中的日期,获取到的日期不对 HOT 3
- afterTapDate方法名错误
- 切换月份后再调用周视图和月视图的切换当前月份会更改
- v2版本文档的快速开始,usingComponents的路径是v1的 HOT 1
- v2,单选模式,选中另一个日期时无法自动清空上一个日期的选中状态 HOT 1
- taro里获取实例为null HOT 1
- 日历上面的上个月下个月怎么触发? HOT 1
- chooseAreaMode: true下面获取this.calendar.getSelectedDay(),获取值会重复
- calendar.setSelectedDates渲染后,再去点击会出现中间空的情况
- 这个组件占了127k,源码能不能优化下
- 组件的setDateStyle不生效,源码里面有误
- 月份视图切换周视图BUG
- 希望增加滑动切换月份时的反馈
- 部分机型偶现,日期错乱 HOT 1
- 月视图切换到周视图,如果选择的天为30 或 31,到周视图的默认month是下个月的
- 设置多个不同月的指定选中日期,只有当前展示月份的会生效
- 在小程序安装使用文档不详细
- calendar.setDateStyle 比如在7月设置了选择日期的颜色,然后跳转到八月,再回来7月,选择的样式不存在了
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 wx_calendar.