ant-design-vue/components/card/demo/index.vue

62 lines
1.5 KiB
Vue
Raw Normal View History

2018-01-20 06:33:42 +00:00
<script>
2019-01-12 03:33:27 +00:00
import Basic from './basic.md';
import BorderLess from './border-less.md';
import FlexibleContent from './flexible-content.md';
import GridCard from './grid-card.md';
import InColumn from './in-column.md';
import Inner from './inner.md';
import Loading from './loading.md';
import Meta from './meta.md';
import Simple from './simple.md';
import Tabs from './tabs.md';
2018-03-09 05:26:34 +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-03-09 05:26:34 +00:00
2019-01-12 03:33:27 +00:00
import '../style';
2018-03-09 05:26:34 +00:00
const md = {
cn: `# Card 卡片
通用卡片容器
## 何时使用
最基础的卡片容器可承载文字列表图片段落常用于后台概览页面
## 代码演示
`,
us: `# Card
Simple rectangular container.
2019-01-08 11:00:39 +00:00
## When To Use
2018-03-09 05:26:34 +00:00
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
`,
2019-01-12 03:33:27 +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',
zhType: '数据展示',
2018-03-20 13:48:01 +00:00
title: 'Card',
subtitle: '卡片',
cols: 1,
2019-09-28 12:45:07 +00:00
render() {
2018-03-09 05:26:34 +00:00
return (
<div>
<md cn={md.cn} us={md.us} />
2019-09-28 12:45:07 +00:00
<Basic />
<BorderLess />
<FlexibleContent />
<GridCard />
<InColumn />
<Inner />
<Loading />
<Meta />
<Simple />
<Tabs />
2018-03-09 05:26:34 +00:00
<api>
2019-09-28 12:45:07 +00:00
<CN slot="cn" />
2018-03-09 05:26:34 +00:00
<US />
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2018-01-20 06:33:42 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-01-20 06:33:42 +00:00
</script>