style:form-item style improve (#2678)
* style: setting page style improve * style: setting page style improve
This commit is contained in:
parent
bc5ecc9b5f
commit
fc609bafb9
@ -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',
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user