mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5257
This commit is contained in:
parent
a9164bdbde
commit
dd84dbbb60
33 changed files with 82 additions and 44 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div :class="cx('root')" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptm('root')">
|
||||
<div :class="cx('root')" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptmi('root')">
|
||||
<slot>
|
||||
<span v-if="label" :class="cx('label')" v-bind="ptm('label')">{{ label }}</span>
|
||||
<component v-else-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" />
|
||||
|
@ -15,6 +15,7 @@ import BaseAvatar from './BaseAvatar.vue';
|
|||
export default {
|
||||
name: 'Avatar',
|
||||
extends: BaseAvatar,
|
||||
inheritAttrs: false,
|
||||
emits: ['error'],
|
||||
methods: {
|
||||
onError(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue