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/time-picker

v3.3.55

Published

输入或选择时间的控件。

Downloads

595

Readme

输入或选择时间的控件。

何时使用

当用户需要输入一个时间,可以点击标准输入框,弹出时间面板进行选择。

API

| 参数 | 说明 | 类型 | 默认值 | | ------------------ | ------------------------------------------------------ | ------------------------------------------------ | ------------ | | lang | 面板语言 | zhCN/zhTW/enUS | 'zhCN' | | addon | 选择框底部显示自定义的内容 | function | 无 | | allowEmpty | 是否展示清除按钮 | boolean | true | | showSecond | 是否展示秒选项 | boolean | true | | use12Hours | 使用 12 小时制,为 true 时 format 默认为 h:mm:ss a | boolean | false | | value | 当前时间 | moment | 无 | | disabledHours | 禁止选择部分小时选项 | function() | 无 | | disabledMinutes | 禁止选择部分分钟选项 | function(selectedHour) | 无 | | disabledSeconds | 禁止选择部分秒选项 | function(selectedHour, selectedMinute) | 无 | | format | 展示的时间格式 | string | "HH:mm:ss" | | hideDisabldOptions | 隐藏禁止选择的选项 | boolean | false | | placeholder | 没有值的时候显示的内容 | string | "请输入时间" | | hourStep | 小时选项间隔 | number | 1(1-23) | | minuteStep | 分钟选项间隔 | number | 1 (1-60) | | secondStep | 秒选项间隔 | number | 1 (1-60) | | onChange | 时间发生变化的回调 | function(time: moment, timeString: string): void | 无 | | onSelect | 时/分/秒中的某一列的数值被选中后执行的函数,只有在最后一列会被调用 | function(): void | | | onAmPmChange | 上午下午发生变化的回调 | function(ampm): void | 无 | | onClear | 点击清除按钮时的回调 | function(): void | 无 | | disabledTime | 禁止选择部分小时/分钟/秒的选项 | () => {disabledHours: Function,disabledMinutes: Function,disabledSeconds: Function}