style:form-item style improve (#2678)

* style: setting page style improve

* style: setting page style improve
This commit is contained in:
katherinehhh 2023-09-19 17:50:25 +08:00 committed by GitHub
parent bc5ecc9b5f
commit fc609bafb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import uniq from 'lodash/uniq';
import React, { useContext } from 'react';
import { useTranslation } from 'react-i18next';
import { useAPIClient, useRequest } from '../../api-client';
import { SchemaComponent } from '../../schema-component';
import { SchemaComponent, FormItem } from '../../schema-component';
import { PermissionContext } from './PermisionProvider';
const SnippetCheckboxGroup = connect((props) => {
@ -57,7 +57,7 @@ export const RoleConfigure = () => {
const { t } = useTranslation();
return (
<SchemaComponent
components={{ SnippetCheckboxGroup }}
components={{ SnippetCheckboxGroup, FormItem }}
schema={{
type: 'void',
name: 'form',

View File

@ -1,7 +1,7 @@
import { SchemaComponentOptions } from '@nocobase/client';
import React, { useState } from 'react';
import { createPortal } from 'react-dom';
import { FormLayout, FormItem } from '@formily/antd-v5';
import { FormLayout } from '@formily/antd-v5';
import { ImportActionInitializer, ImportDesigner, ImportInitializerProvider } from '.';
import { ImportContext } from './context';
import { ImportModal, ImportStatus } from './ImportModal';
@ -12,7 +12,7 @@ export const ImportPluginProvider = (props: any) => {
const { uploadValidator, beforeUploadHandler, validateUpload } = useShared();
return (
<SchemaComponentOptions
components={{ ImportActionInitializer, ImportDesigner, FormLayout, FormItem }}
components={{ ImportActionInitializer, ImportDesigner, FormLayout }}
scope={{
uploadValidator,
validateUpload,