You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/icon/demo/two-tone.vue

42 lines
751 B

<docs>
---
order: 3
title:
zh-CN: 多色图标
en-US: Two-tone icon and colorful icon
---
## zh-CN
双色图标可以通过 `twoToneColor` 属性设置主题色
## en-US
You can set `twoToneColor` prop to specific primary color for two-tone icons.
</docs>
<template>
<div class="icons-list">
<SmileTwoTone />
<HeartTwoTone two-tone-color="#eb2f96" />
<CheckCircleTwoTone two-tone-color="#52c41a" />
</div>
</template>
<script>
import { SmileTwoTone, HeartTwoTone, CheckCircleTwoTone } from '@ant-design/icons-vue';
export default {
components: {
SmileTwoTone,
HeartTwoTone,
CheckCircleTwoTone,
},
};
</script>
<style scoped>
.icons-list :deep(.anticon) {
margin-right: 6px;
font-size: 24px;
}
</style>