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

34 lines
604 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<docs>
---
order: 2
title:
zh-CN: 自定义 Icon 图标
en-US: Customize icon
---
## zh-CN
使用 `icon` 自定义提示 `icon`
## en-US
Set `icon` props to customize the icon.
</docs>
<template>
<a-popconfirm title="Are you sure">
<template #icon><question-circle-outlined style="color: red" /></template>
<a href="#">Delete</a>
</a-popconfirm>
</template>
<script lang="ts">
import { QuestionCircleOutlined } from '@ant-design/icons-vue';
import { defineComponent } from 'vue';
export default defineComponent({
components: {
QuestionCircleOutlined,
},
});
</script>