diff --git a/packages/client/src/schema-component/antd/checkbox/index.tsx b/packages/client/src/schema-component/antd/checkbox/Checkbox.tsx similarity index 95% rename from packages/client/src/schema-component/antd/checkbox/index.tsx rename to packages/client/src/schema-component/antd/checkbox/Checkbox.tsx index 75a321fb1..244c884db 100644 --- a/packages/client/src/schema-component/antd/checkbox/index.tsx +++ b/packages/client/src/schema-component/antd/checkbox/Checkbox.tsx @@ -1,10 +1,10 @@ -import React from 'react'; -import { connect, mapProps, mapReadPretty, useField } from '@formily/react'; -import { Checkbox as AntdCheckbox, Tag } from 'antd'; -import { CheckboxProps, CheckboxGroupProps } from 'antd/lib/checkbox'; -import uniq from 'lodash/uniq'; import { CheckOutlined, CloseOutlined } from '@ant-design/icons'; +import { connect, mapProps, mapReadPretty, useField } from '@formily/react'; import { isValid } from '@formily/shared'; +import { Checkbox as AntdCheckbox, Tag } from 'antd'; +import type { CheckboxGroupProps, CheckboxProps } from 'antd/lib/checkbox'; +import uniq from 'lodash/uniq'; +import React from 'react'; type ComposedCheckbox = React.FC & { Group?: React.FC; diff --git a/packages/client/src/schema-component/antd/checkbox/demos/demo1.tsx b/packages/client/src/schema-component/antd/checkbox/demos/demo1.tsx index defa24bee..31ec4b198 100644 --- a/packages/client/src/schema-component/antd/checkbox/demos/demo1.tsx +++ b/packages/client/src/schema-component/antd/checkbox/demos/demo1.tsx @@ -1,10 +1,9 @@ /** * title: 勾选 */ -import React from 'react'; -import { SchemaComponentProvider, SchemaComponent } from '@nocobase/client'; -import { Checkbox } from '..'; import { FormItem } from '@formily/antd'; +import { Checkbox, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; +import React from 'react'; const schema = { type: 'object', diff --git a/packages/client/src/schema-component/antd/checkbox/demos/demo2.tsx b/packages/client/src/schema-component/antd/checkbox/demos/demo2.tsx index 4a8d66e8c..7ba73c9db 100644 --- a/packages/client/src/schema-component/antd/checkbox/demos/demo2.tsx +++ b/packages/client/src/schema-component/antd/checkbox/demos/demo2.tsx @@ -1,10 +1,9 @@ /** * title: 组 */ -import React from 'react'; -import { SchemaComponentProvider, SchemaComponent } from '@nocobase/client'; -import { Checkbox } from '..'; import { FormItem } from '@formily/antd'; +import { Checkbox, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; +import React from 'react'; const options = [ { diff --git a/packages/client/src/schema-component/antd/checkbox/index.ts b/packages/client/src/schema-component/antd/checkbox/index.ts new file mode 100644 index 000000000..f5c939faf --- /dev/null +++ b/packages/client/src/schema-component/antd/checkbox/index.ts @@ -0,0 +1 @@ +export * from './Checkbox';