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

ng-yzf-base

v2.3.1

Published

yzf前端组件库

Downloads

7

Readme

ng-yzf-base

yzf前端组件库

主要用于提供自定义前端组件库。目前本组件库是建立在阿里的ant-zorro这套组件库基础之上,作为补充,完善现有组件来满足企业版的系统前端开发需求。

组件库说明

本库主要包含公共组件,指令,管道,工具,公共服务等。

组件
  • 业务组建:满足企业版的业务相关的组件,比如商品选择,税务清单;
  • 功能组件:为完成某项功能封装的组件,比如表格查询,分页组件等;
  • 结构组建:为完成页面结构布局及UI样式封装的组件,比如页面头部,表格,底部等;

生成组件,指令,服务等

ng generate directive|pipe|service|class|guard|interface|enum|module --project ng-yzf-base

eg:
ng g c nodata --project=ng-yzf-base --style=less 

ng g c page-box --project=ng-yzf-base --style=less -t -s

编译

执行以下命令,编译项目到project/ng-yzf-base/dist文件夹下

ng build ng-yzf-base

发布

到编译后的dist文件夹下执行以下命令

npm publish

测试

执行 ng test ng-yzf-base 命令进项单元测试,可参看Karma.

使用

  • 安装
npm install ng-yzf-base
  • 配置
import { NgYzfBaseModule } from 'ng-yzf-base';

const baseModule = [NgYzfBaseModule];
@NgModule({
    imports: [
        ...baseModule,
    ],
    exports: [
        ...baseModule,
    ],
})