mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #3879 - For Avatar & AvatarGroup
This commit is contained in:
parent
69d0f98f26
commit
43c3f82ae5
6 changed files with 131 additions and 9 deletions
28
components/lib/avatargroup/AvatarGroup.d.ts
vendored
28
components/lib/avatargroup/AvatarGroup.d.ts
vendored
|
@ -9,10 +9,36 @@
|
|||
*/
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type AvatarGroupPassThroughOptionType = AvatarGroupPassThroughAttributes | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough attributes for each DOM elements
|
||||
*/
|
||||
export interface AvatarGroupPassThroughAttributes {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
* @see {@link AvatarGroupProps.pt}
|
||||
*/
|
||||
export interface AvatarGroupPassThroughOptions {
|
||||
/**
|
||||
* Uses to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: AvatarGroupPassThroughOptionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in AvatarGroup component.
|
||||
*/
|
||||
export interface AvatarGroupProps {}
|
||||
export interface AvatarGroupProps {
|
||||
/**
|
||||
* Uses to pass attributes to DOM elements inside the component.
|
||||
* @type {AvatarGroupPassThroughOptions}
|
||||
*/
|
||||
pt?: AvatarGroupPassThroughOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in AvatarGroup component.
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
<template>
|
||||
<div class="p-avatar-group p-component">
|
||||
<div class="p-avatar-group p-component" v-bind="ptm('root')">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
|
||||
export default {
|
||||
name: 'AvatarGroup'
|
||||
name: 'AvatarGroup',
|
||||
extends: BaseComponent
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue