mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
22 lines
442 B
Vue
22 lines
442 B
Vue
|
<template>
|
||
|
<div class="demo-type">
|
||
|
<el-avatar :size="60" src="https://empty" @error="errorHandler">
|
||
|
<img
|
||
|
src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"
|
||
|
/>
|
||
|
</el-avatar>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { defineComponent } from 'vue'
|
||
|
export default defineComponent({
|
||
|
setup() {
|
||
|
const errorHandler = () => true
|
||
|
return {
|
||
|
errorHandler,
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
</script>
|