1e41f4b71Sopenharmony_ci# ToolBar 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ciThe **Toolbar** component is used to host a set of action options related to the current screen, displayed at the bottom of the screen. It can display five child components. When there are six or more child components, the first four are displayed and the others are moved to the **More** option on the toolbar. 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci> **NOTE** 8e41f4b71Sopenharmony_ci> 9e41f4b71Sopenharmony_ci> This component is supported since API version 10. Updates will be marked with a superscript to indicate their earliest API version. 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci## Modules to Import 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci``` 15e41f4b71Sopenharmony_ciimport { ToolBar, ToolBarOptions, toolBarModifier, ItemState } from '@kit.ArkUI' 16e41f4b71Sopenharmony_ci``` 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci## Child Components 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ciNot supported 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci## Attributes 24e41f4b71Sopenharmony_ciThe [universal attributes](ts-universal-attributes-size.md) are supported. 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci## ToolBar 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ciToolbar({toolBarList: ToolBarOptions, activateIndex?: number, controller: TabsController, dividerModifier: DividerModifier, toolBarModifier: ToolBarModifier}) 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci**Decorator**: @Component 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci**Parameters** 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Decorator | Description | 39e41f4b71Sopenharmony_ci|-------------------------------|-----------------------------------------------------------|-----|-------------|------------------------------------------------------------------------------------------------------| 40e41f4b71Sopenharmony_ci| toolBarList | [ToolBarOptions](#toolbaroptions) | Yes | @ObjectLink | Toolbar list. | 41e41f4b71Sopenharmony_ci| activateIndex | number | No | @Prop | Index of the active option.<br>Default value: **-1** | 42e41f4b71Sopenharmony_ci| controller | [TabsController](ts-container-tabs.md#tabscontroller) | Yes | - | Toolbar controller. | 43e41f4b71Sopenharmony_ci| dividerModifier<sup>13+</sup> | [DividerModifier](ts-universal-attributes-attribute-modifier.md) | No | @Prop | Modifier for the toolbar header divider, which can be used to customize the divider's height, color, and other attributes.<br>**Atomic service API**: This API can be used in atomic services since API version 13. | 44e41f4b71Sopenharmony_ci| toolBarModifier<sup>13+</sup> | [ToolBarModifier](#toolbarmodifier13) | No | @Prop | Modifier for the toolbar, which can be used to set the toolbar's height, background color, padding (which only takes effect when there are fewer than five toolbar items), and whether to display the pressed state.<br>**Atomic service API**: This API can be used in atomic services since API version 13.| 45e41f4b71Sopenharmony_ci 46e41f4b71Sopenharmony_ci## ToolBarOptions 47e41f4b71Sopenharmony_ci 48e41f4b71Sopenharmony_ciInherits from **Array<[ToolBarOption](#toolbaroption)>**. 49e41f4b71Sopenharmony_ci 50e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ci## ToolBarOption 53e41f4b71Sopenharmony_ci 54e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 55e41f4b71Sopenharmony_ci|------------------------------------|-----------------------------------------------------------| -------- |--------------------------------------------------------------------------------------------------------------| 56e41f4b71Sopenharmony_ci| content | [ResourceStr](ts-types.md#resourcestr) | Yes| Text of the toolbar option.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 57e41f4b71Sopenharmony_ci| action | () => void | No| Click event of the toolbar option.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 58e41f4b71Sopenharmony_ci| icon | [Resource](ts-types.md#resource) | No| Icon of the toolbar option.<br>If **toolBarSymbolOptions** has input parameters, **icon** is ineffective.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 59e41f4b71Sopenharmony_ci| state | [ItemState](#itemstate) | No| State of the toolbar option.<br>Default value: **ENABLE**<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 60e41f4b71Sopenharmony_ci| iconColor<sup>13+</sup> | [ResourceColor](ts-types.md#resourcecolor) | No| Icon fill color of the toolbar option.<br>Default value: **$r('sys.color.icon_primary')**<br>**Atomic service API**: This API can be used in atomic services since API version 13. | 61e41f4b71Sopenharmony_ci| activatedIconColor<sup>13+</sup> | [ResourceColor](ts-types.md#resourcecolor) | No| Icon fill color of the toolbar option in the activated state.<br>Default value: **$r('sys.color.icon_emphasize')**<br>**Atomic service API**: This API can be used in atomic services since API version 13.| 62e41f4b71Sopenharmony_ci| textColor<sup>13+</sup> | [ResourceColor](ts-types.md#resourcecolor) | No| Font color of the toolbar option.<br>Default value: **$r('sys.color.font_primary')**<br>**Atomic service API**: This API can be used in atomic services since API version 13. | 63e41f4b71Sopenharmony_ci| activatedTextColor<sup>13+</sup> | [ResourceColor](ts-types.md#resourcecolor) | No| Font color of the toolbar option in the activated state.<br>Default value: **$r('sys.color.font_emphasize')**<br>**Atomic service API**: This API can be used in atomic services since API version 13. | 64e41f4b71Sopenharmony_ci| toolBarSymbolOptions<sup>13+</sup> | [ToolBarSymbolGlyphOptions](#toolbarsymbolglyphoptions13) | No| Icon symbol options of the toolbar option.<br>**Atomic service API**: This API can be used in atomic services since API version 13. | 65e41f4b71Sopenharmony_ci 66e41f4b71Sopenharmony_ci## ToolBarModifier<sup>13+</sup> 67e41f4b71Sopenharmony_ciProvides APIs for setting the toolbar's height (**height**), background color (**backgroundColor**), left and right padding (**padding**, which only takes effect when there are fewer than five items), and whether to display the pressed state (**stateEffect**). 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 13. 70e41f4b71Sopenharmony_ci 71e41f4b71Sopenharmony_ci### backgroundColor 72e41f4b71Sopenharmony_ci 73e41f4b71Sopenharmony_cibackgroundColor?(backgroundColor: ResourceColor): ToolBarModifier 74e41f4b71Sopenharmony_ci 75e41f4b71Sopenharmony_ciSets the background color of the toolbar. By overriding this API, you can implement custom drawing for the background color of the toolbar. 76e41f4b71Sopenharmony_ci 77e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 13. 78e41f4b71Sopenharmony_ci 79e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 80e41f4b71Sopenharmony_ci 81e41f4b71Sopenharmony_ci**Parameters** 82e41f4b71Sopenharmony_ci 83e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 84e41f4b71Sopenharmony_ci| ------- | ------------------------------------------------------ | ---- |------------------------------------------------------------------| 85e41f4b71Sopenharmony_ci| backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | Yes | Toolbar background color<br>Default value: **$r('sys.color.ohos_id_color_toolbar_bg')**| 86e41f4b71Sopenharmony_ci 87e41f4b71Sopenharmony_ci### padding 88e41f4b71Sopenharmony_ci 89e41f4b71Sopenharmony_cipadding(padding: LengthMetrics): ToolBarModifier 90e41f4b71Sopenharmony_ci 91e41f4b71Sopenharmony_ciSets the left and right padding of the toolbar. By overriding this API, you can implement custom drawing for the left and right padding of the toolbar. 92e41f4b71Sopenharmony_ci 93e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 13. 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 96e41f4b71Sopenharmony_ci 97e41f4b71Sopenharmony_ci**Parameters** 98e41f4b71Sopenharmony_ci 99e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 100e41f4b71Sopenharmony_ci| ------- |--------| ---- |-------------------------------------------------------------------------------------| 101e41f4b71Sopenharmony_ci| padding | [LengthMetrics](../js-apis-arkui-graphics.md#lengthmetrics12)<sup>12+</sup> | Yes | Left and right padding of the toolbar, which is effective only when there are fewer than five items.<br>By default, the padding is 24 vp when there are fewer than five items and 0 when there are five or more items.| 102e41f4b71Sopenharmony_ci 103e41f4b71Sopenharmony_ci### height 104e41f4b71Sopenharmony_ci 105e41f4b71Sopenharmony_ciheight(height: LengthMetrics): ToolBarModifier 106e41f4b71Sopenharmony_ci 107e41f4b71Sopenharmony_ciSets the height of the toolbar. By overriding this API, you can implement custom drawing for the height of the toolbar, which does not include the height of the divider. 108e41f4b71Sopenharmony_ci 109e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 13. 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 112e41f4b71Sopenharmony_ci 113e41f4b71Sopenharmony_ci**Parameters** 114e41f4b71Sopenharmony_ci 115e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 116e41f4b71Sopenharmony_ci| ------- |---------------------------------| ---- |------------------------------------| 117e41f4b71Sopenharmony_ci| height | [LengthMetrics](../js-apis-arkui-graphics.md#lengthmetrics12)<sup>12+</sup> | Yes | Height of the toolbar.<br>The default height of the toolbar is 56 vp, which does not include the divider.| 118e41f4b71Sopenharmony_ci 119e41f4b71Sopenharmony_ci### stateEffect 120e41f4b71Sopenharmony_ci 121e41f4b71Sopenharmony_cistateEffect(stateEffect: boolean): ToolBarModifier 122e41f4b71Sopenharmony_ci 123e41f4b71Sopenharmony_ciSets whether to display the pressed state effect. 124e41f4b71Sopenharmony_ci 125e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 13. 126e41f4b71Sopenharmony_ci 127e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 128e41f4b71Sopenharmony_ci 129e41f4b71Sopenharmony_ci**Parameters** 130e41f4b71Sopenharmony_ci 131e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 132e41f4b71Sopenharmony_ci| ------- |--------------------------------| ---- |----------------------------------------------------------| 133e41f4b71Sopenharmony_ci| stateEffect | boolean | Yes | Whether to display the pressed state effect on the toolbar.<br>The value **true** means to display the pressed state effect on the toolbar, and **false** means the opposite.<br>Default value: **true**| 134e41f4b71Sopenharmony_ci 135e41f4b71Sopenharmony_ci## ItemState 136e41f4b71Sopenharmony_ci 137e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 138e41f4b71Sopenharmony_ci 139e41f4b71Sopenharmony_ci| Name| Value| Description| 140e41f4b71Sopenharmony_ci| -------- | -------- | -------- | 141e41f4b71Sopenharmony_ci| ENABLE | 1 | The toolbar option is enabled.| 142e41f4b71Sopenharmony_ci| DISABLE | 2 | The toolbar option is disabled.| 143e41f4b71Sopenharmony_ci| ACTIVATE | 3 | The toolbar option is activated.| 144e41f4b71Sopenharmony_ci 145e41f4b71Sopenharmony_ci## ToolBarSymbolGlyphOptions<sup>13+</sup> 146e41f4b71Sopenharmony_ci 147e41f4b71Sopenharmony_ciDefines the icon symbol options. 148e41f4b71Sopenharmony_ci 149e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 13. 150e41f4b71Sopenharmony_ci 151e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 152e41f4b71Sopenharmony_ci 153e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 154e41f4b71Sopenharmony_ci| ------ | ---------- | ---- |------------------------------------------------------------------------------------------| 155e41f4b71Sopenharmony_ci| normal | [SymbolGlyphModifier](ts-universal-attributes-attribute-modifier.md) | No | Icon symbol of the toolbar option in normal state.<br>Default value: **fontColor: $r('sys.color.icon_primary'), fontSize: 24vp** | 156e41f4b71Sopenharmony_ci| activated| [SymbolGlyphModifier](ts-universal-attributes-attribute-modifier.md) | No | Icon symbol of the toolbar option in activated state.<br>Default value: **fontColor: $r('sys.color.icon_emphasize'), fontSize: 24vp**| 157e41f4b71Sopenharmony_ci 158e41f4b71Sopenharmony_ci## Events 159e41f4b71Sopenharmony_ciThe [universal events](ts-universal-events-click.md) are supported. 160e41f4b71Sopenharmony_ci 161e41f4b71Sopenharmony_ci## Example 162e41f4b71Sopenharmony_ci 163e41f4b71Sopenharmony_ci```ts 164e41f4b71Sopenharmony_ciimport { ToolBar, ToolBarOptions, ItemState } from '@kit.ArkUI' 165e41f4b71Sopenharmony_ci 166e41f4b71Sopenharmony_ci@Entry 167e41f4b71Sopenharmony_ci@Component 168e41f4b71Sopenharmony_cistruct Index { 169e41f4b71Sopenharmony_ci @State toolbarList: ToolBarOptions = new ToolBarOptions() 170e41f4b71Sopenharmony_ci aboutToAppear() { 171e41f4b71Sopenharmony_ci this.toolbarList.push({ 172e41f4b71Sopenharmony_ci content:'Cut Super Long Text', 173e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_share'), 174e41f4b71Sopenharmony_ci action: () => { 175e41f4b71Sopenharmony_ci }, 176e41f4b71Sopenharmony_ci }) 177e41f4b71Sopenharmony_ci this.toolbarList.push({ 178e41f4b71Sopenharmony_ci content: 'Copy', 179e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_copy'), 180e41f4b71Sopenharmony_ci action: () => { 181e41f4b71Sopenharmony_ci }, 182e41f4b71Sopenharmony_ci state:ItemState.DISABLE 183e41f4b71Sopenharmony_ci }) 184e41f4b71Sopenharmony_ci this.toolbarList.push({ 185e41f4b71Sopenharmony_ci content: 'Paste', 186e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_paste'), 187e41f4b71Sopenharmony_ci action: () => { 188e41f4b71Sopenharmony_ci }, 189e41f4b71Sopenharmony_ci state:ItemState.ACTIVATE 190e41f4b71Sopenharmony_ci }) 191e41f4b71Sopenharmony_ci this.toolbarList.push({ 192e41f4b71Sopenharmony_ci content:'Select All', 193e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_select_all'), 194e41f4b71Sopenharmony_ci action: () => { 195e41f4b71Sopenharmony_ci }, 196e41f4b71Sopenharmony_ci }) 197e41f4b71Sopenharmony_ci this.toolbarList.push({ 198e41f4b71Sopenharmony_ci content: 'Share', 199e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_share'), 200e41f4b71Sopenharmony_ci action: () => { 201e41f4b71Sopenharmony_ci }, 202e41f4b71Sopenharmony_ci }) 203e41f4b71Sopenharmony_ci this.toolbarList.push({ 204e41f4b71Sopenharmony_ci content: 'Share', 205e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_share'), 206e41f4b71Sopenharmony_ci action: () => { 207e41f4b71Sopenharmony_ci }, 208e41f4b71Sopenharmony_ci }) 209e41f4b71Sopenharmony_ci } 210e41f4b71Sopenharmony_ci build() { 211e41f4b71Sopenharmony_ci Row() { 212e41f4b71Sopenharmony_ci Stack() { 213e41f4b71Sopenharmony_ci Column() { 214e41f4b71Sopenharmony_ci ToolBar({ 215e41f4b71Sopenharmony_ci activateIndex: 2, 216e41f4b71Sopenharmony_ci toolBarList: this.toolbarList, 217e41f4b71Sopenharmony_ci }) 218e41f4b71Sopenharmony_ci } 219e41f4b71Sopenharmony_ci }.align(Alignment.Bottom) 220e41f4b71Sopenharmony_ci .width('100%').height('100%') 221e41f4b71Sopenharmony_ci } 222e41f4b71Sopenharmony_ci } 223e41f4b71Sopenharmony_ci} 224e41f4b71Sopenharmony_ci``` 225e41f4b71Sopenharmony_ci 226e41f4b71Sopenharmony_ci 227e41f4b71Sopenharmony_ci 228e41f4b71Sopenharmony_ci```ts 229e41f4b71Sopenharmony_ciimport { SymbolGlyphModifier, DividerModifier, ToolBar, ToolBarOptions, ToolBarModifier, ItemState, LengthMetrics } from '@kit.ArkUI'; 230e41f4b71Sopenharmony_ci 231e41f4b71Sopenharmony_ci@Entry 232e41f4b71Sopenharmony_ci@Component 233e41f4b71Sopenharmony_cistruct Index { 234e41f4b71Sopenharmony_ci @State toolbarList: ToolBarOptions = new ToolBarOptions(); 235e41f4b71Sopenharmony_ci @State toolBarModifier: ToolBarModifier = 236e41f4b71Sopenharmony_ci new ToolBarModifier().height(LengthMetrics.vp(52)).backgroundColor(Color.Transparent).stateEffect(false); 237e41f4b71Sopenharmony_ci @State dividerModifier: DividerModifier = new DividerModifier().height(0); 238e41f4b71Sopenharmony_ci 239e41f4b71Sopenharmony_ci aboutToAppear() { 240e41f4b71Sopenharmony_ci this.toolbarList.push({ 241e41f4b71Sopenharmony_ci content: 'Long long long long long long long long text', 242e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_share'), 243e41f4b71Sopenharmony_ci action: () => { 244e41f4b71Sopenharmony_ci }, 245e41f4b71Sopenharmony_ci state: ItemState.ACTIVATE, 246e41f4b71Sopenharmony_ci toolBarSymbolOptions: { 247e41f4b71Sopenharmony_ci normal: new SymbolGlyphModifier($r('sys.symbol.ohos_star')).fontColor([Color.Green]), 248e41f4b71Sopenharmony_ci activated: new SymbolGlyphModifier($r('sys.symbol.ohos_star')).fontColor([Color.Red]), 249e41f4b71Sopenharmony_ci }, 250e41f4b71Sopenharmony_ci activatedTextColor: $r('sys.color.font_primary'), 251e41f4b71Sopenharmony_ci }) 252e41f4b71Sopenharmony_ci this.toolbarList.push({ 253e41f4b71Sopenharmony_ci content: 'Copy', 254e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_copy'), 255e41f4b71Sopenharmony_ci action: () => { 256e41f4b71Sopenharmony_ci }, 257e41f4b71Sopenharmony_ci state:ItemState.DISABLE, 258e41f4b71Sopenharmony_ci iconColor: '#ff18cb53', 259e41f4b71Sopenharmony_ci activatedIconColor: '#ffec5d5d', 260e41f4b71Sopenharmony_ci activatedTextColor: '#ffec5d5d', 261e41f4b71Sopenharmony_ci }) 262e41f4b71Sopenharmony_ci this.toolbarList.push({ 263e41f4b71Sopenharmony_ci content: 'Paste', 264e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_paste'), 265e41f4b71Sopenharmony_ci action: () => { 266e41f4b71Sopenharmony_ci }, 267e41f4b71Sopenharmony_ci state:ItemState.ACTIVATE, 268e41f4b71Sopenharmony_ci textColor: '#ff18cb53', 269e41f4b71Sopenharmony_ci }) 270e41f4b71Sopenharmony_ci this.toolbarList.push({ 271e41f4b71Sopenharmony_ci content: 'All', 272e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_select_all'), 273e41f4b71Sopenharmony_ci action: () => { 274e41f4b71Sopenharmony_ci }, 275e41f4b71Sopenharmony_ci state:ItemState.ACTIVATE, 276e41f4b71Sopenharmony_ci }) 277e41f4b71Sopenharmony_ci this.toolbarList.push({ 278e41f4b71Sopenharmony_ci content: 'Share', 279e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_share'), 280e41f4b71Sopenharmony_ci action: () => { 281e41f4b71Sopenharmony_ci }, 282e41f4b71Sopenharmony_ci }) 283e41f4b71Sopenharmony_ci this.toolbarList.push({ 284e41f4b71Sopenharmony_ci content: 'Share', 285e41f4b71Sopenharmony_ci icon: $r('sys.media.ohos_ic_public_share'), 286e41f4b71Sopenharmony_ci action: () => { 287e41f4b71Sopenharmony_ci }, 288e41f4b71Sopenharmony_ci }) 289e41f4b71Sopenharmony_ci } 290e41f4b71Sopenharmony_ci build() { 291e41f4b71Sopenharmony_ci Row() { 292e41f4b71Sopenharmony_ci Stack() { 293e41f4b71Sopenharmony_ci Column() { 294e41f4b71Sopenharmony_ci ToolBar({ 295e41f4b71Sopenharmony_ci toolBarModifier: this.toolBarModifier, 296e41f4b71Sopenharmony_ci dividerModifier: this.dividerModifier, 297e41f4b71Sopenharmony_ci activateIndex: 0, 298e41f4b71Sopenharmony_ci toolBarList: this.toolbarList, 299e41f4b71Sopenharmony_ci }) 300e41f4b71Sopenharmony_ci .height(52) 301e41f4b71Sopenharmony_ci } 302e41f4b71Sopenharmony_ci }.align(Alignment.Bottom) 303e41f4b71Sopenharmony_ci .width('100%').height('100%') 304e41f4b71Sopenharmony_ci } 305e41f4b71Sopenharmony_ci } 306e41f4b71Sopenharmony_ci} 307e41f4b71Sopenharmony_ci``` 308e41f4b71Sopenharmony_ci 309e41f4b71Sopenharmony_ci 310