!2813 scroll文档整改,sdk保持一致

Merge pull request !2813 from 李娟/master
This commit is contained in:
openharmony_ci 2022-10-21 02:05:31 +00:00 committed by Gitee
commit 4ecea9592b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 11 additions and 0 deletions

View File

@ -507,6 +507,7 @@ declare enum Edge {
/**
* Center horizontal and vertical.
* @since 7
* @deprecated since 9
*/
Center,
@ -519,6 +520,7 @@ declare enum Edge {
/**
* Cross axis direction text baseline alignment.
* @since 7
* @deprecated since 9
*/
Baseline,
@ -531,6 +533,7 @@ declare enum Edge {
/**
* Middle
* @since 7
* @deprecated since 9
*/
Middle,

View File

@ -33,6 +33,7 @@ declare enum ScrollDirection {
/**
* Free scrolling is supported.
* @since 7
* @deprecated since 9
*/
Free,
@ -72,9 +73,16 @@ declare class Scroller {
/**
* Called when page turning mode is set.
* @since 7
* @deprecated since 9
*/
scrollPage(value: { next: boolean; direction?: Axis });
/**
* Called when page turning mode is set.
* @since 9
*/
scrollPage(value: { next: boolean });
/**
* Called when viewing the scroll offset.
* @since 7