mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:17:00 +00:00
fix(oidc): field map bug
This commit is contained in:
parent
0606637a73
commit
c9f51ca416
@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SchemaComponent } from '@nocobase/client';
|
import { SchemaComponent } from '@nocobase/client';
|
||||||
import { Card, message } from 'antd';
|
import { Card, message, Space } from 'antd';
|
||||||
import { CopyOutlined } from '@ant-design/icons';
|
import { CopyOutlined } from '@ant-design/icons';
|
||||||
import { observer } from '@formily/react';
|
import { observer } from '@formily/react';
|
||||||
import { FormItem, Input } from '@nocobase/client';
|
import { FormItem, Input } from '@nocobase/client';
|
||||||
@ -82,34 +82,26 @@ const schema = {
|
|||||||
items: {
|
items: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
'x-decorator': 'ArrayItems.Item',
|
'x-decorator': 'ArrayItems.Item',
|
||||||
|
properties: {
|
||||||
|
space: {
|
||||||
|
type: 'void',
|
||||||
|
'x-component': 'Space',
|
||||||
properties: {
|
properties: {
|
||||||
source: {
|
source: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '{{t("source")}}',
|
'x-decorator': 'FormItem',
|
||||||
'x-decorator': 'Editable',
|
|
||||||
'x-component': 'Input',
|
'x-component': 'Input',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
placeholder: '{{t("source")}}',
|
placeholder: '{{t("source")}}',
|
||||||
},
|
},
|
||||||
'x-decorator-props': {
|
|
||||||
style: {
|
|
||||||
width: '45%',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
target: {
|
target: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '{{t("target")}}',
|
'x-decorator': 'FormItem',
|
||||||
'x-decorator': 'Editable',
|
|
||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
placeholder: '{{t("target")}}',
|
placeholder: '{{t("target")}}',
|
||||||
},
|
},
|
||||||
'x-decorator-props': {
|
|
||||||
style: {
|
|
||||||
width: '45%',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
enum: [
|
enum: [
|
||||||
{ label: 'Nickname', value: 'nickname' },
|
{ label: 'Nickname', value: 'nickname' },
|
||||||
{ label: 'Email', value: 'email' },
|
{ label: 'Email', value: 'email' },
|
||||||
@ -123,6 +115,8 @@ const schema = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
properties: {
|
properties: {
|
||||||
add: {
|
add: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
@ -162,5 +156,5 @@ const Usage = observer(() => {
|
|||||||
|
|
||||||
export const Options = () => {
|
export const Options = () => {
|
||||||
const { t } = useOidcTranslation();
|
const { t } = useOidcTranslation();
|
||||||
return <SchemaComponent scope={{ t }} components={{ Usage, ArrayItems }} schema={schema} />;
|
return <SchemaComponent scope={{ t }} components={{ Usage, ArrayItems, Space }} schema={schema} />;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user