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

datepick-vue3

v0.0.2

Published

日期区间选择组件,以右边为主

Readme

DatePick-Vue3

Watt瓦特工作室,开源贡献,如使用问题可提交issues

介绍

开源库中大多的区间日期,都是以左边日期为起点,向后面加一个月待选。但中台大多数场景都是统计过时间段发生的事,所以应该有以右为起点,向前一个月选日期的组件。

如果旧的项目使用 vue2 的话,请使用另一个开源库 date-pick-flexend , 项目中可按说明文档使用,

附加说明:

查到网上流行的开源组件,日期选择组件都是以左边为主的日期,如图:

antdv

要以右边为主的日期,在统计需求是,很好显示最近一个月,最近7天数据统计,如图:

使用说明

页面组件的使用

<template>
    <div>
        <w-date-picker type="datetime" placement="bottom-end" placeholder="Select date" style="width: 200px" />

        <w-date-picker type="datetimerange" v-model="datetime" placement="bottom-end" placeholder="Select date" style="width: 400px" />
    </div>
</template>
<script setup>
import {ref} from 'vue'

const datetime = ref(['2023-01-11 00:00:00', '2023-02-22 00:02:34'])
</script>

全局引入

import DatePickerVue3 from 'datepick-vue3'
import 'datepick-vue3/dist/datepick.css'

app.use(DatePickerVue3)

按需引入

import { DatePicker } from 'datepick-vue3'
import 'datepick-vue3/dist/datepick.css'

export default {
  install (app) {
    app.component('w-date-picker', DatePicker)
  }
}

版本特性

  • v0.0.1 cjs为默认模式
  • v0.0.2 改成module 为默认模式, 安装在node_modules中不导出除dist的文件夹 cjs 的引用 const DatePick = require('datepick-vue3/dist/datepick.umd.cjs')