当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

ng-zorro-antd

Angular UI Component Library based on Ant Design
授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 彭霄
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

NG-ZORRO

An enterprise-class Angular UI component library based on Ant Design.

English | 简体中文

Features

  • An enterprise-class UI design system for Angular applications.
  • 60+ high-quality Angular components out of the box.
  • Written in TypeScript with predictable static types.
  • The whole package of development and design resources and tools.
  • Support OnPush mode, high performance.
  • Powerful theme customization in every detail.
  • Internationalization support for dozens of languages.

☀️ License

MIT

FOSSA Status

�� Environment Support

  • Angular ^12.0.0
  • Server-side Rendering
  • Modern browsers and Internet Explorer 11+ (with polyfills)
  • Electron
IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
Electron
Electron
IE11, Edge last 2 versions last 2 versions last 2 versions last 2 versions last 2 versions

�� Design Specification

ng-zorro-antd synchronizes design specification with Ant Design on a regular basis, you can check the log online.

�� Installation

We recommend using @angular/cli to install. It not only makes development easier, but also allows you to take advantage of the rich ecosystem of angular packages and tooling.

$ ng new PROJECT_NAME
$ cd PROJECT_NAME
$ ng add ng-zorro-antd

More information about @angular/cli here.

You can also install ng-zorro-antd with npm or yarn

$ npm install ng-zorro-antd

�� Usage

Import the component modules you want to use into your app.module.ts file and feature modules.

import { NzButtonModule } from 'ng-zorro-antd/button';

@NgModule({
  imports: [ NzButtonModule ]
})
export class AppModule {
}

@angular/cli users won't have to worry about the things below but it's good to know.

And import style and SVG icon assets file link in angular.json.

{
  "assets": [
+   {
+     "glob": "**/*",
+     "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
+     "output": "/assets/"
+   }
  ],
  "styles": [
+   "node_modules/ng-zorro-antd/ng-zorro-antd.min.css"
  ]
}

See Getting Started for more details.

�� Links

⌨️ Development

$ git clone git@github.com:NG-ZORRO/ng-zorro-antd.git
$ cd ng-zorro-antd
$ npm install
$ npm run start

Browser would open automatically.

�� Contributing

We welcome all contributions. Please read our CONTRIBUTING.md first. You can submit any ideas as pull requests or as GitHub issues.

If you're new to posting issues, we ask that you read How To Ask Questions The Smart Way (This guide does not provide actual support services for this project!), How to Ask a Question in Open Source Community and How to Report Bugs Effectively prior to posting. Well written bug reports help us help you!

Thanks to JetBrains for supporting us free open source licenses.

Help from the Community

For questions on how to use ng-zorro-antd, please post questions to using the ng-zorro-antd tag. If you're not finding what you need on stackoverflow, you can find us on as well.

As always, we encourage experienced users to help those who are not familiar with ng-zorro-antd!

�� Users

We list some users here, if your company or product uses NG-ZORRO, let us know here!

Love ng-zorro-antd? Give our repo a star ⬆️ .

  • 1. 安装脚手架工具# 使用 @angular/cli 前,务必确认 Node.js 已经升级到 v8.10 或以上,强烈建议升级至最新版本的 @angular/cli。 $ npm install -g @angular/cli@latest 请注意: 由于 0.7.0 版本的 ng-zorro-antd 目前尚未正式支持 angular 6.0 版本,@angular/cli 请选择 1.7

  • ng-zorro-antd 结构窥探(二) Config 系统中的组件与配置都在config中 通过config.ts声明了各种类型的config类型 export interface NzConfig { affix?: AffixConfig; select?: SelectConfig; alert?: AlertConfig; anchor?: AnchorConfig;

  • ng-zorro-antd 结构窥探 项目目录结构 cdk Component Development Kit The Component Dev Kit (CDK) is a set of behavior primitives for building UI components. 参考链接 1.angualr material ui components 存放组件以及命令的目录 Core 项

  • ng-zorro-antd0.5x升级到1.8.1或者更高(当前最新9.3.0) package.json文件直接更改版本号 - "ng-zorro-antd": "^0.6.15", +"ng-zorro-antd": "^1.8.1", 安装 npm install 成功升级之后需要按报错依次更改代码,大概有以下几种(不全,仅供参考): 所有常量属性不用变量表示方法 - [nzSiz

  • 卸载: npm uninstall ng-zorro-antd   安装指定版本: npm install ng-zorro-antd@1.8.1 --save

  • 自 ng-zorro-antd 1.7.x 以后图标发生破坏性变更,虽然带了诸多优势,同时也带来几个劣势: 若采用动态加载会产生额外的HTTP请求 若静态加载需要逐一注册图标 st 组件的 format 参数无法直接指定图标 ng-alain 默认使用静态加载的做法,毕竟后端使用图标相对于比较有限,即使将 svg 都打包进脚本相比较之前整个 styles 体积上是所有减少,但比较并不多。 而针对以

  • 错误代码: Uncaught Error: Template parse errors: Can't bind to 'formGroup' since it isn't a known property of 'form'. (" <form nz-form [ERROR ->][formGroup]="validateForm" class="login-form" (ngSubmit

  • 没多少逻辑,就直接贴代码了 下面是html模板的代码: <ul nz-menu [style.width]="300" [nzTheme]="'dark'" [nzMode]="'inline'" [nzInlineCollapsed]="isCollapsed"> <li nz-menu-item (contextmenu)="contextMenu($even

  • ng-zorro-antd 结构窥探(三) pipe 新增加了一个time-range的管道 import { Pipe, PipeTransform } from '@angular/core'; import { timeUnits } from 'ng-zorro-antd/core/time'; import { padStart } from 'ng-zorro-antd/core/ut

  • 样式不生效: 解决方案:在style.css中引入 'node_modules/ng-zorro-antd/ng-zorro-antd.min.css'; ngModel报错: 解决方案:在sharedModule中引入FormsModule,ReactiveFormsModule  支持less: 安装less:npm i less --save-dev angular.json:  style

  • 前言:        the best way out is always through 正文:    问题场景   根据ng-zorro-antd的table,新增筛选功能,nameList按照组件库是直接初始化数据的: nameList = [ { text: 'Joe', value: 'Joe' }, { text: 'Jim', value: 'Jim' } ];

 相关资料
  • ng-zorro-antd 是 Ant Design 的 Angular 实现,主要用于研发企业级中后台产品。全部代码开源并遵循 MIT 协议,任何企业、组织及个人均可免费使用。 ✨ 特性 提炼自企业级中后台产品的交互语言和视觉风格。 开箱即用的高质量 Angular 组件,与 Angular 保持同步升级。 使用 TypeScript 构建,提供完整的类型定义文件。 支持 OnPush 模式,性

  • Ant Design Mobile of Angular(NG-ZORRO-MOBILE)是 Ant Design 移动规范的 Angular 实现,服务于阿里巴巴集团数据无线业务。 特性 开箱即用的高质量 Angular 无线端组件 UI 样式高度可配置,拓展性更强,轻松适应各类产品风格 使用 TypeScript 开发,提供类型定义文件,支持类型及属性智能提示,方便业务开发 提供 "组件按需加

  • NG-ZORRO-Mobile This is the Angular implementation of Ant Design Mobile specification, serving Alibaba big data wireless service. 中文 README Scan QR Code Features An enterprise-class UI design language

  • 本文向大家介绍浅谈ng-zorro使用心得,包括了浅谈ng-zorro使用心得的使用技巧和注意事项,需要的朋友参考一下 前言 本周使用ng-zorro做了项目的原型,对它也有了一定的了解,总的来说不难,可以用强化版boostrap来理解它,由于黄庭祥初始化工作做得很好,在写的过程遇到的问题不是很麻烦,感谢祥哥。 问题一、button不起作用 问题描述:button按钮按下无响应,如下图: 代码如下

  • 本文向大家介绍关于angular引入ng-zorro的问题浅析,包括了关于angular引入ng-zorro的问题浅析的使用技巧和注意事项,需要的朋友参考一下 ng-zorro的官网上提供了两种在项目中添加ng-zorro的方法,下面记录其提供的第二种自行构建的方式。 第一步:执行该命令创建新的angular项目,若没安装angular/cli请执行安装 第二步:添加ng-zorro 第三步:引入

  • ng-zorro-antd 中nz-calendar日历控件怎么增加阴历 无