npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wepy-com-calendar

v1.1.0

Published

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

Downloads

16

Readme

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) | [] |