From 3bf28a5d4555bf2a10754474db81d70b04ee432a Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Wed, 28 Feb 2024 16:22:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=B4=E5=83=8F=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Avatars/index.ts | 1 + src/components/Avatars/src/Avatars.vue | 74 +++++++++++++++++++++-- src/components/Avatars/src/types/index.ts | 4 ++ src/components/Backtop/src/Backtop.vue | 2 +- src/views/Components/Avatars.vue | 44 +++++++++++++- 5 files changed, 117 insertions(+), 8 deletions(-) create mode 100644 src/components/Avatars/src/types/index.ts diff --git a/src/components/Avatars/index.ts b/src/components/Avatars/index.ts index 35d2129..5eaa329 100644 --- a/src/components/Avatars/index.ts +++ b/src/components/Avatars/index.ts @@ -1,3 +1,4 @@ import Avatars from './src/Avatars.vue' +export type { AvatarItem } from './src/types' export { Avatars } diff --git a/src/components/Avatars/src/Avatars.vue b/src/components/Avatars/src/Avatars.vue index c159068..bae1737 100644 --- a/src/components/Avatars/src/Avatars.vue +++ b/src/components/Avatars/src/Avatars.vue @@ -1,15 +1,79 @@ + + diff --git a/src/components/Avatars/src/types/index.ts b/src/components/Avatars/src/types/index.ts new file mode 100644 index 0000000..c2554ee --- /dev/null +++ b/src/components/Avatars/src/types/index.ts @@ -0,0 +1,4 @@ +export interface AvatarItem { + url: string + name?: string +} diff --git a/src/components/Backtop/src/Backtop.vue b/src/components/Backtop/src/Backtop.vue index f5c2fc4..4619017 100644 --- a/src/components/Backtop/src/Backtop.vue +++ b/src/components/Backtop/src/Backtop.vue @@ -9,7 +9,7 @@ const prefixCls = getPrefixCls('backtop') diff --git a/src/views/Components/Avatars.vue b/src/views/Components/Avatars.vue index eefe0dd..430c758 100644 --- a/src/views/Components/Avatars.vue +++ b/src/views/Components/Avatars.vue @@ -1,13 +1,53 @@