diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index ca5a28f447a3f830484b78515e5528f2271387f2..ca90105086ffa9e84ac7996a327ae54319f9da88 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -889,6 +889,30 @@ declare class CommonMethod { */ onKeyEvent(event: (event?: KeyEvent) => void): T; + /** + * Set focusable. + * @since 8 + */ + focusable(value: boolean): T; + + /** + * Trigger a event when got focus. + * @since 8 + */ + onFocus(event: () => void): T; + + /** + * Trigger a event when lose focus. + * @since 8 + */ + onBlur(event: () => void): T; + + /** + * Trigger a event when focus move. + * @since 8 + */ + onFocusMove(event: (direction?: FocusDirection) => void): T; + /** * animation * @since 7