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 * Provides a divider component to separate different content blocks/content elements. 18 * @since 7 19 */ 20/** 21 * Provides a divider component to separate different content blocks/content elements. 22 * @form 23 * @since 9 24 */ 25interface DividerInterface { 26 /** 27 * Return Divider. 28 * @since 7 29 */ 30 /** 31 * Return Divider. 32 * @form 33 * @since 9 34 */ 35 (): DividerAttribute; 36} 37 38/** 39 * Defines the Divider attribute functions. 40 * @since 7 41 */ 42/** 43 * Defines the Divider attribute functions. 44 * @form 45 * @since 9 46 */ 47declare class DividerAttribute extends CommonMethod<DividerAttribute> { 48 /** 49 * Indicates whether to use a horizontal splitter or a vertical splitter. 50 * The options are as follows: false: horizontal splitter; true: vertical splitter. 51 * @since 7 52 */ 53 /** 54 * Indicates whether to use a horizontal splitter or a vertical splitter. 55 * The options are as follows: false: horizontal splitter; true: vertical splitter. 56 * @form 57 * @since 9 58 */ 59 vertical(value: boolean): DividerAttribute; 60 61 /** 62 * Sets the color of the divider line. 63 * @since 7 64 */ 65 /** 66 * Sets the color of the divider line. 67 * @form 68 * @since 9 69 */ 70 color(value: ResourceColor): DividerAttribute; 71 72 /** 73 * Sets the width of the dividing line. 74 * @since 7 75 */ 76 /** 77 * Sets the width of the dividing line. 78 * @form 79 * @since 9 80 */ 81 strokeWidth(value: number | string): DividerAttribute; 82 83 /** 84 * Sets the end style of the split line. The default value is Butt. 85 * @since 7 86 */ 87 /** 88 * Sets the end style of the split line. The default value is Butt. 89 * @form 90 * @since 9 91 */ 92 lineCap(value: LineCapStyle): DividerAttribute; 93} 94 95/** 96 * Defines Divider Component. 97 * @since 7 98 */ 99/** 100 * Defines Divider Component. 101 * @form 102 * @since 9 103 */ 104declare const Divider: DividerInterface; 105 106/** 107 * Defines Divider Component instance. 108 * @since 7 109 */ 110/** 111 * Defines Divider Component instance. 112 * @form 113 * @since 9 114 */ 115declare const DividerInstance: DividerAttribute; 116