Fixed avatar badge
parent
bdac0cf2ea
commit
ab69349124
|
@ -7,7 +7,6 @@
|
|||
|
||||
.p-overlay-badge {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.p-overlay-badge .p-badge {
|
||||
|
|
|
@ -30,9 +30,7 @@
|
|||
<div class="p-col-12 p-md-4">
|
||||
<div class="card">
|
||||
<h5>Label - Badge</h5>
|
||||
<Badge value="4">
|
||||
<Avatar label="U" class="p-mr-2" size="xlarge" style="background-color:#4caf4f; color: #ffffff" />
|
||||
</Badge>
|
||||
<Avatar label="U" class="p-mr-2" size="xlarge" style="background-color:#4caf4f; color: #ffffff" v-badge="4" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -59,9 +57,7 @@
|
|||
<div class="p-col-12 p-md-4">
|
||||
<div class="card">
|
||||
<h5>Icon - Badge</h5>
|
||||
<Badge value="4" severity="success">
|
||||
<Avatar icon="pi pi-user" class="p-mr-2" size="xlarge" />
|
||||
</Badge>
|
||||
<Avatar icon="pi pi-user" class="p-mr-2" size="xlarge" v-badge="4"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -93,9 +89,7 @@
|
|||
<div class="p-col-12 p-md-4">
|
||||
<div class="card">
|
||||
<h5>Image - Badge</h5>
|
||||
<Badge value="4" severity="danger">
|
||||
<Avatar image="demo/images/organization/walter.jpg" class="p-mr-2" size="xlarge" />
|
||||
</Badge>
|
||||
<Avatar image="demo/images/organization/walter.jpg" class="p-mr-2" size="xlarge" v-badge.danger="4" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -49,12 +49,10 @@ import AvatarGroup from 'primevue/avatargroup';
|
|||
</code></pre>
|
||||
|
||||
<h5>Badge</h5>
|
||||
<p>A badge can be added by wrapping the Avatar within a <router-link to="/badge">Badge</router-link> component.</p>
|
||||
<p>A badge can be added to an Avatar with the <router-link to="/badge">Badge</router-link> directive.</p>
|
||||
<pre v-code>
|
||||
<code>
|
||||
<Badge value="4" severity="info">
|
||||
<Avatar image="user.png" size="xlarge" />
|
||||
</Badge>
|
||||
<Avatar image="user.png" size="xlarge" v-badge.danger="4" />
|
||||
|
||||
</code></pre>
|
||||
|
||||
|
@ -211,9 +209,7 @@ import AvatarGroup from 'primevue/avatargroup';
|
|||
<div class="p-col-12 p-md-4">
|
||||
<div class="card">
|
||||
<h5>Label - Badge</h5>
|
||||
<Badge value="4">
|
||||
<Avatar label="U" class="p-mr-2" size="xlarge" style="background-color:#4caf4f; color: #ffffff" />
|
||||
</Badge>
|
||||
<Avatar label="U" class="p-mr-2" size="xlarge" style="background-color:#4caf4f; color: #ffffff" v-badge="4" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -240,9 +236,7 @@ import AvatarGroup from 'primevue/avatargroup';
|
|||
<div class="p-col-12 p-md-4">
|
||||
<div class="card">
|
||||
<h5>Icon - Badge</h5>
|
||||
<Badge value="4" severity="success">
|
||||
<Avatar icon="pi pi-user" class="p-mr-2" size="xlarge" />
|
||||
</Badge>
|
||||
<Avatar icon="pi pi-user" class="p-mr-2" size="xlarge" v-badge="4"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -271,12 +265,10 @@ import AvatarGroup from 'primevue/avatargroup';
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="p-col-12 p-md-4">
|
||||
<div class="p-col-12 p-md-4">
|
||||
<div class="card">
|
||||
<h5>Image - Badge</h5>
|
||||
<Badge value="4" severity="danger">
|
||||
<Avatar image="demo/images/organization/walter.jpg" class="p-mr-2" size="xlarge" />
|
||||
</Badge>
|
||||
<Avatar image="demo/images/organization/walter.jpg" class="p-mr-2" size="xlarge" v-badge.danger="4" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue