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

View File

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