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

50 lines
1.2 KiB
Vue
Raw Normal View History

2018-01-25 08:29:23 +00:00
<script>
2019-01-12 03:33:27 +00:00
import IconDisplay from '@/site/theme/template/IconDisplay';
import Basic from './basic.md';
import Custom from './custom.md';
import Iconfont from './iconfont.md';
import Twotone from './two-tone.md';
2018-11-27 10:25:38 +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-01-25 08:29:23 +00:00
const md = {
cn: `# 图标 Icon
语义化的矢量图形
2018-11-27 10:25:38 +00:00
## 设计师专属
安装 [Kitchen Sketch 插件 <EFBFBD>](https://kitchen.alipay.com),就可以一键拖拽使用 Ant Design 和 Iconfont 的海量图标,还可以关联自有项目。
## 图标列表
> 点击图标即可复制代码
新版图标可能略有缺失我们还在持续补充中
2018-01-25 08:29:23 +00:00
`,
us: `# Icon
Semantic vector graphics.
2018-11-27 10:25:38 +00:00
## List of icons
> Click the icon and copy the code.
We are still adding two-tone icons right now.
2018-01-25 08:29:23 +00:00
`,
2019-01-12 03:33:27 +00:00
};
2018-01-25 08:29:23 +00:00
export default {
2018-03-21 05:31:55 +00:00
category: 'Components',
type: 'General',
2018-11-17 07:57:38 +00:00
zhType: '通用',
2018-03-21 05:31:55 +00:00
title: 'Icon',
subtitle: '图标',
2019-09-28 12:45:07 +00:00
render() {
2018-01-25 08:29:23 +00:00
return (
<div>
2019-09-28 12:45:07 +00:00
<md class="api-container" cn={md.cn} us={md.us} />
<IconDisplay class="markdown" />
2018-11-27 10:25:38 +00:00
<Basic />
<Custom />
<Iconfont />
<Twotone />
<api>
2019-09-28 12:45:07 +00:00
<CN slot="cn" />
<US />
2018-11-27 10:25:38 +00:00
</api>
2018-01-25 08:29:23 +00:00
</div>
2019-01-12 03:33:27 +00:00
);
2018-01-25 08:29:23 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-01-25 08:29:23 +00:00
</script>