Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用文档说明未补充完成 #11

Closed
zhengkai7651 opened this issue Apr 19, 2018 · 1 comment
Closed

使用文档说明未补充完成 #11

zhengkai7651 opened this issue Apr 19, 2018 · 1 comment
Assignees
Labels

Comments

@zhengkai7651
Copy link

1.、未提供获取日期的函数
2、 未提供可重写的点击事件函数
比如选中 日历中某一天 返回当前时间字段 ,这样的话这个日历就只是做展示使用了

treadpit pushed a commit that referenced this issue Apr 19, 2018
@treadpit
Copy link
Owner

treadpit commented Apr 19, 2018

@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);
      },

@treadpit treadpit self-assigned this Apr 19, 2018
@treadpit treadpit assigned treadpit and unassigned treadpit Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants