From 78336feea0c5ee3bafba8949495dd7de0938194d Mon Sep 17 00:00:00 2001 From: sun-xinyan Date: Tue, 12 Aug 2025 10:04:17 +0800 Subject: [PATCH] add modifier Signed-off-by: sun-xinyan --- api/@ohos.arkui.modifier.static.d.ets | 42 ++++++++++ api/arkui/StepperItemModifier.static.d.ets | 12 +-- .../component/navDestination.static.d.ets | 77 +++++++++++-------- api/arkui/component/navigation.static.d.ets | 71 +++++++++-------- api/arkui/component/sidebar.static.d.ets | 39 ++++++---- api/arkui/component/stepper.static.d.ets | 23 ++++-- api/arkui/component/stepperItem.static.d.ets | 19 ++++- api/arkui/component/swiper.static.d.ets | 73 ++++++++++-------- 8 files changed, 232 insertions(+), 124 deletions(-) diff --git a/api/@ohos.arkui.modifier.static.d.ets b/api/@ohos.arkui.modifier.static.d.ets index 85debe08f6..3edaf90662 100644 --- a/api/@ohos.arkui.modifier.static.d.ets +++ b/api/@ohos.arkui.modifier.static.d.ets @@ -75,6 +75,20 @@ export { ListItemModifier } from './arkui/ListItemModifier'; */ export { ListModifier } from './arkui/ListModifier'; +/** + * Export NavDestinationModifier, which is used to expose applyNormalAttribute function. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export { NavDestinationModifier } from './arkui/NavDestinationModifier'; + +/** + * Export NavigationModifier, which is used to expose applyNormalAttribute function. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export { NavigationModifier } from './arkui/NavigationModifier'; + /** * Export RefreshModifier, which is used to update attributes to native side. * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -89,6 +103,34 @@ export { RefreshModifier } from './arkui/RefreshModifier'; */ export { ScrollModifier } from './arkui/ScrollModifier'; +/** + * Export SideBarContainerModifier, which is used to expose applyNormalAttribute function. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export { SideBarContainerModifier } from './arkui/SideBarContainerModifier'; + +/** + * Export StepperItemModifier, which is used to expose applyNormalAttribute function. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export { StepperItemModifier } from './arkui/StepperItemModifier'; + +/** + * Export StepperModifier, which is used to expose applyNormalAttribute function. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export { StepperModifier } from './arkui/StepperModifier'; + +/** + * Export SwiperModifier, which is used to expose applyNormalAttribute function. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export { SwiperModifier } from './arkui/SwiperModifier'; + /** * Export RefreshModifier, which is used to update attributes to native side. * @syscap SystemCapability.ArkUI.ArkUI.Full diff --git a/api/arkui/StepperItemModifier.static.d.ets b/api/arkui/StepperItemModifier.static.d.ets index b944bad082..9c21d326d9 100644 --- a/api/arkui/StepperItemModifier.static.d.ets +++ b/api/arkui/StepperItemModifier.static.d.ets @@ -21,23 +21,23 @@ */ import { AttributeModifier } from './component/common'; -import { SideBarContainerAttribute } from './component/sidebar'; +import { StepperItemAttribute } from './component/stepperItem'; /** - * Defines SideBarContainer Modifier + * Defines StepperItem Modifier * - * @implements { SideBarContainerAttribute, AttributeModifier } + * @implements { StepperItemAttribute, AttributeModifier } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export declare class SideBarContainerModifier implements SideBarContainerAttribute, AttributeModifier { +export declare class StepperItemModifier implements StepperItemAttribute, AttributeModifier { /** * Defines the normal update attribute function. * - * @param { SideBarContainerAttribute } instance + * @param { StepperItemAttribute } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - applyNormalAttribute(instance: SideBarContainerAttribute): void; + applyNormalAttribute(instance: StepperItemAttribute): void; } diff --git a/api/arkui/component/navDestination.static.d.ets b/api/arkui/component/navDestination.static.d.ets index a341554993..89e7bb3eed 100644 --- a/api/arkui/component/navDestination.static.d.ets +++ b/api/arkui/component/navDestination.static.d.ets @@ -421,7 +421,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined, options?: NavigationTitleOptions | undefined): this; + default title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined, options?: NavigationTitleOptions | undefined): this; /** * Hide navigation title bar @@ -431,7 +431,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideTitleBar(value: boolean | undefined): this; + default hideTitleBar(value: boolean | undefined): this; /** * Hide navigation title bar @@ -442,7 +442,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideTitleBar(hide: boolean | undefined, animated: boolean | undefined): this; + default hideTitleBar(hide: boolean | undefined, animated: boolean | undefined): this; /** * Hide navDestination back button @@ -452,7 +452,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideBackButton(hide: boolean | undefined): this; + default hideBackButton(hide: boolean | undefined): this; /** * Invoked when the navDestination page is displayed. @@ -462,7 +462,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onShown(callback: (() => void) | undefined): this; + default onShown(callback: (() => void) | undefined): this; /** * Invoked when the navDestination is hidden. @@ -472,7 +472,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onHidden(callback: (() => void) | undefined): this; + default onHidden(callback: (() => void) | undefined): this; /** * Invoked when the backButton is pressed. @@ -482,7 +482,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onBackPressed(callback: (() => boolean) | undefined): this; + default onBackPressed(callback: (() => boolean) | undefined): this; /** * Invoked when pop to the navDestination with result. @@ -492,7 +492,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onResult(callback: Callback | undefined): this; + default onResult(callback: Callback | undefined): this; /** * Sets the different mode of NavDestination. @@ -502,7 +502,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - mode(value: NavDestinationMode | undefined): this; + default mode(value: NavDestinationMode | undefined): this; /** * Set back button icon. @@ -512,7 +512,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - backButtonIcon(value: ResourceStr | PixelMap | SymbolGlyphModifier | undefined): this; + default backButtonIcon(value: ResourceStr | PixelMap | SymbolGlyphModifier | undefined): this; /** * Set back button icon and accessibility broadcast content. @@ -523,7 +523,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - backButtonIcon(icon: ResourceStr | PixelMap | SymbolGlyphModifier | undefined, accessibilityText?: ResourceStr | undefined): this; + default backButtonIcon(icon: ResourceStr | PixelMap | SymbolGlyphModifier | undefined, accessibilityText?: ResourceStr | undefined): this; /** * NavDestination title bar's menus @@ -533,7 +533,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - menus(value: Array | CustomBuilder | undefined): this; + default menus(value: Array | CustomBuilder | undefined): this; /** * NavDestination title bar's menus @@ -544,7 +544,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - menus(items: Array | CustomBuilder | undefined, options?: NavigationMenuOptions | undefined): this; + default menus(items: Array | CustomBuilder | undefined, options?: NavigationMenuOptions | undefined): this; /** * Configure toolbar with default style parameter or custom parameter. @@ -555,7 +555,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - toolbarConfiguration(toolbarParam: Array | CustomBuilder | undefined, options?: NavigationToolbarOptions | undefined): this; + default toolbarConfiguration(toolbarParam: Array | CustomBuilder | undefined, options?: NavigationToolbarOptions | undefined): this; /** * Hide tool bar @@ -566,7 +566,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideToolBar(hide: boolean | undefined, animated?: boolean | undefined): this; + default hideToolBar(hide: boolean | undefined, animated?: boolean | undefined): this; /** * Invoked before sub-components of NavDestination are created. @@ -576,7 +576,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onReady(callback: Callback | undefined): this; + default onReady(callback: Callback | undefined): this; /** * Invoked before the navDestination is appeared. @@ -586,7 +586,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onWillAppear(callback: Callback | undefined): this; + default onWillAppear(callback: Callback | undefined): this; /** * Invoked before the navDestination is disappeared. @@ -596,7 +596,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onWillDisappear(callback: Callback | undefined): this; + default onWillDisappear(callback: Callback | undefined): this; /** * Invoked before the navDestination is displayed. @@ -606,7 +606,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onWillShow(callback: Callback | undefined): this; + default onWillShow(callback: Callback | undefined): this; /** * Invoked before the navDestination is hidden. @@ -616,7 +616,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onWillHide(callback: Callback | undefined): this; + default onWillHide(callback: Callback | undefined): this; /** * Set navDestination content expand types and edges. @@ -627,7 +627,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - ignoreLayoutSafeArea(types?: Array | undefined, edges?: Array | undefined): this; + default ignoreLayoutSafeArea(types?: Array | undefined, edges?: Array | undefined): this; /** * Set the style of system bar @@ -637,7 +637,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - systemBarStyle(style: SystemBarStyle | undefined): this; + default systemBarStyle(style: SystemBarStyle | undefined): this; /** * Set the NavDestination can be restored after the application is terminated. @@ -648,7 +648,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - recoverable(recoverable: boolean | undefined): this; + default recoverable(recoverable: boolean | undefined): this; /** * Configuration of system transition @@ -658,7 +658,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - systemTransition(type: NavigationSystemTransitionType | undefined): this; + default systemTransition(type: NavigationSystemTransitionType | undefined): this; /** * Bind NavDestination to scrollable container components to automatically hide titlebar and toolbar. @@ -668,7 +668,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - bindToScrollable(scrollers: Array | undefined): this; + default bindToScrollable(scrollers: Array | undefined): this; /** * Bind NavDestination to nested scrollable container components to automatically hide titlebar and toolbar. @@ -678,7 +678,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - bindToNestedScrollable(scrollInfos: Array | undefined): this; + default bindToNestedScrollable(scrollInfos: Array | undefined): this; /** * Invoked when destination is active. @@ -688,7 +688,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onActive(callback: Callback | undefined): this; + default onActive(callback: Callback | undefined): this; /** * Invoked when destination is inactive. @@ -698,7 +698,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onInactive(callback: Callback | undefined): this; + default onInactive(callback: Callback | undefined): this; /** * Set NavDestination custom animation. @@ -708,7 +708,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - customTransition(delegate: NavDestinationTransitionDelegate | undefined): this; + default customTransition(delegate: NavDestinationTransitionDelegate | undefined): this; /** * Invoked when destination be pushed with singleton mode. @@ -718,7 +718,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onNewParam(callback: Callback | undefined): this; + default onNewParam(callback: Callback | undefined): this; /** * Set NavDestination's preferred Orientation. @@ -728,7 +728,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - preferredOrientation(orientation: Orientation | undefined): this; + default preferredOrientation(orientation: Orientation | undefined): this; /** * Set statusBar to visible or invisible. @@ -740,7 +740,7 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - enableStatusBar(enabled: boolean | undefined, animated?: boolean | undefined): this; + default enableStatusBar(enabled: boolean | undefined, animated?: boolean | undefined): this; /** * Set navigationIndicator to visible or invisible. @@ -750,7 +750,18 @@ export declare interface NavDestinationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - enableNavigationIndicator(enabled: boolean | undefined): this; + default enableNavigationIndicator(enabled: boolean | undefined): this; + + /** + * Set the attribute modifier of navDestination. + * + * @param { AttributeModifier | AttributeModifier | undefined } modifier + * The attribute modifier of navDestination. + * @returns { NavDestinationAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; } /** diff --git a/api/arkui/component/navigation.static.d.ets b/api/arkui/component/navigation.static.d.ets index 7748d5b68e..f26dd3176d 100644 --- a/api/arkui/component/navigation.static.d.ets +++ b/api/arkui/component/navigation.static.d.ets @@ -25,7 +25,7 @@ import { Resource } from '../../global/resource'; import { TextModifier } from '../../arkui/TextModifier'; import { LengthMetrics } from '../../arkui/Graphics'; import { Callback, BlurStyle, CommonMethod, LayoutSafeAreaType, LayoutSafeAreaEdge, BackgroundEffectOptions, - BackgroundBlurStyleOptions, PixelMap, Bindable } from './common'; + BackgroundBlurStyleOptions, PixelMap, Bindable, AttributeModifier } from './common'; import { CustomBuilder, PageMapBuilder } from './builder'; import { Length, ResourceStr, ResourceColor, Dimension, VoidCallback } from './units'; import { TitleHeight } from './enums'; @@ -1297,7 +1297,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - navBarWidth(value: Length | Bindable | undefined): this; + default navBarWidth(value: Length | Bindable | undefined): this; /** * Sets the position of navigation bar. @@ -1307,7 +1307,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - navBarPosition(value: NavBarPosition | undefined): this; + default navBarPosition(value: NavBarPosition | undefined): this; /** * Sets the minimum width and the maximum width of navigation bar. @@ -1317,7 +1317,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - navBarWidthRange(value: [ + default navBarWidthRange(value: [ Dimension, Dimension ] | undefined): this; @@ -1330,7 +1330,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - minContentWidth(value: Dimension | undefined): this; + default minContentWidth(value: Dimension | undefined): this; /** * Sets the mode of navigation. @@ -1340,7 +1340,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - mode(value: NavigationMode | undefined): this; + default mode(value: NavigationMode | undefined): this; /** * Sets the back button icon. @@ -1350,7 +1350,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - backButtonIcon(value: string | PixelMap | Resource | SymbolGlyphModifier | undefined): this; + default backButtonIcon(value: string | PixelMap | Resource | SymbolGlyphModifier | undefined): this; /** * Sets the back button icon and accessibility broadcast content. @@ -1361,7 +1361,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - backButtonIcon(icon: string | PixelMap | Resource | SymbolGlyphModifier | undefined, accessibilityText?: ResourceStr | undefined): this; + default backButtonIcon(icon: string | PixelMap | Resource | SymbolGlyphModifier | undefined, accessibilityText?: ResourceStr | undefined): this; /** * Hide the NavBar, which includes title bar, the child of Navigation and tool bar. Supported in all mode. @@ -1372,7 +1372,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideNavBar(value: boolean | undefined): this; + default hideNavBar(value: boolean | undefined): this; /** * Navigation title @@ -1383,7 +1383,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - title(value: ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined, options?: NavigationTitleOptions | undefined): this; + default title(value: ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined, options?: NavigationTitleOptions | undefined): this; /** * Hide navigation title bar @@ -1393,7 +1393,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideTitleBar(value: boolean | undefined): this; + default hideTitleBar(value: boolean | undefined): this; /** * Hide navigation title bar @@ -1404,7 +1404,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideTitleBar(hide: boolean | undefined, animated: boolean | undefined): this; + default hideTitleBar(hide: boolean | undefined, animated: boolean | undefined): this; /** * Hide navigation back button @@ -1414,7 +1414,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideBackButton(value: boolean | undefined): this; + default hideBackButton(value: boolean | undefined): this; /** * Navigation title mode @@ -1424,7 +1424,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - titleMode(value: NavigationTitleMode | undefined): this; + default titleMode(value: NavigationTitleMode | undefined): this; /** * Navigation title bar's menus @@ -1434,7 +1434,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - menus(value: Array | CustomBuilder | undefined): this; + default menus(value: Array | CustomBuilder | undefined): this; /** * Navigation title bar's menus @@ -1445,7 +1445,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - menus(items: Array | CustomBuilder | undefined, options?: NavigationMenuOptions | undefined): this; + default menus(items: Array | CustomBuilder | undefined, options?: NavigationMenuOptions | undefined): this; /** * Configure toolbar with default style parameter or custom parameter. @@ -1456,7 +1456,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full `* @since 20 */ - toolbarConfiguration(value: Array | CustomBuilder | undefined, options?: NavigationToolbarOptions | undefined): this; + default toolbarConfiguration(value: Array | CustomBuilder | undefined, options?: NavigationToolbarOptions | undefined): this; /** * Hide tool bar @@ -1466,7 +1466,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideToolBar(value: boolean | undefined): this; + default hideToolBar(value: boolean | undefined): this; /** * Hide tool bar @@ -1477,7 +1477,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - hideToolBar(hide: boolean | undefined, animated: boolean | undefined): this; + default hideToolBar(hide: boolean | undefined, animated: boolean | undefined): this; /** * Enable tool bar adaptation @@ -1487,7 +1487,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - enableToolBarAdaptation(enable: boolean | undefined): this; + default enableToolBarAdaptation(enable: boolean | undefined): this; /** * Trigger callback when title mode change finished at free mode. @@ -1497,7 +1497,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onTitleModeChange(callback: ((titleMode: NavigationTitleMode) => void) | undefined): this; + default onTitleModeChange(callback: ((titleMode: NavigationTitleMode) => void) | undefined): this; /** * Trigger callback when the visibility of navigation bar change. @@ -1507,7 +1507,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onNavBarStateChange(callback: ((isVisible: boolean) => void) | undefined): this; + default onNavBarStateChange(callback: ((isVisible: boolean) => void) | undefined): this; /** * Trigger callback when navigation mode changes. @@ -1517,7 +1517,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onNavigationModeChange(callback: ((mode: NavigationMode) => void) | undefined): this; + default onNavigationModeChange(callback: ((mode: NavigationMode) => void) | undefined): this; /** * Set builder for user-defined NavDestination component. @@ -1527,7 +1527,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - navDestination(builder: PageMapBuilder | undefined): this; + default navDestination(builder: PageMapBuilder | undefined): this; /** * Set custom navigation content transition animation. @@ -1537,7 +1537,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - customNavContentTransition(delegate: ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined): this; + default customNavContentTransition(delegate: ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined) | undefined): this; /** * Set navigation content expand types and edges. @@ -1548,7 +1548,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - ignoreLayoutSafeArea(types?: Array | undefined, edges?: Array | undefined): this; + default ignoreLayoutSafeArea(types?: Array | undefined, edges?: Array | undefined): this; /** * Set the style of system bar @@ -1558,7 +1558,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - systemBarStyle(style: SystemBarStyle | undefined): this; + default systemBarStyle(style: SystemBarStyle | undefined): this; /** * Set the Navigation can be restored after the application is terminated. @@ -1569,7 +1569,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - recoverable(recoverable: boolean | undefined): this; + default recoverable(recoverable: boolean | undefined): this; /** * Enable dragbar @@ -1579,7 +1579,7 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - enableDragBar(isEnabled: boolean | undefined): this; + default enableDragBar(isEnabled: boolean | undefined): this; /** * whether to enable modeChangeAnimation @@ -1589,7 +1589,18 @@ export declare interface NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - enableModeChangeAnimation(isEnabled: boolean | undefined): this; + default enableModeChangeAnimation(isEnabled: boolean | undefined): this; + + /** + * Set the attribute modifier of navigation. + * + * @param { AttributeModifier | AttributeModifier | undefined } modifier + * The attribute modifier of navigation. + * @returns { NavigationAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; } /** diff --git a/api/arkui/component/sidebar.static.d.ets b/api/arkui/component/sidebar.static.d.ets index 06f39d7e15..fb327076e0 100644 --- a/api/arkui/component/sidebar.static.d.ets +++ b/api/arkui/component/sidebar.static.d.ets @@ -22,7 +22,7 @@ import { Resource } from '../../global/resource'; import { Length, ResourceColor, Dimension } from './units'; -import { CommonMethod, PixelMap, Bindable } from './common'; +import { CommonMethod, PixelMap, Bindable, AttributeModifier } from './common'; import { memo, ComponentBuilder } from './../stateManagement/runtime'; /** @@ -243,7 +243,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - showSideBar(value: boolean | Bindable | undefined): this; + default showSideBar(value: boolean | Bindable | undefined): this; /** * Callback controlButton function when setting the style of button @@ -253,7 +253,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - controlButton(value: ButtonStyle | undefined): this; + default controlButton(value: ButtonStyle | undefined): this; /** * Callback showControlButton function when setting the status of button @@ -263,7 +263,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - showControlButton(value: boolean | undefined): this; + default showControlButton(value: boolean | undefined): this; /** * Trigger callback when sidebar style of showing change finished. @@ -273,7 +273,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onChange(callback: ((value: boolean) => void) | undefined): this; + default onChange(callback: ((value: boolean) => void) | undefined): this; /** * Sets the length of sidebar. @@ -284,7 +284,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - sideBarWidth(value: Length | Bindable | undefined): this; + default sideBarWidth(value: Length | Bindable | undefined): this; /** * Sets the min length of sidebar. @@ -295,7 +295,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - minSideBarWidth(value: number | undefined): this; + default minSideBarWidth(value: number | undefined): this; /** * Sets the max length of sidebar. @@ -306,7 +306,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - maxSideBarWidth(value: number | undefined): this; + default maxSideBarWidth(value: number | undefined): this; /** * Sets the min length of sidebar. @@ -317,7 +317,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - minSideBarWidth(value: Length | undefined): this; + default minSideBarWidth(value: Length | undefined): this; /** * Sets the max length of sidebar. @@ -328,7 +328,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - maxSideBarWidth(value: Length | undefined): this; + default maxSideBarWidth(value: Length | undefined): this; /** * Sets whether to automatically hide when drag sidebar width is less than the minimum width. @@ -339,7 +339,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - autoHide(value: boolean | undefined): this; + default autoHide(value: boolean | undefined): this; /** * Called when determining the location of the sidebar. @@ -350,7 +350,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - sideBarPosition(value: SideBarPosition | undefined): this; + default sideBarPosition(value: SideBarPosition | undefined): this; /** * Set divider style for sideBarContainer @@ -360,7 +360,7 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - divider(value: DividerStyle | null | undefined): this; + default divider(value: DividerStyle | null | undefined): this; /** * Sets the min length of content. @@ -371,7 +371,18 @@ export declare interface SideBarContainerAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - minContentWidth(value: Dimension | undefined): this; + default minContentWidth(value: Dimension | undefined): this; + + /** + * Set the attribute modifier of sidebar. + * + * @param { AttributeModifier | AttributeModifier | undefined } modifier + * The attribute modifier of sidebar. + * @returns { SideBarContainerAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; } @memo diff --git a/api/arkui/component/stepper.static.d.ets b/api/arkui/component/stepper.static.d.ets index 4f8a77239c..afffbb5a30 100644 --- a/api/arkui/component/stepper.static.d.ets +++ b/api/arkui/component/stepper.static.d.ets @@ -20,7 +20,7 @@ * @arkts 1.2 */ -import { Bindable, CommonMethod } from './common'; +import { Bindable, CommonMethod, AttributeModifier } from './common'; import { memo, ComponentBuilder } from './../stateManagement/runtime'; /** @@ -58,7 +58,7 @@ export declare interface StepperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onFinish(callback: (() => void) | undefined): this; + default onFinish(callback: (() => void) | undefined): this; /** * Callback when the skip label is clicked. @@ -68,7 +68,7 @@ export declare interface StepperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onSkip(callback: (() => void) | undefined): this; + default onSkip(callback: (() => void) | undefined): this; /** * Callback when the change label is clicked. @@ -78,7 +78,7 @@ export declare interface StepperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onChange(callback: ((prevIndex: number, index: number) => void) | undefined): this; + default onChange(callback: ((prevIndex: number, index: number) => void) | undefined): this; /** * Callback when the next label is clicked. @@ -88,7 +88,7 @@ export declare interface StepperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onNext(callback: ((index: number, pendingIndex: number) => void) | undefined): this; + default onNext(callback: ((index: number, pendingIndex: number) => void) | undefined): this; /** * Callback when the previous label is clicked. @@ -98,7 +98,18 @@ export declare interface StepperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onPrevious(callback: ((index: number, pendingIndex: number) => void) | undefined): this; + default onPrevious(callback: ((index: number, pendingIndex: number) => void) | undefined): this; + + /** + * Set the attribute modifier of stepper. + * + * @param { AttributeModifier | AttributeModifier | undefined } modifier + * The attribute modifier of stepper. + * @returns { StepperAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; } @memo diff --git a/api/arkui/component/stepperItem.static.d.ets b/api/arkui/component/stepperItem.static.d.ets index ff159878f7..962b43c456 100644 --- a/api/arkui/component/stepperItem.static.d.ets +++ b/api/arkui/component/stepperItem.static.d.ets @@ -20,7 +20,7 @@ * @arkts 1.2 */ -import { CommonMethod } from './common'; +import { CommonMethod, AttributeModifier } from './common'; import { memo, ComponentBuilder } from './../stateManagement/runtime'; /** @@ -81,7 +81,7 @@ export declare interface StepperItemAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - prevLabel(value: string | undefined): this; + default prevLabel(value: string | undefined): this; /** * Called when the value of stepperItem nextLabel is set @@ -91,7 +91,7 @@ export declare interface StepperItemAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - nextLabel(value: string | undefined): this; + default nextLabel(value: string | undefined): this; /** * Called when the value of stepperItem status is set @@ -101,7 +101,18 @@ export declare interface StepperItemAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - status(value?: ItemState | undefined): this; + default status(value?: ItemState | undefined): this; + + /** + * Set the attribute modifier of stepperItem. + * + * @param { AttributeModifier | AttributeModifier | undefined } modifier + * The attribute modifier of stepperItem. + * @returns { StepperItemAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; } @memo diff --git a/api/arkui/component/swiper.static.d.ets b/api/arkui/component/swiper.static.d.ets index 539780d0eb..d0994d8332 100644 --- a/api/arkui/component/swiper.static.d.ets +++ b/api/arkui/component/swiper.static.d.ets @@ -21,7 +21,7 @@ */ import { IndicatorComponentController } from './indicatorcomponent'; -import { CommonMethod, Callback, ICurve, Optional, Bindable } from './common'; +import { CommonMethod, Callback, ICurve, Optional, Bindable, AttributeModifier } from './common'; import { EdgeEffect, Curve, PageFlipMode } from './enums'; import { Length, LengthMetrics, VoidCallback, ResourceColor, VP, Font } from './units'; import { memo, ComponentBuilder } from './../stateManagement/runtime'; @@ -624,7 +624,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - index(value: number | Bindable | undefined): this; + default index(value: number | Bindable | undefined): this; /** * Set whether the subcomponent plays automatically. @@ -635,7 +635,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - autoPlay(autoPlay: boolean | undefined, options: AutoPlayOptions | undefined): this; + default autoPlay(autoPlay: boolean | undefined, options: AutoPlayOptions | undefined): this; /** * Called when the time interval for automatic playback is set. @@ -645,7 +645,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - interval(value: number | undefined): this; + default interval(value: number | undefined): this; /** * Use indicator component controller. @@ -656,7 +656,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - indicator(indicator: IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined): this; + default indicator(indicator: IndicatorComponentController | DotIndicator | DigitIndicator | boolean | undefined): this; /** * Set arrow is enabled, or set the arrow style. @@ -667,7 +667,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - displayArrow(value: ArrowStyle | boolean | undefined, isHoverShow?: boolean | undefined): this; + default displayArrow(value: ArrowStyle | boolean | undefined, isHoverShow?: boolean | undefined): this; /** * Called when setting whether to turn on cyclic sliding. @@ -677,7 +677,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - loop(value: boolean | undefined): this; + default loop(value: boolean | undefined): this; /** * Called when the animation duration of the switch is set. @@ -687,7 +687,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - duration(value: number | undefined): this; + default duration(value: number | undefined): this; /** * Called when setting whether to slide vertically. @@ -697,7 +697,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - vertical(value: boolean | undefined): this; + default vertical(value: boolean | undefined): this; /** * Sets the space between child components. @@ -707,7 +707,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - itemSpace(value: number | string | undefined): this; + default itemSpace(value: number | string | undefined): this; /** * Called when setting the size of the swiper container on the spindle. @@ -717,7 +717,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - displayMode(value: SwiperDisplayMode | undefined): this; + default displayMode(value: SwiperDisplayMode | undefined): this; /** * Sets the number of child components to be preloaded(cached). @@ -727,7 +727,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - cachedCount(value: number | undefined): this; + default cachedCount(value: number | undefined): this; /** * Sets the number of child components to be preloaded(cached). @@ -738,7 +738,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - cachedCount(count: number | undefined, isShown: boolean | undefined): this; + default cachedCount(count: number | undefined, isShown: boolean | undefined): this; /** * Sets the number of elements to display per page. @@ -756,7 +756,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - displayCount(value: number | string | SwiperAutoFill | undefined, swipeByGroup?: boolean | undefined): this; + default displayCount(value: number | string | SwiperAutoFill | undefined, swipeByGroup?: boolean | undefined): this; /** * Invoked when setting the sliding effect @@ -766,7 +766,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - effectMode(value: EdgeEffect | undefined): this; + default effectMode(value: EdgeEffect | undefined): this; /** * Sets whether to disable the swipe feature @@ -776,7 +776,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - disableSwipe(value: boolean | undefined): this; + default disableSwipe(value: boolean | undefined): this; /** * Sets the animation curve @@ -788,7 +788,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - curve(value: Curve | string | ICurve | undefined): this; + default curve(value: Curve | string | ICurve | undefined): this; /** * Called when the index value changes. @@ -798,7 +798,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onChange(event: Callback | undefined): this; + default onChange(event: Callback | undefined): this; /** * Called when a new index becomes selected. Animation is not necessarily complete. @@ -808,7 +808,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onSelected(event: Callback | undefined): this; + default onSelected(event: Callback | undefined): this; /** * The previous margin which can be used to expose a small portion of the previous item. @@ -820,7 +820,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - prevMargin(value: Length | undefined, ignoreBlank?: boolean | undefined): this; + default prevMargin(value: Length | undefined, ignoreBlank?: boolean | undefined): this; /** * The next margin which can be used to expose a small portion of the latter item. @@ -832,7 +832,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - nextMargin(value: Length | undefined, ignoreBlank?: boolean | undefined): this; + default nextMargin(value: Length | undefined, ignoreBlank?: boolean | undefined): this; /** * Called when a new index becomes unselected. Animation is not necessarily complete. @@ -842,7 +842,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onUnselected(event: Callback | undefined): this; + default onUnselected(event: Callback | undefined): this; /** * Called when the swiper animation start. @@ -852,7 +852,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onAnimationStart(event: OnSwiperAnimationStartCallback | undefined): this; + default onAnimationStart(event: OnSwiperAnimationStartCallback | undefined): this; /** * Called when the swiper animation end. @@ -862,7 +862,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onAnimationEnd(event: OnSwiperAnimationEndCallback | undefined): this; + default onAnimationEnd(event: OnSwiperAnimationEndCallback | undefined): this; /** * Called when the swiper swipe with the gesture. @@ -872,7 +872,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onGestureSwipe(event: OnSwiperGestureSwipeCallback | undefined): this; + default onGestureSwipe(event: OnSwiperGestureSwipeCallback | undefined): this; /** * Called to setting the nested scroll mode. @@ -882,7 +882,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - nestedScroll(value: SwiperNestedScrollMode | undefined): this; + default nestedScroll(value: SwiperNestedScrollMode | undefined): this; /** * Custom swiper content transition animation. @@ -892,7 +892,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - customContentTransition(transition: SwiperContentAnimatedTransition | undefined): this; + default customContentTransition(transition: SwiperContentAnimatedTransition | undefined): this; /** * Called when the swiper content did scroll. @@ -906,7 +906,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onContentDidScroll(handler: ContentDidScrollCallback | undefined): this; + default onContentDidScroll(handler: ContentDidScrollCallback | undefined): this; /** * Setting whether the indicator is interactive. @@ -916,7 +916,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - indicatorInteractive(value: boolean | undefined): this; + default indicatorInteractive(value: boolean | undefined): this; /** * Setting page flip mode on mouse wheel event. @@ -926,7 +926,7 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - pageFlipMode(mode: PageFlipMode | undefined): this; + default pageFlipMode(mode: PageFlipMode | undefined): this; /** * Called when the swiper content will scroll. @@ -936,7 +936,18 @@ export declare interface SwiperAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onContentWillScroll(handler: ContentWillScrollCallback | undefined): this; + default onContentWillScroll(handler: ContentWillScrollCallback | undefined): this; + + /** + * Set the attribute modifier of swiper. + * + * @param { AttributeModifier | AttributeModifier | undefined } modifier + * The attribute modifier of swiper. + * @returns { SwiperAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; } /** -- Gitee