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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ng-zorro-antd-extend

v1.1.10-5

Published

非官方 ng-zorro-antd 扩展包

Readme

非官方 ng-zorro-antd 扩展包

🔨 使用

import { NgZorroAntdExtendModule } from 'ng-zorro-antd-extend';

@NgModule({
  imports: [ NgZorroAntdExtendModule ]
})
export class AppModule {
}
{
  "styles": [
+   "./node_modules/ng-zorro-antd-extend/ng-zorro-antd-extend.css"
  ]
}

统计时间组件 -- <nze-range-date-picker>

<nze-range-date-picker [(ngModel)]="rangeDatePickerValue" [isThisWeek]="false"></nze-range-date-picker>

属性|说明|类型|默认值 -|-|-|- [isThisWeek] | 起始是否为本周,否则本月 | boolean | true [isHaveEndTime] | 结束日期是否带有时间 (HH:mm:ss) | boolean | false [todayIsThisMonthEnd] | 本月中 当天为月的结束时间 | boolean | true [weekIsStretch] | 首周和最后一周 是否向上下延伸 | boolean | true (selectChange) | 选中事件 | EventEmitter<Array<Date>> | -

时间范围 管道 -- nzeDateRange

{{rangeDatePickerValue | nzeDateRange: {char: '/'} }}

属性|说明|类型|默认值 -|-|-|- [char] | 日期分隔符 | string | / [isHaveTime] | 日期是否带有时间 (HH:mm:ss) | boolean | false [connectChar] | 两个日期之间连接符 | string | ~

PS: Angular自带 管道

date {{date | date: "yyyy-MM-dd"}}

范围时间组件 -- <nze-range-picker>

<nze-range-picker [(ngModel)]="rangePickerValue" [isConstraint]="true"></nze-range-picker>

属性|说明|类型|默认值 -|-|-|- [isHaveEndTime] | 结束日期是否带有时间 (23:59:59) | boolean | false [isConstraint] | 约束时间范围在31天内 | boolean | false [defaultDateType] | 默认时间类型 undefined、day、week、month | string | undefined (selectChange) | 选中事件 | EventEmitter<Array<Date>> | -

大小写转换 管道 -- nzeDigitUppercase

{{num | nzeDigitUppercase}}

图片视图 -- NzeImagesViewService

constructor(private nzeImagesViewService: NzeImagesViewService) {}

+ this.nzeImagesViewService.showImage('', 0);

+ this.nzeImagesViewService.showImages(['', '', ''], 0);

Card Title扩展 -- nze-card-title

可以把 card 的 title 分成三个区域,主要为了中间区域居中。同时抛弃 card 的 [nzExtra] 属性。
目的为了将来扩展 card title 的更丰富的使用。比如关键字检索等。
<nz-card [nzTitle]="titleTpl">

</nz-card>
<ng-template #titleTpl>
  <nze-card-title>
    <div class="nze-card-title-left">Card Title扩展</div>
    <div class="nze-card-title-center">
      <nz-radio-group [(ngModel)]="radioValue" [nzButtonStyle]="'solid'">
        <label nz-radio-button nzValue="A">AAAA</label>
        <label nz-radio-button nzValue="B">BBBB</label>
      </nz-radio-group>
    </div>
    <div class="nze-card-title-right">
      <button nz-button nzType="primary">添加</button>
    </div>
  </nze-card-title>
</ng-template>