1# RowSplit 2 3> **说明:** 4> 该组件从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 5 6 7将子组件横向布局,并在每个子组件之间插入一根纵向的分割线。 8 9 10 11## 子组件 12 13可以包含子组件 14 15 16## 接口 17 18RowSplit() 19 20 21## 属性 22 23| 名称 | 参数类型 | 描述 | 24| -------- | -------- | -------- | 25| resizeable | boolean | 分割线是否可拖拽,默认为false。 | 26 27> **说明:** 28> RowSplit的分割线最小能拖动到刚好包含子组件。 29> 30> 在真机中查看拖动效果,预览器中不支持拖动。 31 32 33## 示例 34 35```ts 36// xxx.ets 37@Entry 38@Component 39struct RowSplitExample { 40 build() { 41 Column() { 42 Text('The second line can be dragged').fontSize(9).fontColor(0xCCCCCC).width('90%') 43 RowSplit() { 44 Text('1').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) 45 Text('2').width('10%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) 46 Text('3').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) 47 Text('4').width('10%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) 48 Text('5').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) 49 } 50 .resizeable(true) // 可拖动 51 .width('90%').height(100) 52 }.width('100%').margin({ top: 5 }) 53 } 54} 55``` 56 57 58