Comments (1)
@zhengkai7651 你好,感谢反馈。
获取日期不知道你指的是获取什么日期,获取当前选中的日期目前暴露的有一个方法getSelectedDay()
;
日期点击事件已提供两种接管:
1、执行日期点击事件后再执行自定义事件 afterTapDay
;
2、完全接管日期点击 onTapDay
,模板不会做任何处理;
/**
* 选择日期后执行的事件
* @param { object } currentSelect 当前点击的日期
*/
afterTapDay: (currentSelect) => {
console.log('当前点击的日期', currentSelect);
console.log('getSelectedDay方法', getSelectedDay());
},
/**
* 日期点击事件(此事件会完全接管点击事件)
* @param { object } currentSelect 当前点击的日期
* @param {object} event 日期点击事件对象
*/
onTapDay(currentSelect, event) {
console.log(currentSelect);
console.log(event);
},
from wx_calendar.
Related Issues (20)
- ##日期问题##日期排版缺少周六的日期 HOT 4
- taro中引入成功了但是我的点击日期事件没有效果,
- 我在taro中如何写他这个自定义配置,我用的是函数组件
- 设置指定日期样式时,会给子元素也添加上class HOT 1
- onSwipe变化chooseAreaMode:true设置多个月份只返回最后两个月数据
- 引入之后直接报错Cannot read property '0' of undefined HOT 1
- 为什么现在周视图模式不支持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
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.