ant-design/components/config-provider/demo/useConfig.md
xliez 0d67bde239
feat: add useConfig hook to ConfigProvider (#40215)
* feat: add useConfig hook to ConfigProvider

* docs: format config-provide markdown

* doc: add available version

* test: add useConfig test

* docs: add debug

* chore: fix lint error

* fix: getter dead loop

* test: promote useConfig test coverage

* docs(ConfigProvider): update available version
2023-02-14 17:39:35 +08:00

8 lines
209 B
Markdown

## zh-CN
获取父级 `Provider` 的值。如 `DisabledContextProvider`、`SizeContextProvider`。
## en-US
Get the value of the parent `Provider`. Such as `DisabledContextProvider`, `SizeContextProvider`.