mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 复制后粘贴组件schema会被schemaFilter方法转换,出现一些异常的结果 (#7919)
* fix: jsonSchemaEditor 输入框高度样式问题 * fix: 内存变量demo 格式调整 * fix: 复制后粘贴组件schema会被schemaFilter方法转换,出现一些异常的结果 --------- Co-authored-by: wutong25 <wutong25@baidu.com>
This commit is contained in:
parent
95855b4626
commit
afc3f2cd1d
@ -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() {
|
||||
|
@ -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
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
@ -63,7 +63,7 @@
|
||||
flex-wrap: wrap;
|
||||
gap: var(--gap-sm);
|
||||
|
||||
align-items: flex-start;
|
||||
align-items: stretch;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user