|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
import { cloneElement } from '../_util/vnode'; |
|
|
|
|
import Avatar, { avatarProps, AvatarSize } from './Avatar'; |
|
|
|
|
import Popover from '../popover'; |
|
|
|
|
import { defineComponent, provide, PropType, ExtractPropTypes, CSSProperties } from 'vue'; |
|
|
|
|
import { defineComponent, PropType, ExtractPropTypes, CSSProperties } from 'vue'; |
|
|
|
|
import PropTypes from '../_util/vue-types'; |
|
|
|
|
import { flattenChildren, getPropsSlot } from '../_util/props-util'; |
|
|
|
|
import { tuple } from '../_util/type'; |
|
|
|
|
import useConfigInject from '../_util/hooks/useConfigInject'; |
|
|
|
|
import useProviderSize from '../_util/hooks/useSize'; |
|
|
|
|
import useProvideSize from '../_util/hooks/useSize'; |
|
|
|
|
|
|
|
|
|
const groupProps = { |
|
|
|
|
prefixCls: PropTypes.string, |
|
|
|
@ -33,7 +33,7 @@ const Group = defineComponent({
|
|
|
|
|
inheritAttrs: false, |
|
|
|
|
setup(props, { slots, attrs }) { |
|
|
|
|
const { prefixCls, direction } = useConfigInject('avatar-group', props); |
|
|
|
|
useProviderSize<AvatarSize>(props); |
|
|
|
|
useProvideSize<AvatarSize>(props); |
|
|
|
|
return () => { |
|
|
|
|
const { maxPopoverPlacement = 'top', maxCount, maxStyle } = props; |
|
|
|
|
|
|
|
|
|