!7524 Enable Sliding effect when component does not full screen

Merge pull request !7524 from 孙旭辉/master
This commit is contained in:
openharmony_ci 2023-11-06 14:12:28 +00:00 committed by Gitee
commit b886cb4935
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 54 additions and 3 deletions

View File

@ -10675,3 +10675,23 @@ declare module 'DragControllerParam' {
export type { CustomBuilder, DragItemInfo, DragEvent };
}
}
/**
* Define EdgeEffect Options.
*
* @interface EdgeEffectOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
*/
declare interface EdgeEffectOptions {
/**
* Enable Sliding effect when component does not full screen.
*
* @type { boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
*/
alwaysEnabled: boolean;
}

View File

@ -656,7 +656,17 @@ declare class GridAttribute extends CommonMethod<GridAttribute> {
* @crossplatform
* @since 10
*/
edgeEffect(value: EdgeEffect): GridAttribute;
/**
* Called when the sliding effect is set.
*
* @param { EdgeEffect } value
* @param { EdgeEffectOptions } options
* @returns { GridAttribute } The attribute of the grid
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
*/
edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): GridAttribute;
/**
* Called to setting the nested scroll options.

View File

@ -666,7 +666,18 @@ declare class ListAttribute extends CommonMethod<ListAttribute> {
* @since 10
* @form
*/
edgeEffect(value: EdgeEffect): ListAttribute;
/**
* Called when the sliding effect is set.
*
* @param { EdgeEffect } value
* @param { EdgeEffectOptions } options
* @returns { ListAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
* @form
*/
edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): ListAttribute;
/**
* Called when the ListItem split line style is set.

View File

@ -643,7 +643,17 @@ declare class ScrollAttribute extends CommonMethod<ScrollAttribute> {
* @crossplatform
* @since 10
*/
edgeEffect(edgeEffect: EdgeEffect): ScrollAttribute;
/**
* Called when the sliding effect is set.
*
* @param { EdgeEffect } edgeEffect
* @param { EdgeEffectOptions } options
* @returns { ScrollAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
*/
edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): ScrollAttribute;
/**
* Called when scrolling begin each frame.