1/* 2 * Copyright (c) 2021-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 * Defines the options of Flex. 18 * @since 7 19 */ 20/** 21 * Defines the options of Flex. 22 * @form 23 * @since 9 24 */ 25declare interface FlexOptions { 26 /** 27 * Sets the horizontal layout of elements. 28 * @since 7 29 */ 30 /** 31 * Sets the horizontal layout of elements. 32 * @form 33 * @since 9 34 */ 35 direction?: FlexDirection; 36 37 /** 38 * Whether the Flex container is a single row/column arrangement or a multi-row/column arrangement. 39 * @since 7 40 */ 41 /** 42 * Whether the Flex container is a single row/column arrangement or a multi-row/column arrangement. 43 * @form 44 * @since 9 45 */ 46 wrap?: FlexWrap; 47 48 /** 49 * The alignment format of the subassembly on the Flex container spindle. 50 * @since 7 51 */ 52 /** 53 * The alignment format of the subassembly on the Flex container spindle. 54 * @form 55 * @since 9 56 */ 57 justifyContent?: FlexAlign; 58 59 /** 60 * Alignment Format for Subassembly on Flex Container Cross Axis. 61 * @since 7 62 */ 63 /** 64 * Alignment Format for Subassembly on Flex Container Cross Axis. 65 * @form 66 * @since 9 67 */ 68 alignItems?: ItemAlign; 69 70 /** 71 * The alignment of multiple lines of content when there is extra space in the cross axis. 72 * @since 7 73 */ 74 /** 75 * The alignment of multiple lines of content when there is extra space in the cross axis. 76 * @form 77 * @since 9 78 */ 79 alignContent?: FlexAlign; 80} 81 82/** 83 * Provides a monthly view component to display information such as date, shift break, and schedule. 84 * @since 7 85 */ 86/** 87 * Provides a monthly view component to display information such as date, shift break, and schedule. 88 * @form 89 * @since 9 90 */ 91interface FlexInterface { 92 /** 93 * Defines the constructor of Flex. 94 * @since 7 95 */ 96 /** 97 * Defines the constructor of Flex. 98 * @form 99 * @since 9 100 */ 101 (value?: FlexOptions): FlexAttribute; 102} 103 104/** 105 * Defines the Flex attribute functions. 106 * @since 7 107 */ 108/** 109 * Defines the Flex attribute functions. 110 * @form 111 * @since 9 112 */ 113declare class FlexAttribute extends CommonMethod<FlexAttribute> {} 114 115/** 116 * Defines Flex Component. 117 * @since 7 118 */ 119/** 120 * Defines Flex Component. 121 * @form 122 * @since 9 123 */ 124declare const Flex: FlexInterface; 125 126/** 127 * Defines Flex Component instance. 128 * @since 7 129 */ 130/** 131 * Defines Flex Component instance. 132 * @form 133 * @since 9 134 */ 135declare const FlexInstance: FlexAttribute; 136