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

wx-easy-calendar

v2.0.1

Published

简单明了的微信小程序日历组件,easy-simple calendar component for wx-miniprogram

Downloads

6

Readme

wx-easy-calendar

简介 Introduction

  • 这是一个面向广大微信小程序开发者提供的开源日历组件;
  • This is an open-source calendar component for all WeiXin miniprogram developers;
  • 集成了基本的日历显示、日期选择、日期切换;提供暗黑模式选择的功能;
  • Including functions like basic calendar display, date selection, date switching, it also provides a dark mode selection;

上手 Prepare

  • 准备工作:初始化项目

    npm init -y
  • npm 包的安装

    npm install wx-easy-calendar -S --production
  • 允许项目使用npm模块 image-20220222001345197

  • 开始构建 image-20220222001414041

  • 等待构建完成,项目根目录下会出现miniprogram_npm文件夹,包含wx-easy-calendar的一切


使用配置 Config

  • 局部使用
    • 在需要使用的页面的 json 文件中,配置组件 image-20220222001657743)
    • key:easy-calendar 为自定义组件标签
    • value:指向npm文件夹下wx-easy-calendar组件的js文件
  • 全局使用
    • 同上,只需要在全局的app.json中配置即可

正式使用 Render

  • 在页面的 wxml 中,使用配置好的自定义标签 image-20220222002644310

  • 页面的渲染

    image-20220222002846113

    image-20220222002939341


    用法介绍 Usage

    • 正常显示当前日历
    • 点击选中日期
    • 左右滑动切换月份
    • 点击顶部左右箭头切换月份
    • 点击顶部年份/月份,精确选择日期
    • 点击[Now],回到当前日期
    • 点击[暗],切换显示模式(light/dark)