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

mobile-vue-datepick

v2.2.2

Published

A Vue.js project,vue-calendar,vuejs,vue

Downloads

61

Readme

移动端 支持本地化设置 date picker vue日期选择组件

介绍

一个选择日期的vue组件

基于vue2.0

修改了之前版本依赖vuex,插件化 支持npm

github地址 https://github.com/gaoxu529/vue/tree/master/calendar

我的博客地址 http://bjestrata.com

demo展示&&项目中的使用

在线demo地址:https://vue-datepicker.bjestrata.com/vue/calendar/dist/

目录结构

demo 用vue-cli 的webpack构建的,加了publish的文件,在发布npm的时候

 |--dist build生成的目录
 |--doc   展示图片
  |--lib   publish 之后的文件,发布到npm用
 |--src
   |--assets 资源
   |--components
     |--Picker    日期组件
     |--PickerItem  滚动的子组件
      |--modules 插件的js
   |--css
   |App.vue   入口
   |main.js

组件使用

安装

npm i mobile-vue-datepick --save

初始化

import Calendar from 'mobile-vue-datepick';
Vue.use(Calendar);

使用

 <script>

 export default {
   name: 'App',
   data(){
       return{
           date:'',
           date2:'2010-3-2'
         }
   },
   methods:{
     setDate(){

       this.$picker.show({
         type:'datePicker',
         onOk: (date) =>{
           this.date = date
         }
       });

     },
     setDate2(){

       this.$picker.show({
         type:'datePicker',
         date:this.date2,  //初始化时间
         endTime:'2020-02-11',  //截至时间
         startTime:'2010-02-11',  //开始时间
         lang:{
            cancel: '取消',
            confirm: "确定",
            year: "年",
            month: "月",
            day: "日",
         },
         onOk:(e)=>{
           this.date2 = e;
         },

       })

     },

   },

 }
 </script>



版本

3.0.11 修复bug 3.0.10 修改返回日期的格式 3.0.9 修改日期范围的bug 3.0.7 修改ios下的bug 3.0.6 新增开始时间的限制 startTime 3.0.5 修改bug 3.0.4 修改样式不居中的问题 3.0.0 修复之前的部分bug,还有样式的问题,现在是用vw做单位所以可能在低版本的手机会不兼容 2.1.0 添加了endTime终止的时间,更新了vue的版本 2.0.4 点击背景可以关闭 2.0.0 修复之前的日期没有联动的bug,重构了一次 1.0.4 更改初始化的代码