Skip to content

Commit c776742

Browse files
committed
fix: update to v18
1 parent b6bd653 commit c776742

File tree

1,536 files changed

+71889
-158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,536 files changed

+71889
-158
lines changed

404.html

+78-79
Large diffs are not rendered by default.

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.angular.cn

_headers

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
Cross-Origin-Opener-Policy: same-origin
3+
Cross-Origin-Embedder-Policy: require-corp

assets/api/manifest.json

+1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="api"><header class="docs-reference-header"><span class="docs-reference-category">@angular/animations</span><div class="docs-reference-title"><div><h1>AUTO_STYLE</h1><div class="docs-api-item-label" data-mode="full" data-type="constant">constant</div></div><a class="docs-github-links" target="_blank" href="https://github.com/angular/angular/blob/main/packages/animations/src/animation_metadata.ts#L176-L176" title="View source" aria-label="View source"><i role="presentation" aria-hidden="true" class="material-symbols-outlined">code</i></a></div><p class="docs-reference-description"></p><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="6m79txlfu5bcibse6qmtrcfpp">用于指定自动化样式。</p><p></p></header><div data-tab="API" data-tab-url="api"><div class="docs-reference-api-tab"><div class="docs-code"><pre class="docs-mini-scroll-track"><code><div class="hljs-ln-line "><span class="hljs-keyword">const</span> <span class="hljs-attr">AUTO_STYLE</span>: <span class="hljs-built_in">string</span>;</div></code></pre></div></div></div></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="api"><header class="docs-reference-header"><span class="docs-reference-category">@angular/animations</span><div class="docs-reference-title"><div><h1>AnimateChildOptions</h1><div class="docs-api-item-label" data-mode="full" data-type="interface">interface</div></div><a class="docs-github-links" target="_blank" href="https://github.com/angular/angular/blob/main/packages/animations/src/animation_metadata.ts#L91-L93" title="View source" aria-label="View source"><i role="presentation" aria-hidden="true" class="material-symbols-outlined">code</i></a></div><p class="docs-reference-description"></p><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="9b2qtdpvixf5ntwiv8xhnkty0">添加持续时间选项,以控制子动画的动画样式和时序。</p><p></p><nav class="docs-pill-row"><a class="docs-pill" href="api/animations/animateChild">animateChild</a></nav></header><div data-tab="API" data-tab-url="api"><div class="docs-reference-api-tab"><div class="docs-code"><pre class="docs-mini-scroll-track"><code><div class="hljs-ln-line "><span class="hljs-keyword">interface</span> <span class="hljs-title class_">AnimateChildOptions</span> {</div><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="duration"> duration?: <span class="hljs-built_in">string</span> | <span class="hljs-built_in">number</span>;</button><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="delay"> <span class="hljs-keyword">override</span> delay?: <span class="hljs-built_in">string</span> | <span class="hljs-built_in">number</span>;</button><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="params"> <span class="hljs-keyword">override</span> params?: { [<span class="hljs-attr">name</span>: <span class="hljs-built_in">string</span>]: <span class="hljs-built_in">any</span>; };</button><div class="hljs-ln-line ">}</div></code></pre></div></div></div><div class="docs-reference-members-container"><div class="docs-reference-members"><div id="duration" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>duration</h3><div><code>string | number</code></div></div></header></div><div id="delay" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>delay</h3><div><code>string | number</code></div></div></header><div class="docs-reference-card-body"><div class="docs-reference-card-item"><div><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="6843wpixqghozba2z9cv9akpr">设置第一个动画动作开始前的延迟时间。
2+
包括一个数字和一个可选的时间单位,比如 "1s" 表示一秒,"10ms" 表示十毫秒。
3+
默认单位是毫秒。
4+
默认值为 0,表示不延迟。</p></div></div></div></div><div id="params" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>params</h3><div><code>{ [name: string]: any; }</code></div></div></header><div class="docs-reference-card-body"><div class="docs-reference-card-item"><div><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="c557kkhmbwq3kkbn9l571xghx">一组可由开发人员来定义的参数,用于在动画开始时修改样式和时序。
5+
这是一组键值对,它所提供的值会用做默认值。</p></div></div></div></div></div></div></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="api"><header class="docs-reference-header"><span class="docs-reference-category">@angular/animations</span><div class="docs-reference-title"><div><h1>AnimateTimings</h1><div class="docs-api-item-label" data-mode="full" data-type="type_alias">Type Alias</div></div><a class="docs-github-links" target="_blank" href="https://github.com/angular/angular/blob/main/packages/animations/src/animation_metadata.ts#L27-L48" title="View source" aria-label="View source"><i role="presentation" aria-hidden="true" class="material-symbols-outlined">code</i></a></div><p class="docs-reference-description"></p><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="74xgbonq4v7bkgi7fvi8fg4gm">表示一个动画步骤中的动画时序参数。</p><p></p><nav class="docs-pill-row"><a class="docs-pill" href="api/animations/animate">animate</a></nav></header><div data-tab="API" data-tab-url="api"><div class="docs-reference-api-tab"><div class="docs-code"><pre class="docs-mini-scroll-track"><code><div class="hljs-ln-line "><span class="hljs-keyword">type</span> <span class="hljs-title class_">AnimateTimings</span> = {</div><div class="hljs-ln-line "> <span class="hljs-comment">/**</span></div><div class="hljs-ln-line "> * The full duration of an animation step. A number and optional time unit,</div><div class="hljs-ln-line "> * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.</div><div class="hljs-ln-line "> * The default unit is milliseconds.</div><div class="hljs-ln-line "> */</div><div class="hljs-ln-line "> <span class="hljs-attr">duration</span>: <span class="hljs-built_in">number</span>;</div><div class="hljs-ln-line "> <span class="hljs-comment">/**</span></div><div class="hljs-ln-line "> * The delay in applying an animation step. A number and optional time unit.</div><div class="hljs-ln-line "> * The default unit is milliseconds.</div><div class="hljs-ln-line "> */</div><div class="hljs-ln-line "> <span class="hljs-attr">delay</span>: <span class="hljs-built_in">number</span>;</div><div class="hljs-ln-line "> <span class="hljs-comment">/**</span></div><div class="hljs-ln-line "> * An easing style that controls how an animations step accelerates</div><div class="hljs-ln-line "> * and decelerates during its run time. An easing function such as `cubic-bezier()`,</div><div class="hljs-ln-line "> * or one of the following constants:</div><div class="hljs-ln-line "> * - `ease-in`</div><div class="hljs-ln-line "> * - `ease-out`</div><div class="hljs-ln-line "> * - `ease-in-and-out`</div><div class="hljs-ln-line "> */</div><div class="hljs-ln-line "> <span class="hljs-attr">easing</span>: <span class="hljs-built_in">string</span> | <span class="hljs-literal">null</span>;</div><div class="hljs-ln-line ">}</div></code></pre></div></div></div></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="api"><header class="docs-reference-header"><span class="docs-reference-category">@angular/animations</span><div class="docs-reference-title"><div><h1>AnimationAnimateChildMetadata</h1><div class="docs-api-item-label" data-mode="full" data-type="interface">interface</div></div><a class="docs-github-links" target="_blank" href="https://github.com/angular/angular/blob/main/packages/animations/src/animation_metadata.ts#L357-L364" title="View source" aria-label="View source"><i role="presentation" aria-hidden="true" class="material-symbols-outlined">code</i></a></div><p class="docs-reference-description"></p><p data-ng_translator_product="100" data-ng_translator_ref_id="elu1bsfnm5hq4hnwpbaww901k">封装子动画,当父动画运行时可以显式运行。由
2+
<code>animateChild</code> 函数实例化并返回。</p><p></p></header><div data-tab="API" data-tab-url="api"><div class="docs-reference-api-tab"><div class="docs-code"><pre class="docs-mini-scroll-track"><code><div class="hljs-ln-line "><span class="hljs-keyword">interface</span> <span class="hljs-title class_">AnimationAnimateChildMetadata</span> {</div><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="options"> <span class="hljs-attr">options</span>: <span class="hljs-title class_">AnimationOptions</span>;</button><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="type"> <span class="hljs-keyword">override</span> <span class="hljs-attr">type</span>: <span class="hljs-title class_">AnimationMetadataType</span>;</button><div class="hljs-ln-line ">}</div></code></pre></div></div></div><div class="docs-reference-members-container"><div class="docs-reference-members"><div id="options" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>options</h3><div><code>AnimationOptions</code></div></div></header><div class="docs-reference-card-body"><div class="docs-reference-card-item"><div><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="640rglefmb8sm9105uoxzplse">一个配置对象,包含一个延迟和一些由开发人员定义的参数,这些参数用于提供样式的默认值,并可在调用时重写。
3+
默认延迟为 0。</p></div></div></div></div><div id="type" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>type</h3><div><code>AnimationMetadataType</code></div></div></header></div></div></div></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<div class="api"><header class="docs-reference-header"><span class="docs-reference-category">@angular/animations</span><div class="docs-reference-title"><div><h1>AnimationAnimateMetadata</h1><div class="docs-api-item-label" data-mode="full" data-type="interface">interface</div></div><a class="docs-github-links" target="_blank" href="https://github.com/angular/angular/blob/main/packages/animations/src/animation_metadata.ts#L340-L349" title="View source" aria-label="View source"><i role="presentation" aria-hidden="true" class="material-symbols-outlined">code</i></a></div><p class="docs-reference-description"></p><p data-ng_translator_product="100" data-ng_translator_ref_id="a6z4b3apj37pq7kkzrba0ar7g">封装动画步骤。由
2+
<code>animate()</code> 函数实例化并返回。</p><p></p></header><div data-tab="API" data-tab-url="api"><div class="docs-reference-api-tab"><div class="docs-code"><pre class="docs-mini-scroll-track"><code><div class="hljs-ln-line "><span class="hljs-keyword">interface</span> <span class="hljs-title class_">AnimationAnimateMetadata</span> {</div><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="timings"> <span class="hljs-attr">timings</span>: <span class="hljs-built_in">string</span> | <span class="hljs-built_in">number</span> | <span class="hljs-title class_">AnimateTimings</span>;</button><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="styles"> <span class="hljs-attr">styles</span>: <span class="hljs-title class_">AnimationStyleMetadata</span> | <span class="hljs-title class_">AnimationKeyframesSequenceMetadata</span>;</button><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="type"> <span class="hljs-keyword">override</span> <span class="hljs-attr">type</span>: <span class="hljs-title class_">AnimationMetadataType</span>;</button><div class="hljs-ln-line ">}</div></code></pre></div></div></div><div class="docs-reference-members-container"><div class="docs-reference-members"><div id="timings" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>timings</h3><div><code>string | number | AnimateTimings</code></div></div></header><div class="docs-reference-card-body"><div class="docs-reference-card-item"><div><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="9lbe393g9b9kiq0paeyrbkgu2">该步骤的时序数据。</p></div></div></div></div><div id="styles" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>styles</h3><div><code>AnimationStyleMetadata | AnimationKeyframesSequenceMetadata</code></div></div></header><div class="docs-reference-card-body"><div class="docs-reference-card-item"><div><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="dz98wjrdgzghjzmyk6qk2z3pq">用在该步骤中的一组样式。</p></div></div></div></div><div id="type" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>type</h3><div><code>AnimationMetadataType</code></div></div></header></div></div></div></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="api"><header class="docs-reference-header"><span class="docs-reference-category">@angular/animations</span><div class="docs-reference-title"><div><h1>AnimationAnimateRefMetadata</h1><div class="docs-api-item-label" data-mode="full" data-type="interface">interface</div></div><a class="docs-github-links" target="_blank" href="https://github.com/angular/angular/blob/main/packages/animations/src/animation_metadata.ts#L372-L383" title="View source" aria-label="View source"><i role="presentation" aria-hidden="true" class="material-symbols-outlined">code</i></a></div><p class="docs-reference-description"></p><p data-ng_translator_product="100" data-ng_translator_ref_id="cgl1minv32dtqvf22xey8ct9o">封装可重用的动画。由
2+
<code>useAnimation()</code> 函数实例化并返回。</p><p></p></header><div data-tab="API" data-tab-url="api"><div class="docs-reference-api-tab"><div class="docs-code"><pre class="docs-mini-scroll-track"><code><div class="hljs-ln-line "><span class="hljs-keyword">interface</span> <span class="hljs-title class_">AnimationAnimateRefMetadata</span> {</div><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="animation"> <span class="hljs-attr">animation</span>: <span class="hljs-title class_">AnimationReferenceMetadata</span>;</button><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="options"> <span class="hljs-attr">options</span>: <span class="hljs-title class_">AnimationOptions</span>;</button><button aria-describedby="jump-msg" type="button" class="hljs-ln-line " member-id="type"> <span class="hljs-keyword">override</span> <span class="hljs-attr">type</span>: <span class="hljs-title class_">AnimationMetadataType</span>;</button><div class="hljs-ln-line ">}</div></code></pre></div></div></div><div class="docs-reference-members-container"><div class="docs-reference-members"><div id="animation" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>animation</h3><div><code>AnimationReferenceMetadata</code></div></div></header><div class="docs-reference-card-body"><div class="docs-reference-card-item"><div><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="4ny1ivqieeoi5cu1nvbriqwv">一个动画引用对象。</p></div></div></div></div><div id="options" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>options</h3><div><code>AnimationOptions</code></div></div></header><div class="docs-reference-card-body"><div class="docs-reference-card-item"><div><p data-ng_translator_product="100" data-ng_translator_confirmed data-ng_translator_ref_id="640rglefmb8sm9105uoxzplse">一个配置对象,包含一个延迟和一些由开发人员定义的参数,这些参数用于提供样式的默认值,并可在调用时重写。
3+
默认延迟为 0。</p></div></div></div></div><div id="type" class="docs-reference-member-card" tabindex="-1"><header><div class="docs-reference-header"><h3>type</h3><div><code>AnimationMetadataType</code></div></div></header></div></div></div></div>

0 commit comments

Comments
 (0)