Skip to content

Commit

Permalink
chore: move ShapeEnum to common.ts (#3206)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 authored Nov 15, 2024
1 parent 2c28a90 commit d2701ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/avatar/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down Expand Up @@ -94,6 +95,4 @@ export interface TdAvatarGroupProps {
size?: string;
}

export type ShapeEnum = 'circle' | 'round';

export type CascadingValue = 'left-up' | 'right-up';
2 changes: 2 additions & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export type TreeOptionData<T = string | number> = {

export type SizeEnum = 'small' | 'medium' | 'large';

export type ShapeEnum = 'circle' | 'round';

export type HorizontalAlignEnum = 'left' | 'center' | 'right';

export type VerticalAlignEnum = 'top' | 'middle' | 'bottom';
Expand Down

0 comments on commit d2701ef

Please sign in to comment.