FxDivider 分割线
区隔内容的分割线。不依赖任何 UI 框架,样式走 @fx/styles token,亮暗自动跟随。
基础用法
分割不同段落的文本。
自定义内容
在分割线上自定义内容(文字位置 / 图标)。
content-position 可设 left / center / right;图标可通过 default slot 放 <FxIcon>。
虚线
设置分割线的样式(dashed / dotted / double)。
纵向分割线
API
Attributes
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| direction | 分割线方向 | 'horizontal' | 'vertical' | horizontal |
| border-style | 边框样式 | 'none' | 'solid' | 'dashed' | 'dotted' | 'double' | solid |
| content-position | 文字位置(仅 horizontal 且有 default slot 内容时生效) | 'left' | 'center' | 'right' | center |
Slots
| 插槽名 | 说明 | 类型 |
|---|---|---|
| default | 分割线上的文字内容,仅 horizontal 模式下渲染 | — |
