Comments (11)
取出需要被标记的日期,给 markDate 赋值就可以了
from vue-hash-calendar.
那我应该放在哪里操作呢,我放在计算属性和filters里好像都不行,用的那个dayslot插槽
from vue-hash-calendar.
from vue-hash-calendar.
from vue-hash-calendar.
你在获取到日期之后,筛选出需要被标记的日期给 markDate 赋值即可,不需要使用 slot。
或者使用 watch 监听接口返回的数据,然后赋值也行
from vue-hash-calendar.
但是你日历这边的日期我不知道哦,我是要拿你组件这边返回的日期范围去循环我接口返回的日期范围去判断有没有相等的时间才标记圆圈
from vue-hash-calendar.
你按我说的做就好了,不需要你自己匹配日期,要是设计这样的 API 用着不累吗?你直接传需要标记的日期就好了
from vue-hash-calendar.
我文档也没说让你自己匹配呀
from vue-hash-calendar.
现在理解了,我反应太慢了,多谢
from vue-hash-calendar.
还有一个问题,这个切换日历展示类型时第一次点击时方法里面的内容不触发,我打印console.log第一次的时候不会触发
from vue-hash-calendar.
想请教一下:如何拿到日历当前展示的起至日期呢?
from vue-hash-calendar.
Related Issues (20)
- 请问markType能否自定义内容 HOT 5
- 请问能不能暴露出来个自定义的today跳转方法,我通过$refs报了错误 this.$refs.calendars.calculateCalendarOfThreeMonth方法undefined HOT 11
- scrollChangeDate="false"的时候 月模式下切换 滑动不会改动选中日期 但是nextMonth会改变 HOT 1
- 周试图时,不同月份的日期点击试图会滚动,可否不滚动 HOT 4
- 不同月份的日期点击切换,页面抖动 HOT 2
- 设置isAutoChangeMonth为false后,滑动试图,日期选中的位置没有跟随上一次选中的位置动。可否跟随上一次选中的位置动 HOT 2
- 修复后,随便点击某一周的日期,若上周是上月的日期,则上周日期出现问题,以10/8号为例,选中10/5号后,滑到上个月日期应该是9/25-10/1,但显示的是9/23-9/29 HOT 1
- 设置了disabledScroll="vertical"滑动日历区域不能滚动页面 HOT 1
- 这个需要单独安装农历插件吗,导入失败了 HOT 1
- 想按公司要求的设计图该UI能改吗 HOT 6
- 怎样获取当前显示的是本年的第多少周? HOT 1
- 默认显示周视图的时候,首次展开月视图没有触发calendarTypeChange事件
- bug: 点击今天 无法回到正确日期
- 启用快速切换年份,切换年份及月份后点击日期还是原年份及月份,没有切换到新的月份中
- 能否添加一个功能是日期区间选择
- 设置markDate,请求接口拿到数据之后设置markDate,在安卓手机上可以正常显示markDate的点,在苹果手机上没有显示 HOT 1
- 获取当前展示的年月
- 如何展示不一样的标记
- 有个需求和钉钉打卡日历差不多,日历下面的dot圆点能否有个插槽,会有多个情况,能自定义? 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 vue-hash-calendar.