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

vue-super-calendar

v2.2.1

Published

vue-super-calendar

Downloads

7

Readme

vue-super-calendar

点击查看DEMO(建议使用开发者手机模式)

或者扫描二维码

image

Install

npm install vue-super-calendar --save

How To Use

//main.js
import Vue from 'vue'
import vueCalendar from 'vue-super-calendar'

Vue.use(vueCalendar)

Some sample pictures

单选-翻页模式

image

多选-翻页模式

image

单选-滑动模式

image

多选-滑动模式

image

options

props

| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | type | String | single | single: 单选 multi: 复选 | | startDay | String | "" | 设置选定日期(仅针对type = single有效) e.g."2019/3/3" | | multiTxt | Array | ["入住", "离店"] | 复选文本(建议不超过两个字) | | multiBefore | Boolean | false | 多选(是否允许选择当前日期之前的日期, 同时也会禁用往当前日期前翻页&滑动的功能) | | singleBefore | Boolean | false | 单选(仅针对mode = scroll有效)(是否允许选择当前日期之前的日期, 同时也会禁用往当前日期前翻页&滑动的功能) | | holiday | Boolean | false | 开启假日高亮颜色模式 | | festival | Array | [] | 特殊节日数组 e.g. ["2019/3/3"] | | yearBegin | Number | 1 | 加载当前年份前N年(仅针对mode = scroll有效) | yearEnd | Number | 1 | 加载当前年份后N年(仅针对mode = scroll有效)

functions

| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | show | Function | this.$refs.xxx.show() | 打开日历 | | hide | Function | this.$refs.xxx.hide() | 关闭日历 | | on-single-click | Function | val | 返回单选选中日期 | | on-multi-click | Function | startVal, endVal | 返回多选日期 | | on-warning | Function | | 禁止选择当前日期时翻到首页 |

babel problem

npm install @babel/preset-env --save-dev

presets: ['@babel/preset-env']