2018-01-20 06:33:42 +00:00
|
|
|
|
<script>
|
2018-03-20 13:48:01 +00:00
|
|
|
|
import Basic from './basic'
|
|
|
|
|
import NoBorder from './noBorder'
|
|
|
|
|
import Concise from './concise'
|
|
|
|
|
import ColRowCard from './colRowCard'
|
|
|
|
|
import Loading from './loading'
|
|
|
|
|
import Grid from './grid'
|
|
|
|
|
import Inline from './inline'
|
|
|
|
|
import TabsCard from './tabsCard'
|
|
|
|
|
import MoreConfigs from './moreConfigs'
|
2018-03-09 05:26:34 +00:00
|
|
|
|
|
|
|
|
|
import CN from './../index.zh-CN.md'
|
|
|
|
|
import US from './../index.en-US.md'
|
|
|
|
|
|
|
|
|
|
import '../style'
|
|
|
|
|
|
|
|
|
|
const md = {
|
|
|
|
|
cn: `# Card 卡片
|
|
|
|
|
通用卡片容器
|
|
|
|
|
## 何时使用
|
|
|
|
|
最基础的卡片容器,可承载文字、列表、图片、段落,常用于后台概览页面。
|
|
|
|
|
## 代码演示
|
|
|
|
|
`,
|
|
|
|
|
us: `# Card
|
|
|
|
|
Simple rectangular container.
|
|
|
|
|
##When To Use
|
|
|
|
|
A card can be used to display content related to a single subject. The content can consist of multiple elements of varying types and sizes.
|
2018-03-20 13:48:01 +00:00
|
|
|
|
## Examples
|
|
|
|
|
`,
|
2018-03-09 05:26:34 +00:00
|
|
|
|
}
|
2018-01-20 06:33:42 +00:00
|
|
|
|
export default {
|
2018-03-20 13:48:01 +00:00
|
|
|
|
category: 'Components',
|
|
|
|
|
type: 'Data Display',
|
|
|
|
|
title: 'Card',
|
|
|
|
|
subtitle: '卡片',
|
|
|
|
|
cols: 1,
|
|
|
|
|
render () {
|
2018-03-09 05:26:34 +00:00
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<md cn={md.cn} us={md.us} />
|
|
|
|
|
<Basic />
|
|
|
|
|
<NoBorder />
|
|
|
|
|
<Concise />
|
|
|
|
|
<ColRowCard />
|
|
|
|
|
<Loading />
|
|
|
|
|
<Grid />
|
|
|
|
|
<Inline />
|
|
|
|
|
<TabsCard />
|
|
|
|
|
<MoreConfigs />
|
|
|
|
|
<api>
|
|
|
|
|
<CN slot='cn' />
|
|
|
|
|
<US />
|
|
|
|
|
</api>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2018-01-20 06:33:42 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|