All Projects → ronffy → wepy-com-calendar

ronffy / wepy-com-calendar

Licence: MIT License
一个基于wepy的日历组件,内置多套皮肤,可启用打卡功能

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wepy-com-calendar

Leshare Seller Wepy
基于小程序的店铺商家管理端,采用wepy框架开发
Stars: ✭ 687 (+1981.82%)
Mutual labels:  weapp, wepy
Weapp Qrcode
weapp.qrcode.js 在 微信小程序 中,快速生成二维码
Stars: ✭ 1,194 (+3518.18%)
Mutual labels:  weapp, wepy
Wepy
小程序组件化开发框架
Stars: ✭ 21,648 (+65500%)
Mutual labels:  weapp, wepy
Weappx
🌱基于 redux 的轻量级小程序状态管理框架,适配原生小程序,wepy,taro
Stars: ✭ 145 (+339.39%)
Mutual labels:  weapp, wepy
Wuss Weapp
🐳wuss-weapp 一款高质量,组件齐全,高自定义的微信小程序UI组件库
Stars: ✭ 338 (+924.24%)
Mutual labels:  calendar, weapp
JMGS
基于LBS的微信小程序,服务器端代码在这里server@https://github.com/g1mi/jmgs_server
Stars: ✭ 29 (-12.12%)
Mutual labels:  weapp, wepy
Leshare Shop Wepy
基于微信小程序的在线商城,采用wepy框架开发
Stars: ✭ 839 (+2442.42%)
Mutual labels:  weapp, wepy
We Cropper
微信小程序图片裁剪工具
Stars: ✭ 1,972 (+5875.76%)
Mutual labels:  weapp, wepy
Weapp Hiapp
HiApp 微信小程序版
Stars: ✭ 236 (+615.15%)
Mutual labels:  weapp, wepy
Wepy Calendar
微信小程序/wepy/日历组件
Stars: ✭ 58 (+75.76%)
Mutual labels:  calendar, wepy
WordGame-wepy
基于wepy实现的微信小程序,一款文字游戏
Stars: ✭ 26 (-21.21%)
Mutual labels:  weapp, wepy
components
Easily develop emails with email-ready components.
Stars: ✭ 18 (-45.45%)
Mutual labels:  calendar
Taro-v2ex-weapp
awesome v2ex weapp 😎 目前支持微信小程序、支付宝小程序、h5
Stars: ✭ 25 (-24.24%)
Mutual labels:  weapp
holidata
Holidata is the core of holidata.net, a no-nonsense, ad-free provider of international holiday data.
Stars: ✭ 27 (-18.18%)
Mutual labels:  calendar
fiscalyear
📆 Utilities for managing the fiscal calendar
Stars: ✭ 33 (+0%)
Mutual labels:  calendar
google-calendar-api
Demo Project for Google Calendar API Using Spring Boot Rest API with OAuth2
Stars: ✭ 25 (-24.24%)
Mutual labels:  calendar
ios-permissions-service
An easy way to do permissions requests & handling automatically.
Stars: ✭ 25 (-24.24%)
Mutual labels:  calendar
vue-calendar
基于vue和moment开发的时间组件
Stars: ✭ 25 (-24.24%)
Mutual labels:  calendar
nativescript-calendar
📅 NativeScript plugin to Create, Delete and Find Events in the native Calendar
Stars: ✭ 44 (+33.33%)
Mutual labels:  calendar
isoweek
Go package for calculating a start date and time of ISO 8601 week. (golang)
Stars: ✭ 32 (-3.03%)
Mutual labels:  calendar

wepy-com-calendar

npm

功能齐全的wepy日历组件,欢迎fork

介绍

  • 内置多种主题,亦可自定义主题样式
  • 响应式宽高
  • 支持打卡功能
  • 支持国际化(目前支持中、英两种)
  • 年、月通过小程序的picker进行改变,亦可通过上月、下月按钮进行改变

HOW TO USE

install

npm install wepy-com-calendar --save

use

// 在script标签内
import Calendar from 'wepy-com-calendar';
class MyCompent extens wepy.component {
  data = {
    selectedDates: ['2018-07-30', '2018-08-10', '2018-08-21']
  }
  events = {
    calendarAfterTapDay(date, e) {
      // 点击某一天后的回调
    }
  }
}

// 在template标签内
<template>
  <Calendar :checks.sync="selectedDates" theme="orange" />
</template>

其他主题展示

主题名称 展示
default
orange
blue
pink
green
black

API

参数 说明 类型 默认值
date 高亮的日期 YYYY-MM-DD 当前日期
checks 打卡的日期 array []
theme 主题名称,可选值有 default, green, pink, orange, black, blue string default
themeClassName 主题类名,用于自定义主题样式,优先级比theme高,传入此参数后,theme参数失效 string -
language 语言,支持中(zh_CN)、英(en_GB)两种 string zh_CN
icon check状态时imagesrc地址,如果不传此参数,则使用theme内置的图片作为icon string -
activeStyle 高亮的日期的样式 string -

事件EVENTS

wepy-com-calendar组件内统一通过$emit方式跟父组件通信,所以使用wepy-com-calendar组件时,将事件方法统一放在父组件的events属性上

参数 说明 类型
calendarAfterTapDay 点击某一天后触发的事件 function(date: YYYYMMDD, event)
calendarAfterTapNextMonth 点击下个月按钮触发的事件 function(event)
calendarAfterTapPreMonth 点击上个月按钮触发的事件 function(event)
calendarAfterChangePicker 通过年月选择器修改年或月后触发的事件 function(date: YYYYDD,event)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].