diff --git a/components/_util/hooks/useSize.ts b/components/_util/hooks/useSize.ts index 4e70469eb..6b9d8ee87 100644 --- a/components/_util/hooks/useSize.ts +++ b/components/_util/hooks/useSize.ts @@ -3,7 +3,7 @@ import { ConfigProviderProps, defaultConfigProvider, SizeType } from '../../conf const sizeProvider = Symbol('SizeProvider'); -const useProviderSize = (props: Record): ComputedRef => { +const useProvideSize = (props: Record): ComputedRef => { const configProvider = inject>( 'configProvider', defaultConfigProvider, @@ -21,6 +21,6 @@ const useInjectSize = (): ComputedRef => { return size; }; -export { useInjectSize, sizeProvider, useProviderSize }; +export { useInjectSize, sizeProvider, useProvideSize }; -export default useProviderSize; +export default useProvideSize; diff --git a/components/avatar/Avatar.tsx b/components/avatar/Avatar.tsx index 29db24d16..c999ab21a 100644 --- a/components/avatar/Avatar.tsx +++ b/components/avatar/Avatar.tsx @@ -4,7 +4,6 @@ import { CSSProperties, defineComponent, ExtractPropTypes, - inject, nextTick, onMounted, PropType, diff --git a/components/avatar/Group.tsx b/components/avatar/Group.tsx index c88353919..2812c7c70 100644 --- a/components/avatar/Group.tsx +++ b/components/avatar/Group.tsx @@ -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(props); + useProvideSize(props); return () => { const { maxPopoverPlacement = 'top', maxCount, maxStyle } = props; diff --git a/v2-doc b/v2-doc index d19705328..eacad021c 160000 --- a/v2-doc +++ b/v2-doc @@ -1 +1 @@ -Subproject commit d197053285b81e77718621c0b5b94cb3b21831a2 +Subproject commit eacad021cf9e4d7d18fe4c4b9a38cbd7e3378d49