antd-tiny-vue/components/config-provider/hooks/config.ts
2023-03-26 15:49:59 +08:00

10 lines
216 B
TypeScript

import { useProviderConfigState } from '../context'
export const useConfig = () => {
const { componentDisabled, componentSize } = useProviderConfigState()
return {
componentDisabled,
componentSize
}
}