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>
2018-11-27 10:25:38 +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'
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
`,
}
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: '图标',
2018-01-25 08:29:23 +00:00
render () {
return (
<div>
2018-08-10 06:52:26 +00:00
<md class='api-container' cn={md.cn} us={md.us}/>
2018-11-28 14:34:33 +00:00
<IconDisplay class='markdown'/>
2018-11-27 10:25:38 +00:00
<Basic />
<Custom />
<Iconfont />
<Twotone />
<api>
<CN slot='cn' />
<US/>
</api>
2018-01-25 08:29:23 +00:00
</div>
)
},
}
</script>