1/* 2 * Copyright (c) 2025 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/*** if arkts 1.2 */ 23import { CommonMethod } from './common'; 24import { LengthMetrics } from '../Graphics'; 25/*** endif */ 26 27/** 28 * Defines the lazy vertical grid layout component. 29 * 30 * @interface LazyVGridLayoutInterface 31 * @syscap SystemCapability.ArkUI.ArkUI.Full 32 * @crossplatform 33 * @atomicservice 34 * @since arkts {'1.1':'19','1.2':'20'} 35 * @arkts 1.1&1.2 36 */ 37interface LazyVGridLayoutInterface { 38 /** 39 * Construct the lazy vertical grid attribute. 40 * 41 * @returns { LazyVGridLayoutAttribute } 42 * @syscap SystemCapability.ArkUI.ArkUI.Full 43 * @crossplatform 44 * @atomicservice 45 * @since arkts {'1.1':'19','1.2':'20'} 46 * @arkts 1.1&1.2 47 */ 48 (): LazyVGridLayoutAttribute; 49} 50 51/** 52 * Defines the lazy grid layout attribute. 53 * 54 * @extends CommonMethod<T> 55 * @syscap SystemCapability.ArkUI.ArkUI.Full 56 * @crossplatform 57 * @atomicservice 58 * @since arkts {'1.1':'19','1.2':'20'} 59 * @arkts 1.1&1.2 60 */ 61declare class LazyGridLayoutAttribute<T> extends CommonMethod<T> { 62 /** 63 * The spacing between rows. 64 * 65 * @param { LengthMetrics } value 66 * @returns { T } 67 * @syscap SystemCapability.ArkUI.ArkUI.Full 68 * @crossplatform 69 * @atomicservice 70 * @since arkts {'1.1':'19','1.2':'20'} 71 * @arkts 1.1&1.2 72 */ 73 rowsGap(value: LengthMetrics): T; 74 75 /** 76 * The spacing between columns. 77 * 78 * @param { LengthMetrics } value 79 * @returns { T } 80 * @syscap SystemCapability.ArkUI.ArkUI.Full 81 * @crossplatform 82 * @atomicservice 83 * @since arkts {'1.1':'19','1.2':'20'} 84 * @arkts 1.1&1.2 85 */ 86 columnsGap(value: LengthMetrics): T; 87} 88 89/** 90 * Defines the lazy vertical grid layout attribute. 91 * 92 * @extends LazyGridLayoutAttribute<LazyVGridLayoutAttribute> 93 * @syscap SystemCapability.ArkUI.ArkUI.Full 94 * @crossplatform 95 * @atomicservice 96 * @since arkts {'1.1':'19','1.2':'20'} 97 * @arkts 1.1&1.2 98 */ 99declare class LazyVGridLayoutAttribute extends LazyGridLayoutAttribute<LazyVGridLayoutAttribute> { 100 /** 101 * This parameter specifies the number of columns in the current grid layout. 102 * 103 * @param { string } value 104 * @returns { LazyVGridLayoutAttribute } 105 * @syscap SystemCapability.ArkUI.ArkUI.Full 106 * @crossplatform 107 * @atomicservice 108 * @since arkts {'1.1':'19','1.2':'20'} 109 * @arkts 1.1&1.2 110 */ 111 columnsTemplate(value: string): LazyVGridLayoutAttribute; 112} 113 114/** 115 * Defines the lazy vertical grid layout component. 116 * 117 * @syscap SystemCapability.ArkUI.ArkUI.Full 118 * @crossplatform 119 * @atomicservice 120 * @since 19 121 */ 122declare const LazyVGridLayout: LazyVGridLayoutInterface; 123 124/** 125 * Defines the lazy vertical grid layout component instance. 126 * 127 * @syscap SystemCapability.ArkUI.ArkUI.Full 128 * @crossplatform 129 * @atomicservice 130 * @since 19 131 */ 132declare const LazyVGridLayoutInstance: LazyVGridLayoutAttribute; 133