diff --git a/src/components/Avatars/index.ts b/src/components/Avatars/index.ts index 35d212972..5eaa329f3 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 c15906861..bae17370b 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 000000000..c2554ee3e --- /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 f5c2fc444..461901793 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 eefe0dd6b..430c7587f 100644 --- a/src/views/Components/Avatars.vue +++ b/src/views/Components/Avatars.vue @@ -1,13 +1,53 @@