From 4a4cc9345f8e59d53a0d3fa242da546eeb4ac32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Sat, 21 May 2022 17:34:37 +0800 Subject: [PATCH] docs: update docs --- docs/getting-started.en-US.md | 2 +- docs/getting-started.md | 2 +- docs/schema.md | 6 +++--- tests/form/dependency.test.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/getting-started.en-US.md b/docs/getting-started.en-US.md index 168e82e87621..d44af75016ff 100644 --- a/docs/getting-started.en-US.md +++ b/docs/getting-started.en-US.md @@ -38,7 +38,7 @@ Current ProComponents provides the following components for direct use. Each package is a separate component package, and is used in the following example. ```tsx -import ProForm, { ProFormText } from '@ant-design/pro-components'; +import { ProForm, ProFormText } from '@ant-design/pro-components'; import React from 'react'; export default () => { diff --git a/docs/getting-started.md b/docs/getting-started.md index 454aa0937876..2b2700f6cd33 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -38,7 +38,7 @@ $ npm i @ant-design/pro-components --save 每一个包都是一个独立的组件包,使用示例如下 : ```tsx -import ProForm, { ProFormText } from '@ant-design/pro-components'; +import { ProForm, ProFormText } from '@ant-design/pro-components'; import React from 'react'; export default () => { diff --git a/docs/schema.md b/docs/schema.md index 98b5b6ab0013..dacc5250afd9 100644 --- a/docs/schema.md +++ b/docs/schema.md @@ -287,7 +287,7 @@ const valueEnum = { ``` ```tsx -import { ProFormSelect } from '@ant-design/pro-form'; +import { ProFormSelect } from '@ant-design/pro-components'; import React from 'react'; const valueEnum = { @@ -365,7 +365,7 @@ const columns = [ ``` ```tsx -import { ProFormSelect } from '@ant-design/pro-form'; +import { ProFormSelect } from '@ant-design/pro-components'; import React from 'react'; const options = [ @@ -435,7 +435,7 @@ const columns = [ ``` ```tsx -import ProForm, { ProFormSelect, ProFormText } from '@ant-design/pro-form'; +import { ProForm, ProFormSelect, ProFormText } from '@ant-design/pro-components'; import React from 'react'; const request = async (params) => { diff --git a/tests/form/dependency.test.tsx b/tests/form/dependency.test.tsx index 4f443b7a0b04..47f34d8a227e 100644 --- a/tests/form/dependency.test.tsx +++ b/tests/form/dependency.test.tsx @@ -1,4 +1,4 @@ -import ProForm, { ProFormDependency, ProFormText } from '@ant-design/pro-form'; +import { ProForm, ProFormDependency, ProFormText } from '@ant-design/pro-components'; import { mount } from 'enzyme'; import { act } from 'react-dom/test-utils'; import { waitForComponentToPaint } from '../util';