• 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/// <reference path="../component/units.d.ts" />
17
18import { ResourceStr } from 'GlobalResource';
19
20/**
21 * Declare SplitLayout.The SplitLayout is used for upper and lower graphic layouts.
22 * @syscap SystemCapability.ArkUI.ArkUI.Full
23 * @since 10
24 */
25@Component
26export declare struct SplitLayout {
27  /**
28   * Container in the user-defined splitlayout display area.
29   * @syscap SystemCapability.ArkUI.ArkUI.Full
30   * @since 10
31   */
32    @BuilderParam container: () => void;
33
34  /**
35   * Image in the layout.
36   * @type { ResourceStr }.
37   * @syscap SystemCapability.ArkUI.ArkUI.Full
38   * @since 10
39   */
40  @State mainImage: ResourceStr;
41
42  /**
43   * Title text in the layout.
44   * @type { ResourceStr }.
45   * @syscap SystemCapability.ArkUI.ArkUI.Full
46   * @since 10
47   */
48  @Prop primaryText: ResourceStr;
49
50  /**
51   * Description text in the layout.
52   * @type { ResourceStr }.
53   * @syscap SystemCapability.ArkUI.ArkUI.Full
54   * @since 10
55   */
56  @Prop secondaryText?: ResourceStr;
57
58  /**
59   * Auxiliary text in the layout.
60   * @type { ResourceStr }.
61   * @syscap SystemCapability.ArkUI.ArkUI.Full
62   * @since 10
63   */
64  @Prop tertiaryText?: ResourceStr;
65}