navigateBlock() 函数
返回相对于所提供块子元素的下一个可导航项。
Signature:
export declare function navigateBlock(current: Icon | Field | RenderedConnection | BlockSvg, delta: number): IFocusableNode | null;
参数
| 参数 | 类型 | 说明 |
|---|---|---|
| 当前 | 图标 | 字段 | RenderedConnection | BlockSvg | 要相对于其进行导航的可导航块子项。 |
| delta | 数值 | 用于导航的索引差值;正值表示向前导航 n 个,负值表示向后导航 n 个。 |
返回:
IFocusableNode | null
可导航块子级相对于 current 的偏移量(以 delta 为单位)。