Refactor #3965 - Refactor on Avatar
parent
af5a0b090d
commit
3c84f251e4
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="cx('root')" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptm('root')" data-pc-name="avatar">
|
<div :class="cx('root')" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptm('root', { $parentInstance })" data-pc-name="avatar">
|
||||||
<slot>
|
<slot>
|
||||||
<span v-if="label" :class="cx('label')" v-bind="ptm('label')">{{ label }}</span>
|
<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')" v-bind="ptm('icon')" />
|
<component v-else-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" v-bind="ptm('icon')" />
|
||||||
|
|
Loading…
Reference in New Issue