This commit is contained in:
CHEVALLIER Abel
2025-11-13 16:23:22 +01:00
parent de9c515a47
commit cb235644dc
34924 changed files with 3811102 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
<article nz-typography>
<h1 nz-typography>Introduction</h1>
<p nz-typography>
In the process of internal desktop applications development, many different design specs and implementations
would be involved, which might cause designers and developers difficulties and duplication and reduce the
efficiency of development.
</p>
<p nz-typography>
After massive project practice and summaries, Ant Design, a design language for backgroundapplications, is
refined by Ant UED Team, which aims to
<span nz-typography>
<strong>
uniform the user interface specs for internal background projects, lower the unnecessary cost of design
differences and implementation and liberate the resources ofdesign and front-end development
</strong>
</span>
.
</p>
<h2 nz-typography>Guidelines and Resources</h2>
<p nz-typography>
We supply a series of design principles, practical patterns and high quality design resources (
<span nz-typography><code>Sketch</code></span>
and
<span nz-typography><code>Axure</code></span>
), to help people create their product prototypes beautifully and efficiently.
</p>
<div nz-typography>
<ul>
<li>
<a href="/docs/spec/proximity">Principles</a>
</li>
<li>
<a href="/docs/pattern/navigation">Patterns</a>
</li>
<li>
<a href="/docs/resource/download">Resource Download</a>
</li>
</ul>
</div>
<p nz-typography>
Press
<span nz-typography><kbd>Esc</kbd></span>
to exist...
</p>
</article>
<nz-divider></nz-divider>
<article nz-typography>
<h1 nz-typography>介绍</h1>
<p nz-typography>
蚂蚁的企业级产品是一个庞大且复杂的体系。这类产品不仅量级巨大且功能复杂,而且变动和并发频繁,常常需要设计与开发能够快速的做出响应。
同时这类产品中有存在很多类似的页面以及组件,可以通过抽象得到一些稳定且高复用性的内容。
</p>
<p nz-typography>
随着商业化的趋势,越来越多的企业级产品对更好的用户体验有了进一步的要求。带着这样的一个终极目标,我们(蚂蚁金服体验技术部)
经过大量的项目实践和总结,逐步打磨出一个服务于企业级产品的设计体系 Ant Design。 基于
<span nz-typography><mark>『确定』和『自然』</mark></span>
的设计价值观,通过模块化的解决方案,降低冗余的生产成本, 让设计者专注于
<span nz-typography><strong>更好的用户体验</strong></span>
</p>
<h2 nz-typography>设计资源</h2>
<p nz-typography>
我们提供完善的设计原则、最佳实践和设计资源文件
<span nz-typography><code>Sketch</code></span>
<span nz-typography><code>Axure</code></span>
),来帮助业务快速设计出高质 量的产品原型。
</p>
<div nz-typography>
<ul>
<li>
<a href="/docs/spec/proximity">设计原则</a>
</li>
<li>
<a href="/docs/pattern/navigation">设计模式</a>
</li>
<li>
<a href="/docs/resource/download">设计资源</a>
</li>
</ul>
</div>
<p nz-typography>
<span nz-typography><kbd>Esc</kbd></span>
键退出阅读……
</p>
</article>

View File

@@ -0,0 +1,23 @@
import { fakeAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
describe('<%= classify(name) %>Component', () => {
let component: <%= classify(name) %>Component;
let fixture: ComponentFixture<<%= classify(name) %>Component>;
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
declarations: [ <%= classify(name) %>Component ]
})
.compileComponents();
;
fixture = TestBed.createComponent(<%= classify(name) %>Component);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should compile', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,99 @@
import { Component } from '@angular/core';
import { NzDividerModule } from 'ng-zorro-antd/divider';
import { NzTypographyModule } from 'ng-zorro-antd/typography';
@Component({
selector: '<%= selector %>',
imports: [NzDividerModule, NzTypographyModule],
<% if(inlineTemplate) { %>template: `
<article nz-typography>
<h1 nz-typography>Introduction</h1>
<p nz-typography>
In the process of internal desktop applications development, many different design specs and implementations
would be involved, which might cause designers and developers difficulties and duplication and reduce the
efficiency of development.
</p>
<p nz-typography>
After massive project practice and summaries, Ant Design, a design language for backgroundapplications, is
refined by Ant UED Team, which aims to
<span nz-typography>
<strong>
uniform the user interface specs for internal background projects, lower the unnecessary cost of design
differences and implementation and liberate the resources ofdesign and front-end development
</strong>
</span>
.
</p>
<h2 nz-typography>Guidelines and Resources</h2>
<p nz-typography>
We supply a series of design principles, practical patterns and high quality design resources (
<span nz-typography><code>Sketch</code></span>
and
<span nz-typography><code>Axure</code></span>
), to help people create their product prototypes beautifully and efficiently.
</p>
<div nz-typography>
<ul>
<li>
<a href="/docs/spec/proximity">Principles</a>
</li>
<li>
<a href="/docs/pattern/navigation">Patterns</a>
</li>
<li>
<a href="/docs/resource/download">Resource Download</a>
</li>
</ul>
</div>
<p nz-typography>
Press
<span nz-typography><kbd>Esc</kbd></span>
to exist...
</p>
</article>
<nz-divider></nz-divider>
<article nz-typography>
<h1 nz-typography>介绍</h1>
<p nz-typography>
蚂蚁的企业级产品是一个庞大且复杂的体系。这类产品不仅量级巨大且功能复杂,而且变动和并发频繁,常常需要设计与开发能够快速的做出响应。
同时这类产品中有存在很多类似的页面以及组件,可以通过抽象得到一些稳定且高复用性的内容。
</p>
<p nz-typography>
随着商业化的趋势,越来越多的企业级产品对更好的用户体验有了进一步的要求。带着这样的一个终极目标,我们(蚂蚁金服体验技术部)
经过大量的项目实践和总结,逐步打磨出一个服务于企业级产品的设计体系 Ant Design。 基于
<span nz-typography><mark>『确定』和『自然』</mark></span>
的设计价值观,通过模块化的解决方案,降低冗余的生产成本, 让设计者专注于
<span nz-typography><strong>更好的用户体验</strong></span>
</p>
<h2 nz-typography>设计资源</h2>
<p nz-typography>
我们提供完善的设计原则、最佳实践和设计资源文件
<span nz-typography><code>Sketch</code></span>
<span nz-typography><code>Axure</code></span>
),来帮助业务快速设计出高质 量的产品原型。
</p>
<div nz-typography>
<ul>
<li>
<a href="/docs/spec/proximity">设计原则</a>
</li>
<li>
<a href="/docs/pattern/navigation">设计模式</a>
</li>
<li>
<a href="/docs/resource/download">设计资源</a>
</li>
</ul>
</div>
<p nz-typography>
<span nz-typography><kbd>Esc</kbd></span>
键退出阅读……
</p>
</article>
`<% } else { %>templateUrl: './<%= dasherize(name) %>.component.html'<% } %>
})
export class <%= classify(name) %>Component {}

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
const schematics_1 = require("@angular-devkit/schematics");
const build_component_1 = require("../../utils/build-component");
function default_1(options) {
return (0, schematics_1.chain)([
(0, build_component_1.buildComponent)(Object.assign({}, options), {
template: './__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template',
stylesheet: './__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template'
})
]);
}
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/demo/typography-basic/index.ts"],"names":[],"mappings":";;AAQA,4BAUC;AAlBD,2DAGoC;AACpC,iEAA6D;AAI7D,mBAAwB,OAAe;IACrC,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,gCAAc,oBACP,OAAO,GACZ;YACE,QAAQ,EAAE,kFAAkF;YAC5F,UAAU,EAAE,uFAAuF;SACpG,CACF;KACF,CAAC,CAAC;AACL,CAAC"}

View File

@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=schema.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../schematics/demo/typography-basic/schema.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1 @@
{"$schema":"http://json-schema.org/schema","$id":"basic-typography","title":"NG-ZORRO basic typography","type":"object","properties":{"path":{"type":"string","format":"path","description":"The path to create the component.","visible":false},"project":{"type":"string","description":"The name of the project.","$default":{"$source":"projectName"}},"name":{"type":"string","description":"The name of the component.","$default":{"$source":"argv","index":0},"x-prompt":"What should be the name of the component?"},"inlineStyle":{"description":"When true, includes styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.","type":"boolean","default":false,"alias":"s"},"inlineTemplate":{"description":"When true, includes template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.","type":"boolean","default":false,"alias":"t"},"standalone":{"description":"Whether the generated component is standalone.","type":"boolean"},"prefix":{"type":"string","description":"The prefix to apply to the generated component selector.","alias":"p","oneOf":[{"maxLength":0},{"minLength":1,"format":"html-selector"}]},"styleext":{"description":"The file extension to use for style files.","type":"string","default":"css","x-deprecated":"Use \"style\" instead."},"style":{"description":"The file extension or preprocessor to use for style files.","type":"string","default":"css","enum":["css","scss","sass","less","styl"]},"spec":{"type":"boolean","description":"When true (the default), generates a \"spec.ts\" test file for the new component.","default":true,"x-deprecated":"Use \"skipTests\" instead."},"skipTests":{"type":"boolean","description":"When true, does not create \"spec.ts\" test files for the new component."},"flat":{"type":"boolean","description":"Flag to indicate if a dir is created.","default":false},"skipImport":{"type":"boolean","description":"When true, does not import this component into the owning NgModule."},"selector":{"type":"string","format":"html-selector","description":"The selector to use for the component."},"module":{"type":"string","description":"Allows specification of the declaring module.","alias":"m"},"export":{"type":"boolean","default":false,"description":"When true, the declaring NgModule exports this component."},"entryComponent":{"type":"boolean","default":false,"description":"When true, the new component is the entry component of the declaring NgModule."},"classnameWithModule":{"type":"boolean","description":"When true, Use module class name as additional prefix for the component classname.","default":false}},"required":["name"]}