diff --git a/components/config-provider/demo/locale.md b/components/config-provider/demo/locale.md index 9cf053f276..e8aae30381 100644 --- a/components/config-provider/demo/locale.md +++ b/components/config-provider/demo/locale.md @@ -28,7 +28,7 @@ import { Transfer, Radio, } from 'antd'; -import zhCN from 'antd/lib/locale/zh_CN'; +import zhCN from 'antd/es/locale/zh_CN'; import moment from 'moment'; import 'moment/locale/zh-cn'; diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md index 2edc4f2682..1e570e9f52 100644 --- a/components/date-picker/index.en-US.md +++ b/components/date-picker/index.en-US.md @@ -26,7 +26,7 @@ The default locale is en-US, if you need to use other languages, recommend to us If there are special needs (only modifying single component language), Please use the property: local. Example: [default](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json). ```jsx -import locale from 'antd/lib/date-picker/locale/zh_CN'; +import locale from 'antd/es/date-picker/locale/zh_CN'; ; ``` diff --git a/components/date-picker/index.zh-CN.md b/components/date-picker/index.zh-CN.md index a171c452b5..0f9c5fa0bc 100644 --- a/components/date-picker/index.zh-CN.md +++ b/components/date-picker/index.zh-CN.md @@ -27,7 +27,7 @@ subtitle: 日期选择框 如有特殊需求(仅修改单一组件的语言),请使用 locale 参数,参考:[默认配置](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json)。 ```jsx -import locale from 'antd/lib/date-picker/locale/zh_CN'; +import locale from 'antd/es/date-picker/locale/zh_CN'; ; ``` diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index d22502ad6c..d9465c8675 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -227,7 +227,7 @@ See more advanced usage at [async-validator](https://github.com/yiminghe/async-v ```tsx import { Form } from 'antd'; -import { FormComponentProps } from 'antd/lib/form'; +import { FormComponentProps } from 'antd/es/form'; interface UserFormProps extends FormComponentProps { age: number; diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index b54b072fb5..986c14c469 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -229,7 +229,7 @@ validateFields(['field1', 'field2'], options, (errors, values) => { ```tsx import { Form } from 'antd'; -import { FormComponentProps } from 'antd/lib/form'; +import { FormComponentProps } from 'antd/es/form'; interface UserFormProps extends FormComponentProps { age: number; diff --git a/components/locale-provider/demo/all.md b/components/locale-provider/demo/all.md index 375ac5fb39..7a7cf6c41a 100644 --- a/components/locale-provider/demo/all.md +++ b/components/locale-provider/demo/all.md @@ -28,7 +28,7 @@ import { Transfer, Radio, } from 'antd'; -import zhCN from 'antd/lib/locale-provider/zh_CN'; +import zhCN from 'antd/es/locale-provider/zh_CN'; import moment from 'moment'; import 'moment/locale/zh-cn'; diff --git a/components/locale-provider/demo/basic.md b/components/locale-provider/demo/basic.md index 0cef7e027e..5ef028a8a2 100644 --- a/components/locale-provider/demo/basic.md +++ b/components/locale-provider/demo/basic.md @@ -15,7 +15,7 @@ Wrap your app with `LocaleProvider`, and apply the corresponding language packag ```jsx import { Pagination, LocaleProvider } from 'antd'; -import zhCN from 'antd/lib/locale-provider/zh_CN'; +import zhCN from 'antd/es/locale-provider/zh_CN'; const App = () => (
diff --git a/components/locale-provider/index.en-US.md b/components/locale-provider/index.en-US.md index ba54eb78c1..caf6a3c12f 100644 --- a/components/locale-provider/index.en-US.md +++ b/components/locale-provider/index.en-US.md @@ -13,7 +13,7 @@ title: LocaleProvider (Deprecated) ```jsx import { LocaleProvider } from 'antd'; -import fr_FR from 'antd/lib/locale-provider/fr_FR'; +import fr_FR from 'antd/es/locale-provider/fr_FR'; import moment from 'moment'; import 'moment/locale/fr'; @@ -47,7 +47,7 @@ This component aims to provide localization of the built-in text. If you want to | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | -| locale | language package setting, you can find the packages in [antd/lib/locale-provider](http://unpkg.com/antd/lib/locale-provider/) | object | - | | +| locale | language package setting, you can find the packages in [antd/es/locale-provider](http://unpkg.com/antd/es/locale-provider/) | object | - | | ## FAQ diff --git a/components/locale-provider/index.zh-CN.md b/components/locale-provider/index.zh-CN.md index 7b2033f252..bf8ff330c8 100644 --- a/components/locale-provider/index.zh-CN.md +++ b/components/locale-provider/index.zh-CN.md @@ -14,7 +14,7 @@ LocaleProvider 使用 React 的 [context](https://facebook.github.io/react/docs/ ```jsx import { LocaleProvider } from 'antd'; -import zh_CN from 'antd/lib/locale-provider/zh_CN'; +import zh_CN from 'antd/es/locale-provider/zh_CN'; import moment from 'moment'; import 'moment/locale/zh-cn'; @@ -48,7 +48,7 @@ return ; | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | -| locale | 语言包配置,语言包可到 [antd/lib/locale-provider](http://unpkg.com/antd/lib/locale-provider/) 目录下寻找 | object | - | | +| locale | 语言包配置,语言包可到 [antd/es/locale-provider](http://unpkg.com/antd/es/locale-provider/) 目录下寻找 | object | - | | ## FAQ diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index 47a1355db0..b4048fd9e5 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -190,7 +190,7 @@ Properties for row selection. ```tsx import { Table } from 'antd'; -import { ColumnProps } from 'antd/lib/table'; +import { ColumnProps } from 'antd/es/table'; interface User { key: number, diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md index 6172f8e96a..687e86a2f2 100644 --- a/components/table/index.zh-CN.md +++ b/components/table/index.zh-CN.md @@ -195,7 +195,7 @@ const columns = [ ```tsx import { Table } from 'antd'; -import { ColumnProps } from 'antd/lib/table'; +import { ColumnProps } from 'antd/es/table'; interface User { key: number;