element-plus/docs/examples/popconfirm/customize.vue
Aex f78407a409
fix(components): empty icon component judgment (#4178)
* fix(components): empty icon component judgment

* revert: globals components

* fix(components): el-icon missing import

* fix: use shallowRef for icon components

* refactor: remove shallowRef

* fix: remove unused code

* fix: social-link icon size

* fix: time picker icon

* fix: v-if judge
2021-11-05 17:44:02 +08:00

18 lines
376 B
Vue

<template>
<el-popconfirm
confirm-button-text="OK"
cancel-button-text="No, Thanks"
:icon="InfoFilled"
icon-color="red"
title="Are you sure to delete this?"
>
<template #reference>
<el-button>Delete</el-button>
</template>
</el-popconfirm>
</template>
<script setup lang="ts">
import { InfoFilled } from '@element-plus/icons'
</script>