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 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',
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user