fix: 复制后粘贴组件schema会被schemaFilter方法转换,出现一些异常的结果 (#7919)

* fix: jsonSchemaEditor 输入框高度样式问题

* fix: 内存变量demo 格式调整

* fix: 复制后粘贴组件schema会被schemaFilter方法转换,出现一些异常的结果

---------

Co-authored-by: wutong25 <wutong25@baidu.com>
This commit is contained in:
wutong 2023-08-23 19:08:52 +08:00 committed by GitHub
parent 95855b4626
commit afc3f2cd1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -410,8 +410,7 @@ export const MainStore = types
// 用于剔除多余的字段
getSimpleSchema(curSchema: any) {
const schema = JSONPipeOut(curSchema);
return getEnv(self).schemaFilter?.(schema) ?? schema;
return JSONPipeOut(curSchema);
},
getPanelKey() {

View File

@ -194,27 +194,27 @@ const variableSchemas = {
type: 'object',
$id: 'appVariables',
properties: {
'appVariables.ProductName': {
ProductName: {
type: 'string',
title: '产品名称',
default: '对象存储'
},
'appVariables.Banlance': {
Banlance: {
type: 'number',
title: '账户余额',
default: '0.00'
},
'appVariables.ProductNum': {
ProductNum: {
type: 'integer',
title: '产品数量',
default: '0.00'
},
'appVariables.isOnline': {
isOnline: {
type: 'boolean',
title: '是否线上环境',
default: 'false'
},
'appVariables.ProductList': {
ProductList: {
type: 'array',
items: {
type: 'string',
@ -223,7 +223,7 @@ const variableSchemas = {
title: '产品列表',
default: '["BOS", "CFS", "PFS", "CloudFlow", "MongoDB"]'
},
'appVariables.PROFILE': {
PROFILE: {
type: 'object',
title: '个人信息',
properties: {
@ -661,7 +661,8 @@ export default class AMisSchemaEditor extends React.Component<any, any> {
ctx={{
__page: {
num: 2
}
},
...variableDefaultData
}}
/>
);

View File

@ -63,7 +63,7 @@
flex-wrap: wrap;
gap: var(--gap-sm);
align-items: flex-start;
align-items: stretch;
position: relative;
}