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

bj-dgui

v0.0.4

Published

**公司前端组件库-测试阶段

Downloads

8

Readme

bj-dgui


、****公司前端组件库-测试阶段

安装

npm 安装

npm i bj-dgui

yarn 安装

yarn add bj-dgui

####使用

根模块注入

import { RangeTimeModule } from 'bj-dgui';

组件HTML结构

<bjdg-range-time [date]="date" (currentDate)="currentDate($event)" [rangeDate]="dateRange" [dateFormat]="formatRange">
</bjdg-range-time>

组件TS属性

  date: Array<any> = [
    'Wed Jul 15 2020 14:21:00 GMT+0800 (中国标准时间)',
    'Fri Jul 17 2020 14:21:00 GMT+0800 (中国标准时间)',
  ];
  dateRange = [1594656000, 1595001599];
  formatRange = 'yyyy/MM/dd';

组件TS方法

  currentDate(event) {
    this.date = event;
  }

属性介绍

|参数|类型|含义|可选参数|默认值|备注| |----|----|----|----|----|----| |date|Array< Date >|选中的时间段或者需要回显的时间段|无|无|数组中为时间格式| |dateRange|Array|限定可选的时间范围|无|无|数组为开始时间和结束时间的10位时间戳| |formatRange|String|日期格式|'yyyy/MM/dd','yyyy/MM/dd HH:mm:ss','HH:mm','HH:mm:ss'|'yyyy/MM/dd'|数组中为时间格式|

方法介绍

Ï |方法名|含义|参数|返回值| |----|----|----|----|----| |currentDate|当前选择时间|Array< Date >|无|