2018-07-20 08:13:21 +00:00
|
|
|
|
<script>
|
2019-01-12 03:33:27 +00:00
|
|
|
|
import Basic from './basic';
|
|
|
|
|
import Fade from './fade';
|
|
|
|
|
import Autoplay from './autoplay';
|
|
|
|
|
import Vertical from './vertical';
|
|
|
|
|
import CustomPaging from './customPaging';
|
|
|
|
|
import CustomArrows from './customArrows';
|
2018-07-20 08:13:21 +00:00
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
|
import CN from '../index.zh-CN.md';
|
|
|
|
|
import US from '../index.en-US.md';
|
2018-07-20 08:13:21 +00:00
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
|
import '../style';
|
2018-07-20 08:13:21 +00:00
|
|
|
|
|
|
|
|
|
const md = {
|
2018-09-05 13:28:54 +00:00
|
|
|
|
cn: `# Carousel 走马灯
|
|
|
|
|
旋转木马,一组轮播的区域。
|
2018-07-20 08:13:21 +00:00
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
|
|
- 当有一组平级的内容。
|
|
|
|
|
- 当内容空间不足时,可以用走马灯的形式进行收纳,进行轮播展现。
|
|
|
|
|
- 常用于一组图片或卡片轮播。
|
|
|
|
|
## 代码演示
|
|
|
|
|
`,
|
2018-09-05 13:28:54 +00:00
|
|
|
|
us: `# Carousel
|
|
|
|
|
A carousel component. Scales with its container.
|
2018-07-20 08:13:21 +00:00
|
|
|
|
## When To Use
|
|
|
|
|
|
|
|
|
|
- When there is a group of content on the same level.
|
|
|
|
|
- When there is insufficient content space, it can be used to save space in the form of a revolving door.
|
|
|
|
|
- Commonly used for a group of pictures/cards.
|
|
|
|
|
## Examples
|
|
|
|
|
`,
|
2019-01-12 03:33:27 +00:00
|
|
|
|
};
|
2018-07-20 08:13:21 +00:00
|
|
|
|
export default {
|
|
|
|
|
category: 'Components',
|
|
|
|
|
type: 'Data Display',
|
2018-11-28 13:58:42 +00:00
|
|
|
|
zhType: '数据展示',
|
2018-07-20 08:13:21 +00:00
|
|
|
|
title: 'Carousel',
|
|
|
|
|
subtitle: '走马灯',
|
|
|
|
|
render () {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<md cn={md.cn} us={md.us} />
|
|
|
|
|
<Basic />
|
|
|
|
|
<Vertical />
|
|
|
|
|
<Fade />
|
|
|
|
|
<Autoplay />
|
|
|
|
|
<CustomPaging />
|
2018-07-23 08:27:50 +00:00
|
|
|
|
<CustomArrows />
|
2018-07-20 08:13:21 +00:00
|
|
|
|
<api>
|
|
|
|
|
<CN slot='cn' />
|
|
|
|
|
<US />
|
|
|
|
|
</api>
|
|
|
|
|
</div>
|
2019-01-12 03:33:27 +00:00
|
|
|
|
);
|
2018-07-20 08:13:21 +00:00
|
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
|
};
|
2018-07-20 08:13:21 +00:00
|
|
|
|
</script>
|