forked from vueComponent/ant-design-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic.vue
37 lines (31 loc) · 840 Bytes
/
basic.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<docs>
---
order: 0
title:
zh-CN: 基本用法
en-US: Basic
---
## zh-CN
通过 `@ant-design/icons-vue` 引用 Icon 组件,不同主题的 Icon 组件名为图标名加主题做为后缀,也可以通过设置 `spin` 属性来实现动画旋转效果。
## en-US
Import icons from `@ant-design/icons-vue`, component name of icons with different theme is the icon name suffixed by the theme name. Specific the `spin` property to show spinning animation.
</docs>
<template>
<a-space>
<home-outlined />
<setting-filled />
<smile-outlined />
<sync-outlined spin />
<smile-outlined :rotate="180" />
<loading-outlined />
</a-space>
</template>
<script lang="ts" setup>
import {
HomeOutlined,
SettingFilled,
SmileOutlined,
SyncOutlined,
LoadingOutlined,
} from '@ant-design/icons-vue';
</script>