Browse Source

chore: replace lib with es

pull/36362/head
MadCcc 2 years ago
parent
commit
41b8bf1938
  1. 2
      components/config-provider/demo/direction.md
  2. 4
      components/config-provider/demo/locale.md
  3. 2
      components/config-provider/demo/size.md
  4. 2
      components/config-provider/index.en-US.md
  5. 2
      components/config-provider/index.zh-CN.md
  6. 2
      components/notification/demo/hooks.md
  7. 2
      components/notification/demo/placement.md

2
components/config-provider/demo/direction.md

@ -44,7 +44,7 @@ import {
Tree, Tree,
TreeSelect, TreeSelect,
} from 'antd'; } from 'antd';
import type { DirectionType } from 'antd/lib/config-provider'; import type { DirectionType } from 'antd/es/config-provider';
import React, { useState } from 'react'; import React, { useState } from 'react';
const InputGroup = Input.Group; const InputGroup = Input.Group;

4
components/config-provider/demo/locale.md

@ -29,8 +29,8 @@ import {
TimePicker, TimePicker,
Transfer, Transfer,
} from 'antd'; } from 'antd';
import enUS from 'antd/lib/locale/en_US'; import enUS from 'antd/es/locale/en_US';
import zhCN from 'antd/lib/locale/zh_CN'; import zhCN from 'antd/es/locale/zh_CN';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn'; import 'dayjs/locale/zh-cn';
import React, { useState } from 'react'; import React, { useState } from 'react';

2
components/config-provider/demo/size.md

@ -26,7 +26,7 @@ import {
Table, Table,
Tabs, Tabs,
} from 'antd'; } 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'; import React, { useState } from 'react';
const { TabPane } = Tabs; const { TabPane } = Tabs;

2
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 | | 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 | | 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 | | 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 | | | 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` | | | 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 | - | | | renderEmpty | Set empty content of components. Ref [Empty](/components/empty/) | function(componentName: string): ReactNode | - | |

2
components/config-provider/index.zh-CN.md

@ -50,7 +50,7 @@ export default () => (
| getTargetContainer | 配置 Affix、Anchor 滚动监听容器。 | () => HTMLElement | () => window | 4.2.0 | | 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 | | 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 | | 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 | | | 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` | | | 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 | - | | | renderEmpty | 自定义组件空状态。参考 [空状态](/components/empty/) | function(componentName: string): ReactNode | - | |

2
components/notification/demo/hooks.md

@ -21,7 +21,7 @@ import {
RadiusUprightOutlined, RadiusUprightOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
import { Button, Divider, notification, Space } from 'antd'; 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'; import React from 'react';
const Context = React.createContext({ name: 'Default' }); const Context = React.createContext({ name: 'Default' });

2
components/notification/demo/placement.md

@ -23,7 +23,7 @@ import {
RadiusUprightOutlined, RadiusUprightOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
import { Button, Divider, notification, Space } from 'antd'; 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'; import React from 'react';
const App: React.FC = () => { const App: React.FC = () => {

Loading…
Cancel
Save