2
* Copyright (c) 2024 Huawei Device Co., Ltd.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
7
* http://www.apache.org/licenses/LICENSE-2.0
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
16
declare enum SelectedMode {
24
borderRadius?: Length;
27
interface IndicatorStyle {
29
color?: ResourceColor;
32
declare class TabBarSymbol {
34
normal: SymbolGlyphModifier;
36
selected?: SymbolGlyphModifier;
39
declare class BottomTabBarStyle {
41
constructor(icon: ResourceStr | TabBarSymbol, text: ResourceStr);
43
id(value: string): BottomTabBarStyle;
45
static of(icon: ResourceStr | TabBarSymbol, text: ResourceStr): BottomTabBarStyle;
47
labelStyle(value: LabelStyle): BottomTabBarStyle;
49
padding(value: Padding | Dimension | LocalizedPadding): BottomTabBarStyle;
52
declare class SubTabBarStyle {
54
constructor(content: ResourceStr);
56
constructor(content: ResourceStr | ComponentContent);
58
static of(content: ResourceStr): SubTabBarStyle;
60
static of(content: ResourceStr | ComponentContent): SubTabBarStyle;
62
indicator(value: IndicatorStyle): SubTabBarStyle;
64
selectedMode(value: SelectedMode): SubTabBarStyle;
66
board(value: BoardStyle): SubTabBarStyle;
68
labelStyle(value: LabelStyle): SubTabBarStyle;
70
padding(value: Padding | Dimension): SubTabBarStyle;
72
padding(padding: LocalizedPadding): SubTabBarStyle;
74
id(value: string): SubTabBarStyle;
77
declare interface TabContentInterface {
78
(): TabContentAttribute
81
declare class TabContentAttribute extends CommonMethod<TabContentAttribute> {
83
tabBar(value: SubTabBarStyle): TabContentAttribute;
84
tabBar(value: SubTabBarStyle | BottomTabBarStyle): TabContentAttribute;
87
declare const TabContent: TabContentInterface