diff --git a/api/@internal/component/ets/tab_content.d.ts b/api/@internal/component/ets/tab_content.d.ts index 56eb3f714ad4c8d34039f841e950dbc7940aff3f..7b3c57cfeaab6808bf748a4051f54d799818e16c 100644 --- a/api/@internal/component/ets/tab_content.d.ts +++ b/api/@internal/component/ets/tab_content.d.ts @@ -386,6 +386,7 @@ interface BoardStyle { * Define the border radius of the board * * @type { ?Length } + * @default 8.0vp * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -465,6 +466,7 @@ declare interface LabelStyle { * Minimum font size of the label text. * * @type { ?(number | ResourceStr) } + * @default 0.0fp * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -484,6 +486,7 @@ declare interface LabelStyle { * Maximum font size of the label text. * * @type { ?(number | ResourceStr) } + * @default 0.0fp * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -523,6 +526,8 @@ declare interface LabelStyle { * Font of the label text. * * @type { ?Font } + * When setting the tabBar to BottomTabBarStyle, the default font size is 10.0fp. + * When setting the tabBar to SubTabBarStyle, the default font size is 16.0fp. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -679,6 +684,7 @@ declare interface TabBarIconStyle { * The icon color of the selected tab bar. * * @type { ?ResourceColor } + * @default #FF007DFF * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -691,6 +697,7 @@ declare interface TabBarIconStyle { * The icon color of the unselected tab bar. * * @type { ?ResourceColor } + * @default #33182431 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -1086,7 +1093,8 @@ declare class SubTabBarStyle { *
When the parameter is of the Dimension type, the value applies to all sides. *

* - * @param { Padding | Dimension } value - indicates the padding of the sub tab bar + * @param { Padding | Dimension } value - indicates the padding of the sub tab bar, default value: + * left: 8.0vp, right: 8.0vp, top: 17.0vp, bottom: 18.0vp. * @returns { SubTabBarStyle } the style of the sub tab bar * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -1103,7 +1111,9 @@ declare class SubTabBarStyle { *
This API supports mirroring but does not support percentage-based settings. *

* - * @param { LocalizedPadding } padding - indicates the padding of the sub tab bar + * @param { LocalizedPadding } padding - indicates the padding of the sub tab bar, default value: + * start: LengthMetircs.vp(8), end: LengthMetircs.vp(8), + * top: LengthMetircs.vp(17), bottom: LengthMetircs.vp(18). * @returns { SubTabBarStyle } the style of the sub tab bar * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform diff --git a/api/@internal/component/ets/tabs.d.ts b/api/@internal/component/ets/tabs.d.ts index 70585576858fd5220485e98ada405a0238bc1f26..d558b75bac5b5aad31f2f7ee9e62939da2015c23 100644 --- a/api/@internal/component/ets/tabs.d.ts +++ b/api/@internal/component/ets/tabs.d.ts @@ -448,7 +448,7 @@ declare class TabsController { /** * Called when need to preload specified tab content. * - * @param { Optional> } indices - Indices of tab content to be preloaded. + * @param { Optional> } indices - Indices of tab content to be preloaded, default to an empty array. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 401 - Parameter invalid. Possible causes: *
1. The parameter type is not Array. @@ -477,7 +477,7 @@ declare class TabsController { /** * Set tab bar opacity. * - * @param { number } opacity - opacity + * @param { number } opacity - opacity, default to 1.0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -517,6 +517,7 @@ declare interface TabsOptions { * Set the tab location for Tabs. * * @type { ?BarPosition } + * @default BarPosition.Start * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -544,6 +545,7 @@ declare interface TabsOptions { * Set the index of the currently displayed tab. * * @type { ?number } + * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -1441,7 +1443,9 @@ declare class TabsAttribute extends CommonMethod { /** * Called when the animation duration of the bar graph is set. * - * @param { number } value + * @param { number } value - default value: + * When this property is not set or set to null, the default value is 0. + * When set to a value less than 0 or undefined, the default value is 300. * @returns { TabsAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -1451,7 +1455,9 @@ declare class TabsAttribute extends CommonMethod { * Sets the length of time required to complete the tab switching animation, * which is initiated by clicking a specific tab or by calling the changeIndex API of TabsController. * - * @param { number } value + * @param { number } value - default value: + * When this property is not set or set to null, the default value is 0. + * When set to a value less than 0 or undefined, the default value is 300. * @returns { TabsAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -1983,8 +1989,8 @@ declare class TabsAttribute extends CommonMethod { /** * Sets the maximum number of child components to be cached. * - * @param { number } count - the maximum number of child components to be cached. - * @param { TabsCacheMode } mode - the mode of caching child components. + * @param { number } count - the maximum number of child components to be cached, default to 0. + * @param { TabsCacheMode } mode - the mode of caching child components, default to TabsCacheMode.CACHE_BOTH_SIDE. * @returns { TabsAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform