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

dynamic-antd-rangepicker

v1.0.0

Published

拓展antd时间范围组件禁用时间可配置性

Downloads

18

Readme

dynamic-antd-rangepicker

Introduce

-拓展antd时间范围组件禁用时间可配置性

Quick Overview

npm install  
npm start

API

| 参数 | 说明 | 类型 | 默认值 | | -------- | :----: | :----: |:----: | | dynamicDateLimit | 动态可选范围模式:根据所传的时间长度,动态设置前后的时间范围 | boolean | | maxDate | 可选日期范围的最大时间,非dynamicDateLimit模式下,默认最大可选时间为当前时间 | moment object | [ moment() ] | dateLimit | 限制可选的日期长度: { year: 1 } { month: 1 } { week: 1 } { day: 1 } 四选一,如传入多个属性,以最后一个属性为准 | object |

Demo Code

  <RangePicker
      maxDate={moment()}
      dynamicDateLimit
      dateLimit={{ month: 1 }}
      showTime={{ format: 'HH:mm' }}
      style={{ width: 500 }}
      format={dateFormat}
      ranges={{
        今天: [moment().startOf('day'), moment()],
        本周: [moment().startOf('week'), moment()],
        本月: [moment().startOf('month'), moment()],
        近一周: [moment().subtract(1, 'week'), moment()],
        近一月: [moment().subtract(1, 'month'), moment()],
        近三月: [moment().subtract(3, 'month'), moment()]
      }}
    />

npm

npm i dynamic-antd-rangepicker --save 

CDN

https://unpkg.com/[email protected]/lib/js/main.min.js

issues:

https://github.com/samous0726/dynamic-antd-rangepicker/issues