mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
38cf5e8a75
* docs: unify component export file as index.tsx * docs: compatible with old anchors * chore: clean * test: update snapshot * fix: window env --------- Co-authored-by: Peach <scdzwyxst@gmail.com>
17 lines
357 B
TypeScript
17 lines
357 B
TypeScript
import InternalAvatar from './avatar';
|
|
import Group from './group';
|
|
|
|
export type { AvatarProps } from './avatar';
|
|
export type { GroupProps } from './group';
|
|
export { Group };
|
|
|
|
type CompoundedComponent = typeof InternalAvatar & {
|
|
Group: typeof Group;
|
|
};
|
|
|
|
const Avatar = InternalAvatar as CompoundedComponent;
|
|
|
|
Avatar.Group = Group;
|
|
|
|
export default Avatar;
|