import { computed, ComputedRef, inject } from 'vue'; import { defaultConfigProvider } from '../../config-provider'; export default (name: string, props: Record): ComputedRef => { const configProvider = inject('configProvider', defaultConfigProvider); const prefixCls = computed(() => configProvider.getPrefixCls(name, props.prefixCls)); return prefixCls; };