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

datepicker-mobile

v1.0.0

Published

基于vue2.0的日期以及时间选择组件

Downloads

17

Readme

datePickerMobile

一款基于vue2.X的移动端日期时间选择组件

GitHub issues:    GitHub forks:     GitHub stars:

Feature

    1.简单简洁
    
    2.可以设置主题颜色
    
    3.提供5种方式可以选择,如“年月日时分秒”、“年月日”、“时分秒”等等
    
    4.重点在与操作数据,减少对dom的操作;
    
    5.可以设置起始年,结束年

Installation

    npm install --save datepicker-mobile

Usage

    1.引入src目录下datetimePicker.vue文件,如import DatetimePicker from "****/src/datetimePicker.vue";
    
    2.挂在vue实例的components钩子上;
    
    3.在父实例的模板中<datetime-picker></datetime-picker>这样子使用

Prop

  • isShowSelector(Boolean):控制组件的显隐

  • datepickerType(String):目前只能指定以下5种形式

     1."common":可以选择“年月日时分秒”,格式为“yyyy-mm-dd hh:mm:ss”
       
     2."date":可以选择“年月日”,格式为“yyyy-mm-dd”
       
     3."month":可以选择“年月”,格式为“yyyy-mm”
       
     4."time":可以选择“时分秒”,格式为“hh:mm:ss”
       
     5."minute":可以选择“时分”,格式为“hh:mm”
       
  • transitionType(String):组件出现隐藏的过渡效果,具体可以参考vue官网的过渡效果

  • shadeZIndex(Number):设置遮罩的z-index属性

  • themeColor(String):设置主题颜色,目前只应用在“确定”按钮上

  • beginYear(Number):设置起始年份,默认为1900年

  • endYear(Number):设置结束年份,默认为当前年份

  • dateValue(String):只有在datepickerType等于"common"、"date"、"month"时设置才有效,同时格式必须与datepickerType的格式相对应

Effect Gif:

A Demo:

"戳我试试呀"或者扫我一下也可以效果图