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

vi-calendar

v0.0.1

Published

微信小程序万年历组件

Downloads

1

Readme

vi-calendar

使用

npm i vi-calendar --save

使用微信开发者工具构建NPM并使用NPM模块

"usingComponents": {
  "ViCalendar": "vi-calendar",
}

示例

Default

<template>
  <ViCalendar></ViCalendar>
</template>

Selected Dates

<template>
  <ViCalendar selectedList="{{[12,15,6,8,4]}}" selected-class="calendar__day--selected"></ViCalendar>
</template>
.calendar__day--selected {
  background-color: #FDE9A8;
  border-radius: 8px;
}

Hide Week Nav

<template>
  <ViCalendar hideWeek></ViCalendar>
</template>

Custom Header

<template>
  <ViCalendar customHeader hideWeek selectedList="{{[12,15,6,8,4]}}" >
    <view class="calendar-header">11月打卡一览</view>
  </ViCalendar>
</view>
</template>
page {
  background-color:#39d3ef;
}
.signIn-card {
  width:710rpx;
  border-radius:8px;
  margin:0 auto 20px;
  padding-bottom: 10px;
  background: #FFF;
}

.calendar-header {
  color:#49D6EB;
  font-size:18px;
  text-align:center;
  margin:26rpx auto;
}

Config Props

| 接口 | 数据类型 | 说明 | 选项 | 默认值 | 版本号 | | :--: | :--: | :--: | :--: | :--: | :--: | | selectedList | Array[Number] | 当前要选中的日期 | 选填 | [] | 0.0.1 | | customHeader | Boolean | 是否需要自定义Header | 选填 | false | 0.0.1 | | hideWeek | Boolean | 是否需要隐藏周日期 | 选填 | false | 0.0.1 |

Slot Name

| slot name | 说明 | | :--: | :--: | | default | 用于自定义头部UI |

Extend Class

| Event name | 说明 | | :--: | :--: | | selected-class | 选中的样式 |

版本记录

  • v0.0.5 新增自定义事件click
  • v0.0.3 新增右侧内容插槽功能