diff --git a/src/avatar/type.ts b/src/avatar/type.ts index 30fd72703c..4f08c92248 100644 --- a/src/avatar/type.ts +++ b/src/avatar/type.ts @@ -7,7 +7,8 @@ import { MouseEvent } from 'react'; import { ImageProps } from '../image'; import { PopupProps } from '../popup'; -import { TNode, TElement, ImageEvent } from '../common'; + +import { TNode, TElement, ImageEvent, ShapeEnum } from '../common'; export interface TdAvatarProps { /** @@ -94,6 +95,4 @@ export interface TdAvatarGroupProps { size?: string; } -export type ShapeEnum = 'circle' | 'round'; - export type CascadingValue = 'left-up' | 'right-up'; diff --git a/src/common.ts b/src/common.ts index cd1f07808a..c3ddfb404c 100644 --- a/src/common.ts +++ b/src/common.ts @@ -60,6 +60,8 @@ export type TreeOptionData = { export type SizeEnum = 'small' | 'medium' | 'large'; +export type ShapeEnum = 'circle' | 'round'; + export type HorizontalAlignEnum = 'left' | 'center' | 'right'; export type VerticalAlignEnum = 'top' | 'middle' | 'bottom';