You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
<script>
|
|
import Horizontal from './horizontal';
|
|
import Vertical from './vertical';
|
|
import WithText from './with-text';
|
|
import CN from '../index.zh-CN.md';
|
|
import US from '../index.en-US.md';
|
|
const md = {
|
|
cn: `# Divider 分割线
|
|
区隔内容的分割线。
|
|
## 何时使用
|
|
- 对不同章节的文本段落进行分割。
|
|
- 对行内文字/链接进行分割,例如表格的操作列。
|
|
|
|
## 代码演示`,
|
|
us: `# Divider
|
|
A divider line separates different content.
|
|
## When To Use
|
|
- Divide sections of article.
|
|
- Divide inline text and links such as the operation column of table.
|
|
## Examples
|
|
`,
|
|
};
|
|
export default {
|
|
category: 'Components',
|
|
type: 'Other',
|
|
zhType: '其他',
|
|
title: 'Divider',
|
|
subtitle: '分割线',
|
|
render() {
|
|
return (
|
|
<div>
|
|
<md cn={md.cn} us={md.us} />
|
|
<demo-sort cols={1}>
|
|
<Vertical />
|
|
<Horizontal />
|
|
<WithText />
|
|
</demo-sort>
|
|
<api>
|
|
<CN slot="cn" />
|
|
<US />
|
|
</api>
|
|
</div>
|
|
);
|
|
},
|
|
};
|
|
</script>
|