mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-07-04 19:13:13 +08:00
feat: add config
This commit is contained in:
9
components/config-provider/hooks/config.ts
Normal file
9
components/config-provider/hooks/config.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { useProviderConfigState } from '../context'
|
||||
|
||||
export const useConfig = () => {
|
||||
const { componentDisabled, componentSize } = useProviderConfigState()
|
||||
return {
|
||||
componentDisabled,
|
||||
componentSize
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user