Giter Site home page Giter Site logo

Comments (5)

treadpit avatar treadpit commented on April 28, 2024

@Azxj 你好,
第一个问题,可以设置多个月份的。
第二个问题,提供了单独的事件可以动态更新的。
我试了下master分支,是没问题的,详情见下图,不知道是不是你要的效果:

screen_shot

from wx_calendar.

xiaojianzhong avatar xiaojianzhong commented on April 28, 2024

@treadpit 好的非常感谢,之前我用法上有错误所以没有成功,现在可以了,但是还有一个问题是,之前设置过的事件标记是没办法取消掉的吗?我用空数组调用setTodoLabels,之前的事件标记并没有消失,也就是只能新增标记而不能删除标记。
我翻了一下你的源码,然后现在是采取直接调用this.data.calendar.todoLabels = [];,然后重新渲染calendar的方式来删除标记。

from wx_calendar.

treadpit avatar treadpit commented on April 28, 2024

@Azxj 你好,这里会提供一个删除的方法,因为单独调用也不太可能每次全部重新写入,还是采用增量的,所以删除的方法会单独出来,今天我把这个方法添上,如果你着急的话,可以自己先扩展一下哈

from wx_calendar.

xiaojianzhong avatar xiaojianzhong commented on April 28, 2024

好的,非常感谢!

from wx_calendar.

treadpit avatar treadpit commented on April 28, 2024

@Azxj 新增了两个函数,deleteTodoLabels([]) clearTodoLabels(),已合并至 maser 分支

from wx_calendar.

Related Issues (20)

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.