Skip to content

Commit a8b008d

Browse files
author
Zhicheng WANG
committed
docs: 分派统一改为派发
1 parent 39b263e commit a8b008d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/cdk/overlay/dispatchers/base-overlay-dispatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {OverlayReference} from '../overlay-reference';
1515
* if any. It maintains a list of attached overlays to determine best suited overlay based
1616
* on event target and order of overlay opens.
1717
*
18-
* 本服务用于将落在主体上的事件分派到适当的浮层引用(如果有)。它维护一个已附着的浮层列表,以便根据事件目标和浮层打开的顺序确定最适合的浮层。
18+
* 本服务用于将落在主体上的事件派发到适当的浮层引用(如果有)。它维护一个已附着的浮层列表,以便根据事件目标和浮层打开的顺序确定最适合的浮层。
1919
*
2020
*/
2121
@Injectable({providedIn: 'root'})

src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {BaseOverlayDispatcher} from './base-overlay-dispatcher';
1616
* if any. It maintains a list of attached overlays to determine best suited overlay based
1717
* on event target and order of overlay opens.
1818
*
19-
* 本服务用于将落在 body 上的键盘事件分派到适当的浮层引用(如果有)。它维护一个已附着的浮层列表,以便根据事件目标和浮层打开顺序确定最适合的浮层。
19+
* 本服务用于将落在 body 上的键盘事件派发到适当的浮层引用(如果有)。它维护一个已附着的浮层列表,以便根据事件目标和浮层打开顺序确定最适合的浮层。
2020
*
2121
*/
2222
@Injectable({providedIn: 'root'})

src/cdk/testing/change-detection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface AutoChangeDetectionStatus {
3636
/**
3737
* Subject used to dispatch and listen for changes to the auto change detection status .
3838
*
39-
* 一个主体对象,用于分派和监听自动变更检测状态的变化
39+
* 一个主体对象,用于派发和监听自动变更检测状态的变化
4040
*
4141
*/
4242
const autoChangeDetectionSubject = new BehaviorSubject<AutoChangeDetectionStatus>({

src/cdk/testing/protractor/protractor-element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export class ProtractorElement implements TestElement {
220220
/**
221221
* Dispatches all the events that are part of a click event sequence.
222222
*
223-
* 分派属于 click 事件序列一部分的所有事件。
223+
* 派发属于 click 事件序列一部分的所有事件。
224224
*
225225
*/
226226
private async _dispatchClickEventSequence(
@@ -259,7 +259,7 @@ export class ProtractorElement implements TestElement {
259259
* Note that this needs to be a pure function, because it gets stringified by
260260
* Protractor and is executed inside the browser.
261261
*
262-
* 将具有特定名称和数据的事件分派到元素。请注意,这必须是纯函数,因为它会由 Protractor 进行字符串化并在浏览器中执行。
262+
* 将具有特定名称和数据的事件派发到元素。请注意,这必须是纯函数,因为它会由 Protractor 进行字符串化并在浏览器中执行。
263263
*
264264
*/
265265
function _dispatchEvent(name: string, element: ElementFinder, data?: Record<string, EventData>) {

src/cdk/testing/testbed/fake-events/type-in-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function isTextInput(element: Element): element is HTMLInputElement | HTM
2626
* Focuses an input, sets its value and dispatches
2727
* the `input` event, simulating the user typing.
2828
*
29-
* 让输入获得焦点,设置其值并分派 `input` 事件,以模拟用户键入。
29+
* 让输入获得焦点,设置其值并派发 `input` 事件,以模拟用户键入。
3030
*
3131
* @param element Element onto which to set the value.
3232
*

0 commit comments

Comments
 (0)