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

53 lines
1.1 KiB
Vue
Raw Normal View History

2019-01-01 07:33:43 +00:00
<script>
2019-01-12 03:33:27 +00:00
import Basic from './basic';
import Editor from './editor';
import List from './list';
import Nested from './nested';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
2019-01-01 07:33:43 +00:00
const md = {
cn: `# Comment评论
对网站内容的反馈评价和讨论
## 何时使用
评论组件可用于对事物的讨论例如页面博客文章问题等等`,
us: `# Comment
A comment displays user feedback and discussion to website content.
## When To Use
Comments can be used to enable discussions on an entity such as a page, blog post, issue or other.`,
2019-01-12 03:33:27 +00:00
};
2019-01-01 07:33:43 +00:00
export default {
category: 'Components',
type: 'Data Display',
zhType: '数据展示',
title: 'Comment',
subtitle: '评论',
cols: 1,
2019-09-28 12:45:07 +00:00
render() {
2019-01-01 07:33:43 +00:00
return (
<div>
2019-09-28 12:45:07 +00:00
<md cn={md.cn} us={md.us} />
<Basic />
<br />
<List />
<br />
<Nested />
<br />
<Editor />
<br />
2019-01-01 07:33:43 +00:00
<api>
2019-09-28 12:45:07 +00:00
<template slot="cn">
<CN />
2019-01-01 07:33:43 +00:00
</template>
2019-09-28 12:45:07 +00:00
<US />
2019-01-01 07:33:43 +00:00
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2019-01-01 07:33:43 +00:00
},
2019-01-12 03:33:27 +00:00
};
2019-01-01 07:33:43 +00:00
</script>