- Divider 分割线
- 概述
- 代码示例
- API
- Divider props
- Divider props
Divider 分割线
概述
区隔内容的分割线。
对不同章节的文本段落进行分割。
对行内文字/链接进行分割,例如表格的操作列。
代码示例

水平分割线
默认为水平分割线,可在中间加入文字。
<template><p>Steven Paul Jobs was an American entrepreneur and business magnate. He was the chairman, chief executive officer, and a co-founder of Apple Inc.</p><Divider /><p>Steven Paul Jobs was an American entrepreneur and business magnate. He was the chairman, chief executive officer, and a co-founder of Apple Inc.</p><Divider>With Text</Divider><p>Steven Paul Jobs was an American entrepreneur and business magnate. He was the chairman, chief executive officer, and a co-founder of Apple Inc.</p><Divider dashed /><p>Steven Paul Jobs was an American entrepreneur and business magnate. He was the chairman, chief executive officer, and a co-founder of Apple Inc.</p></template><script>export default {}</script>

垂直分割线
使用 type="vertical" 设置为行内的垂直分割线。
<template>Text<Divider type="vertical" /><a href="#">Link</a><Divider type="vertical" /><a href="#">Link</a></template><script>export default {}</script>

标题位置
修改分割线标题的位置。
<template><Divider orientation="left">Left Text</Divider><p>Steven Paul Jobs was an American entrepreneur and business magnate. He was the chairman, chief executive officer, and a co-founder of Apple Inc.</p><Divider orientation="right">Right Text</Divider><p>Steven Paul Jobs was an American entrepreneur and business magnate. He was the chairman, chief executive officer, and a co-founder of Apple Inc.</p></template><script>export default {}</script>
API
Divider props
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 水平还是垂直类型,可选值为 horizontal 或 vertical | String | horizontal |
| orientation | 分割线标题的位置,可选值为 left、right 或 center | Number | center |
| dashed | 是否虚线 | Boolean | false |
| size 3.3.0 | 尺寸,可选值为 small 或 default | String | default |
