From b8fefac1fdcc1ac9b3b929f7a1a0cd0305e750d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Tue, 23 May 2023 16:16:38 +0300 Subject: [PATCH] Refactor #3965 - For Avatar --- components/lib/avatar/Avatar.d.ts | 5 ++ components/lib/avatar/Avatar.vue | 89 ++----------------------- components/lib/avatar/BaseAvatar.vue | 98 ++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+), 82 deletions(-) create mode 100644 components/lib/avatar/BaseAvatar.vue diff --git a/components/lib/avatar/Avatar.d.ts b/components/lib/avatar/Avatar.d.ts index 09c5b0784..f2efdf1f8 100644 --- a/components/lib/avatar/Avatar.d.ts +++ b/components/lib/avatar/Avatar.d.ts @@ -88,6 +88,11 @@ export interface AvatarProps { * @type {AvatarPassThroughOptions} */ pt?: AvatarPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/avatar/Avatar.vue b/components/lib/avatar/Avatar.vue index b79474a37..6acf78df4 100644 --- a/components/lib/avatar/Avatar.vue +++ b/components/lib/avatar/Avatar.vue @@ -1,100 +1,25 @@ - - diff --git a/components/lib/avatar/BaseAvatar.vue b/components/lib/avatar/BaseAvatar.vue new file mode 100644 index 000000000..c2775927a --- /dev/null +++ b/components/lib/avatar/BaseAvatar.vue @@ -0,0 +1,98 @@ +