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

@beisen-phoenix/date-picker

v3.3.55

Published

| 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | extraCls | 根节点的自定义className,一般用来自定义样式使用 | string | | | lang | 面板语言`zhCN/zhTW/enUS`,可以通过此参数来设置组件的国际化 | string | 'zhCN' | | locale | 自定义面板的语言信息,该参数的优先级高于lang | object | - | | format | 设置日期格式,为数组时支持多格式匹配,展示以

Downloads

403

Readme

DatePicker 参数

| 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | extraCls | 根节点的自定义className,一般用来自定义样式使用 | string | | | lang | 面板语言zhCN/zhTW/enUS,可以通过此参数来设置组件的国际化 | string | 'zhCN' | | locale | 自定义面板的语言信息,该参数的优先级高于lang | object | - | | format | 设置日期格式,为数组时支持多格式匹配,展示以第一个为准。配置参考 moment.js | string | string[] | "YYYY-MM-DD" | | value | 日期 |string 或moment (http://momentjs.com/) 受控模式下使用 | 无 | | defaultValue | 日期 |string 或moment (http://momentjs.com/) 非受控模式下使用 | 无 | | showDateInput | 是否显示日期输入框 | Boolean | true | | showWeekNumber | 是否展示第几周 | boolean | true | | showToday | 是否展示“今天”按钮 | boolean | true | | showOk | 是否展示“确定”按钮 | boolean | true | | dateInputPlaceholder | 输入框提示文字 | string | 请输入日期 | | dateRender | 自定义日期单元格的内容 | function(currentDate: moment, value: moment) => React.ReactNode | - | | renderSidebar | 在面板中添加额外的页头 | (mode) => React.Node | - | | renderFooter | 在面板中添加额外的页脚 | (mode) => React.Node | - | | disabledDate | 不可选择的日期 | (currentDate: moment) => boolean | 无 | | onSelect | 选择日期变化时的回调 | function(date: moment) | 无 | | onClear | 日期清空时的回调 | function() | 无 | | onChange | 内部日期变化时的回调(前后一个月,前后一年等) | function(date: moment) | 无 | | onPanelChange | 日历面板切换的回调 | function(value, mode) | - | | onOk | 点击确定按钮的回调 | function(date: moment) | - | | clearIcon | 自定义的清除图标 | () => React.ReactNode | |

DateRangePicker 参数

| 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | | extraCls | 根节点的自定义className,一般用来自定义样式使用 | string | | | lang | 面板语言 | zhCN/zhTW/enUS | 'zhCN' | | locale | 自定义面板的语言信息,该参数的优先级高于lang | object | - | | format | 设置日期格式 | Moment[] | string[]| | | value | 日期 |Moment[] | string[] | 无 | | defaultValue | 日期 |Moment[] | string[] | 无 | | showDateInput | 是否显示日期输入框 | Boolean | true | | showWeekNumber | 是否展示第几周 | boolean | true | | showToday | 是否展示“今天”按钮 | boolean | true | | showOk | 是否展示“确定”按钮 | boolean | true | | dateInputPlaceholder | 输入框提示文字 | string/string[] | 请输入日期 | | showClear | 是否显示清除按钮,当输入框中有值且该参数为true时显示清除按钮 | boolean | true | | disabledDate | 不可选择的日期 | (currentDate: moment) => boolean | 无 | | renderSidebar | 在面板中添加额外的页头 | (mode) => React.Node | - | | renderFooter | 在面板中添加额外的页脚 | (mode) => React.Node | - | | onClear | 日期清空时的回调 | function() | 无 | | onSelect | 选择日期变化时的回调 | function(date: moment[]) | 无 | | onOk | 点击确定按钮的回调 | function(date: moment) | - | | onChange | 内部日期变化时的回调(前后一个月,前后一年等) | function(date: moment[]) | 无 | | onPanelChange | 日历面板切换的回调 | function(value:moment[], mode) | - | | clearIcon | 自定义的清除图标 | () => React.ReactNode | |

MonthPicker 参数

| 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | | extraCls | 根节点的自定义className,一般用来自定义样式使用 | string | | | lang | 面板语言 | zhCN/zhTW/enUS | 'zhCN' | | locale | 自定义面板的语言信息,该参数的优先级高于lang | object | - | | value | 日期 |string 或moment (http://momentjs.com/) 受控模式下使用 | 无 | | defaultValue | 日期 |string 或moment (http://momentjs.com/) 非受控模式下使用 | 无 | | disabledDate | 不可选择的日期 | (currentDate: moment) => boolean | 无 | | renderFooter | 在面板中添加额外的页脚 | (mode) => React.Node | - | | onChange | 内部日期变化时的回调(前后一个月,前后一年等) | function(date: moment) | 无 | | onSelect | 选择日期变化时的回调 | function(date: moment) | 无 |