diff --git a/components/config-provider/demo/direction.md b/components/config-provider/demo/direction.md index 709fddaaf7..6b9fcd79d4 100644 --- a/components/config-provider/demo/direction.md +++ b/components/config-provider/demo/direction.md @@ -44,7 +44,7 @@ import { Tree, TreeSelect, } from 'antd'; -import type { DirectionType } from 'antd/lib/config-provider'; +import type { DirectionType } from 'antd/es/config-provider'; import React, { useState } from 'react'; const InputGroup = Input.Group; diff --git a/components/config-provider/demo/locale.md b/components/config-provider/demo/locale.md index 45927b8f56..7115c3f504 100644 --- a/components/config-provider/demo/locale.md +++ b/components/config-provider/demo/locale.md @@ -29,8 +29,8 @@ import { TimePicker, Transfer, } from 'antd'; -import enUS from 'antd/lib/locale/en_US'; -import zhCN from 'antd/lib/locale/zh_CN'; +import enUS from 'antd/es/locale/en_US'; +import zhCN from 'antd/es/locale/zh_CN'; import dayjs from 'dayjs'; import 'dayjs/locale/zh-cn'; import React, { useState } from 'react'; diff --git a/components/config-provider/demo/size.md b/components/config-provider/demo/size.md index 3979eddf96..4f2120bdc7 100644 --- a/components/config-provider/demo/size.md +++ b/components/config-provider/demo/size.md @@ -26,7 +26,7 @@ import { Table, Tabs, } from 'antd'; -import type { SizeType } from 'antd/lib/config-provider/SizeContext'; +import type { SizeType } from 'antd/es/config-provider/SizeContext'; import React, { useState } from 'react'; const { TabPane } = Tabs; diff --git a/components/config-provider/index.en-US.md b/components/config-provider/index.en-US.md index 277f9bf8c8..dffe8a3849 100644 --- a/components/config-provider/index.en-US.md +++ b/components/config-provider/index.en-US.md @@ -49,7 +49,7 @@ Some components use dynamic style to support wave effect. You can config `csp` p | getTargetContainer | Config Affix, Anchor scroll target container | () => HTMLElement | () => window | 4.2.0 | | iconPrefixCls | Set icon prefix className (cooperated with [@iconfont-css-prefix](https://github.com/ant-design/ant-design/blob/d943b85a523bdf181dabc12c928226f3b4b893de/components/style/themes/default.less#L106)) | string | `anticon` | 4.11.0 | | input | Set Input common props | { autoComplete?: string } | - | 4.2.0 | -| locale | Language package setting, you can find the packages in [antd/lib/locale](http://unpkg.com/antd/lib/locale/) | object | - | | +| locale | Language package setting, you can find the packages in [antd/es/locale](http://unpkg.com/antd/es/locale/) | object | - | | | pageHeader | Unify the ghost of PageHeader, ref [PageHeader](/components/page-header) | { ghost: boolean } | true | | | prefixCls | Set prefix className (cooperated with [@ant-prefix](https://github.com/ant-design/ant-design/blob/2c6c789e3a9356f96c47aea0083f5a15538315cf/components/style/themes/default.less#L7)) | string | `ant` | | | renderEmpty | Set empty content of components. Ref [Empty](/components/empty/) | function(componentName: string): ReactNode | - | | diff --git a/components/config-provider/index.zh-CN.md b/components/config-provider/index.zh-CN.md index 9811351865..299348789f 100644 --- a/components/config-provider/index.zh-CN.md +++ b/components/config-provider/index.zh-CN.md @@ -50,7 +50,7 @@ export default () => ( | getTargetContainer | 配置 Affix、Anchor 滚动监听容器。 | () => HTMLElement | () => window | 4.2.0 | | iconPrefixCls | 设置图标统一样式前缀。注意:需要配合 `less` 变量 [@iconfont-css-prefix](https://github.com/ant-design/ant-design/blob/d943b85a523bdf181dabc12c928226f3b4b893de/components/style/themes/default.less#L106) 使用 | string | `anticon` | 4.11.0 | | input | 设置 Input 组件的通用属性 | { autoComplete?: string } | - | 4.2.0 | -| locale | 语言包配置,语言包可到 [antd/lib/locale](http://unpkg.com/antd/lib/locale/) 目录下寻找 | object | - | | +| locale | 语言包配置,语言包可到 [antd/es/locale](http://unpkg.com/antd/es/locale/) 目录下寻找 | object | - | | | pageHeader | 统一设置 PageHeader 的 ghost,参考 [PageHeader](/components/page-header) | { ghost: boolean } | true | | | prefixCls | 设置统一样式前缀。注意:需要配合 `less` 变量 [@ant-prefix](https://github.com/ant-design/ant-design/blob/2c6c789e3a9356f96c47aea0083f5a15538315cf/components/style/themes/default.less#L7) 使用 | string | `ant` | | | renderEmpty | 自定义组件空状态。参考 [空状态](/components/empty/) | function(componentName: string): ReactNode | - | | diff --git a/components/notification/demo/hooks.md b/components/notification/demo/hooks.md index 8b8fc2bfab..5e296a75e7 100755 --- a/components/notification/demo/hooks.md +++ b/components/notification/demo/hooks.md @@ -21,7 +21,7 @@ import { RadiusUprightOutlined, } from '@ant-design/icons'; import { Button, Divider, notification, Space } from 'antd'; -import type { NotificationPlacement } from 'antd/lib/notification'; +import type { NotificationPlacement } from 'antd/es/notification'; import React from 'react'; const Context = React.createContext({ name: 'Default' }); diff --git a/components/notification/demo/placement.md b/components/notification/demo/placement.md index 3cd37643cc..b2685530de 100755 --- a/components/notification/demo/placement.md +++ b/components/notification/demo/placement.md @@ -23,7 +23,7 @@ import { RadiusUprightOutlined, } from '@ant-design/icons'; import { Button, Divider, notification, Space } from 'antd'; -import type { NotificationPlacement } from 'antd/lib/notification'; +import type { NotificationPlacement } from 'antd/es/notification'; import React from 'react'; const App: React.FC = () => {