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

optimat-vue-date-picker

v0.4.3

Published

用于Vue.js的日期选择器

Downloads

17

Readme

基于Vuejs+Webpack定义了开发规范的网页开发框架的日期选择器

使用方式(Usage)

安装(Install)

npm install optimat-vue-date-picker -save

导入(Import)

*.js

import DatePicker from 'optimat-vue-date-picker'

*.vue

<script>
    import DatePicker from 'optimat-vue-date-picker'
</script>

标签(Target)

*vue

<DatePicker :options="datePickerOptions"></DatePicker>

功能(Api)

| Options | Type | Description | Default | Result | |-----------------|:--------:|:---------------------------:|:--------:|:--------:| | isShow | boolean | 强制显示(true)或隐藏(false) | false | | | preShow | function | 选择框弹出前执行(强制显示时无效) | undefined | | | onShow | function | 选择框弹出后执行 | undefined | | | preDismiss | function | 选择框消失前执行(强制隐藏时无效)| undefined | (startDate, endDate) | | onDismiss | function | 选择框消失后执行| undefined | (startDate, endDate) | | onStartDateChanged | function | 开始日期变更时执行 (单选模式必须加入该事件)| undefined | (startDate) | | onEndDateChanged | function | 结束日期变更时执行(单选模式不会执行) | undefined | (endDate) | | placeholder | string | 无日期内容时的占位符 | undefined | | | align | string | 选择框位置:居左(left),居中(center),居右(right) | left | | | type | string | 选择器类型:单选(single),范围(range) | single | | | mode | string | 选择器模式:单个日历(single),两个日历(double) | type == single ? single : double | | | autoClear | boolean | 是否自动清空(范围选择时有效) | false | | | defaultStartDate | date | 默认开始日期 | 当前日期 | | | selectPassDate | boolean | 能否选择以往日期 | false | | | reset | boolean | 是否重置所有日期(只在options更新时执行) | false | | | doubleClick | boolean | 能否选择同一天 | false | |