1e41f4b71Sopenharmony_ci# RowSplit
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci将子组件横向布局,并在每个子组件之间插入一根纵向的分割线。
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci>  **说明:**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> 该组件从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## 子组件
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci可以包含子组件。
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ciRowSplit通过分割线限制子组件的宽度。初始化时,分割线位置根据子组件的宽度来计算。初始化后,后续动态修改子组件的宽度则不生效,分割线位置保持不变,子组件宽度可以通过拖动相邻分割线进行改变。
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci初始化后,动态修改[margin](ts-universal-attributes-size.md#margin)、[border](ts-universal-attributes-border.md#border)、[padding](ts-universal-attributes-size.md#padding)通用属性导致子组件宽度大于相邻分割线间距的异常情况下,不支持拖动分割线改变子组件的宽度。
16e41f4b71Sopenharmony_ci## 接口
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ciRowSplit()
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.ArkUI.ArkUI.Full
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci## 属性
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci### resizeable
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ciresizeable(value: boolean)
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ci设置分割线是否可拖拽。
31e41f4b71Sopenharmony_ci
32e41f4b71Sopenharmony_ci**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.ArkUI.ArkUI.Full
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ci**参数:** 
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ci| 参数名 | 类型 | 必填 | 说明 |
39e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
40e41f4b71Sopenharmony_ci| value | boolean | 是 | 分割线是否可拖拽。<br/>默认值:false |
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci>  **说明:**
43e41f4b71Sopenharmony_ci>
44e41f4b71Sopenharmony_ci> RowSplit的分割线可以改变左右两边子组件的宽度,子组件可改变宽度的范围取决于子组件的最大最小宽度。
45e41f4b71Sopenharmony_ci>
46e41f4b71Sopenharmony_ci> 支持[clip](ts-universal-attributes-sharp-clipping.md#clip)、[margin](ts-universal-attributes-size.md#margin)等通用属性,clip不设置的时候默认值为true。
47e41f4b71Sopenharmony_ci
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci## 示例
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci```ts
52e41f4b71Sopenharmony_ci// xxx.ets
53e41f4b71Sopenharmony_ci@Entry
54e41f4b71Sopenharmony_ci@Component
55e41f4b71Sopenharmony_cistruct RowSplitExample {
56e41f4b71Sopenharmony_ci  build() {
57e41f4b71Sopenharmony_ci    Column() {
58e41f4b71Sopenharmony_ci      Text('The second line can be dragged').fontSize(9).fontColor(0xCCCCCC).width('90%')
59e41f4b71Sopenharmony_ci      RowSplit() {
60e41f4b71Sopenharmony_ci        Text('1').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
61e41f4b71Sopenharmony_ci        Text('2').width('10%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
62e41f4b71Sopenharmony_ci        Text('3').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
63e41f4b71Sopenharmony_ci        Text('4').width('10%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
64e41f4b71Sopenharmony_ci        Text('5').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
65e41f4b71Sopenharmony_ci      }
66e41f4b71Sopenharmony_ci      .resizeable(true) // 可拖动
67e41f4b71Sopenharmony_ci      .width('90%').height(100)
68e41f4b71Sopenharmony_ci    }.width('100%').margin({ top: 5 })
69e41f4b71Sopenharmony_ci  }
70e41f4b71Sopenharmony_ci}
71e41f4b71Sopenharmony_ci```
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ci![zh-cn_image_0000001219982729](figures/zh-cn_image_0000001219982729.gif)
74