Giter Club home page Giter Club logo

Comments (12)

czcaiwj avatar czcaiwj commented on May 30, 2024

1、监听dayClick事件,获取点击日期
2、判断是否是目标日期
3、修改days-color数组

from calendar.

alexxd35 avatar alexxd35 commented on May 30, 2024

现在可以了,如果需要多选的话,需要怎样做呢?谢谢你!

from calendar.

Hunterfish avatar Hunterfish commented on May 30, 2024

calendar1是不是像这样

from calendar.

alexxd35 avatar alexxd35 commented on May 30, 2024

还有一个问题,month那里,我要跨月选择,不能用current那应该用什么?我用event.detail.month 不行

from calendar.

alexxd35 avatar alexxd35 commented on May 30, 2024

@czcaiwj @Hunterfish

from calendar.

Hunterfish avatar Hunterfish commented on May 30, 2024

我也在研究,因为切换上下月后,没有保存,所以显示失效了。
切换时放到list里呢,博主有更好地建议吗
issue1

from calendar.

jacena avatar jacena commented on May 30, 2024

能不能在日期底下显示添加的事件名称。样式区分下工作日和周末,还有当日的默认显示样式

from calendar.

czcaiwj avatar czcaiwj commented on May 30, 2024

切换月份的话,要保持上下月之前选择的东西,那肯定是自己代码实现逻辑的问题,你可以在js代码里面实现一个数组,做持久化保存。然后监听月份切换事件,在月份切换事件中检测切换到的月份是否在持久化数组里面,有就设置对应的样式就好了。

from calendar.

xihaa avatar xihaa commented on May 30, 2024

请问js中怎么改变days-color数组啊?

from calendar.

alexxd35 avatar alexxd35 commented on May 30, 2024

@czcaiwj 月份怎么记录啊,都是current啊

from calendar.

alexxd35 avatar alexxd35 commented on May 30, 2024

经过各位的提示,现在可以实现点击换色,跨月再切换回来也能保存上一个月的点击了,谢谢各位

from calendar.

 avatar commented on May 30, 2024

我点击事件颜色在ios真机显示没问题,在安卓上测试时就显示不了颜色,有遇到相同问题的么?

from 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.