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 🙏

© 2025 – Pkg Stats / Ryan Hefner

zixun_date

v1.0.8

Published

手机日期选择控件

Downloads

21

Readme

定制化日期选择组件,不建议个人下载使用

使用方式

执行npm i zixun_date

在你的vue项目中

import Vue from 'vue'
import zixunDate from 'zixun_date'
Vue.use(zixunDate)

即可。

模式一(年月日的选择)


this.$zixunDate.show({
    type: "", //默认 datePicker
    date: "", //初始化时间  //默认初始化今天
    endTime:'',  //截至时间 //默认 1950-01-01
    startTime:'',  //开始时间 //默认 2050-01-01
    onOk: date => {  //点击确定回调
        this.date = date;
        console.log(date);
    },
    onCancel:()=>{ //点击取消回调
        console.log('点击了取消')
    }
});

模式二(指定列表模式的选择)


...
data(){
    return {
        dataList = ['2018-11-03','2018-11-12','2018-11-13','2018-11-14','2018-11-15','2018-11-16','2018-11-17','2018-11-18']
    }
}
//vue API
...

this.$zixunDate.show({
    type: "select",
    customList: this.dataList,//自定义时间列表  默认[] type Array
    index:4,    //默认选中数组中的第几个 默认 0 type Number
    //date: "", //当前模式下 该API不起作用
    // endTime:'2050-9-8',  //当前模式下 该API不起作用
    // startTime:'1970-06-19', //当前模式下 该API不起作用
    onOk: e => { //点击确定回调
        this.date2 = e;
    },
    onCancel: () => { //点击取消回调
    },
    //滚动到底部回调
    scrollBtm:()=>{ //方便滚动到底部之后加载更多的列
        //此处直接使用 this.dataList = '新的数组'即可驱动数据模型更改视图渲染
    },
    //滚动到顶部回调
    scrollTop:()=>{

    },
       
});