From 4ae07e300b3644697bd9d8d69a6c2b7847e42015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Thu, 25 May 2023 13:07:09 +0300 Subject: [PATCH] Refactor #3965 - For AvatarGroup --- components/lib/avatargroup/AvatarGroup.d.ts | 5 +++ components/lib/avatargroup/AvatarGroup.vue | 17 ++------- .../lib/avatargroup/BaseAvatarGroup.vue | 37 +++++++++++++++++++ 3 files changed, 45 insertions(+), 14 deletions(-) create mode 100644 components/lib/avatargroup/BaseAvatarGroup.vue diff --git a/components/lib/avatargroup/AvatarGroup.d.ts b/components/lib/avatargroup/AvatarGroup.d.ts index 89a9d9c4a..b04349575 100644 --- a/components/lib/avatargroup/AvatarGroup.d.ts +++ b/components/lib/avatargroup/AvatarGroup.d.ts @@ -38,6 +38,11 @@ export interface AvatarGroupProps { * @type {AvatarGroupPassThroughOptions} */ pt?: AvatarGroupPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/avatargroup/AvatarGroup.vue b/components/lib/avatargroup/AvatarGroup.vue index 9d0ae8ccb..a4fb3c572 100644 --- a/components/lib/avatargroup/AvatarGroup.vue +++ b/components/lib/avatargroup/AvatarGroup.vue @@ -1,25 +1,14 @@ - - diff --git a/components/lib/avatargroup/BaseAvatarGroup.vue b/components/lib/avatargroup/BaseAvatarGroup.vue new file mode 100644 index 000000000..9120319d3 --- /dev/null +++ b/components/lib/avatargroup/BaseAvatarGroup.vue @@ -0,0 +1,37 @@ +