UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

8 lines 280 B
import { inject, provide } from 'vue'; const AvatarContextKey = Symbol('AvatarContextKey'); export const useAvatarInjectContext = () => { return inject(AvatarContextKey, {}); }; export const useAvatarProviderContext = context => { return provide(AvatarContextKey, context); };