mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 14:04:28 +00:00
fix: 修复格式化JSExpression时将数据传丢的问题
This commit is contained in:
parent
37809e71e8
commit
a6ebc3aa75
@ -1,4 +1,5 @@
|
|||||||
import { ComponentType, ReactElement, isValidElement, ComponentClass } from 'react';
|
import { ComponentType, ReactElement, isValidElement, ComponentClass } from 'react';
|
||||||
|
import omit from 'lodash/omit';
|
||||||
import { isPlainObject, uniqueId, isVariable } from '@ali/lowcode-utils';
|
import { isPlainObject, uniqueId, isVariable } from '@ali/lowcode-utils';
|
||||||
import {
|
import {
|
||||||
isI18nData,
|
isI18nData,
|
||||||
@ -242,6 +243,7 @@ function formatPropValue(originalValue: any, value: any) {
|
|||||||
type: originalValue.type,
|
type: originalValue.type,
|
||||||
value: originalValue.value,
|
value: originalValue.value,
|
||||||
mock: value,
|
mock: value,
|
||||||
|
...omit(originalValue, ['type', 'value']),
|
||||||
};
|
};
|
||||||
} else if (isVariable(originalValue)) {
|
} else if (isVariable(originalValue)) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user