optimize: rename checkbox component file (#155)

* optimize: rename checkbox component file

* optimize: rename checkbox component file
This commit is contained in:
SemmyWong 2022-01-15 18:45:04 +08:00 committed by GitHub
parent 6ef6dd7717
commit a5393e52c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 11 deletions

View File

@ -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 { CheckOutlined, CloseOutlined } from '@ant-design/icons';
import { connect, mapProps, mapReadPretty, useField } from '@formily/react';
import { isValid } from '@formily/shared'; 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<CheckboxProps> & { type ComposedCheckbox = React.FC<CheckboxProps> & {
Group?: React.FC<CheckboxGroupProps>; Group?: React.FC<CheckboxGroupProps>;

View File

@ -1,10 +1,9 @@
/** /**
* title: 勾选 * title: 勾选
*/ */
import React from 'react';
import { SchemaComponentProvider, SchemaComponent } from '@nocobase/client';
import { Checkbox } from '..';
import { FormItem } from '@formily/antd'; import { FormItem } from '@formily/antd';
import { Checkbox, SchemaComponent, SchemaComponentProvider } from '@nocobase/client';
import React from 'react';
const schema = { const schema = {
type: 'object', type: 'object',

View File

@ -1,10 +1,9 @@
/** /**
* title: * title:
*/ */
import React from 'react';
import { SchemaComponentProvider, SchemaComponent } from '@nocobase/client';
import { Checkbox } from '..';
import { FormItem } from '@formily/antd'; import { FormItem } from '@formily/antd';
import { Checkbox, SchemaComponent, SchemaComponentProvider } from '@nocobase/client';
import React from 'react';
const options = [ const options = [
{ {

View File

@ -0,0 +1 @@
export * from './Checkbox';