Refactor #3879 - For Avatar & AvatarGroup

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-21 15:04:27 +03:00
parent 69d0f98f26
commit 43c3f82ae5
6 changed files with 131 additions and 9 deletions

View file

@ -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.

View file

@ -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>