• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023-2023 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
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
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.
14 */
15
16/**
17 * @file
18 * @kit ArkUI
19 */
20
21
22
23
24
25/**
26 * Declare SplitLayout.The SplitLayout is used for upper and lower graphic layouts.
27 * @syscap SystemCapability.ArkUI.ArkUI.Full
28 * @since 10
29 */
30/**
31 * Declare SplitLayout.The SplitLayout is used for upper and lower graphic layouts.
32 * @syscap SystemCapability.ArkUI.ArkUI.Full
33 * @atomicservice
34 * @since 11
35 */
36@Component
37export declare struct SplitLayout {
38  /**
39   * Container in the user-defined splitlayout display area.
40   * @type { container: () => void }.
41   * @syscap SystemCapability.ArkUI.ArkUI.Full
42   * @since 10
43   */
44  /**
45   * Container in the user-defined splitlayout display area.
46   * @type { container: () => void }.
47   * @syscap SystemCapability.ArkUI.ArkUI.Full
48   * @atomicservice
49   * @since 11
50   */
51    @BuilderParam container: () => void;
52
53  /**
54   * Image in the layout.
55   * @type { ResourceStr }.
56   * @syscap SystemCapability.ArkUI.ArkUI.Full
57   * @since 10
58   */
59  /**
60   * Image in the layout.
61   * @type { ResourceStr }.
62   * @syscap SystemCapability.ArkUI.ArkUI.Full
63   * @atomicservice
64   * @since 11
65   */
66  @State mainImage: ResourceStr;
67
68  /**
69   * Title text in the layout.
70   * @type { ResourceStr }.
71   * @syscap SystemCapability.ArkUI.ArkUI.Full
72   * @since 10
73   */
74  /**
75   * Title text in the layout.
76   * @type { ResourceStr }.
77   * @syscap SystemCapability.ArkUI.ArkUI.Full
78   * @atomicservice
79   * @since 11
80   */
81  @Prop primaryText: ResourceStr;
82
83  /**
84   * Description text in the layout.
85   * @type { ?ResourceStr }.
86   * @syscap SystemCapability.ArkUI.ArkUI.Full
87   * @since 10
88   */
89  /**
90   * Description text in the layout.
91   * @type { ?ResourceStr }.
92   * @syscap SystemCapability.ArkUI.ArkUI.Full
93   * @atomicservice
94   * @since 11
95   */
96  @Prop secondaryText?: ResourceStr;
97
98  /**
99   * Auxiliary text in the layout.
100   * @type { ?ResourceStr }.
101   * @syscap SystemCapability.ArkUI.ArkUI.Full
102   * @since 10
103   */
104  /**
105   * Auxiliary text in the layout.
106   * @type { ?ResourceStr }.
107   * @syscap SystemCapability.ArkUI.ArkUI.Full
108   * @atomicservice
109   * @since 11
110   */
111  @Prop tertiaryText?: ResourceStr;
112}