fix: 修复格式化JSExpression时将数据传丢的问题

This commit is contained in:
荣彬 2021-06-04 09:44:27 +08:00
parent 37809e71e8
commit a6ebc3aa75

View File

@ -1,4 +1,5 @@
import { ComponentType, ReactElement, isValidElement, ComponentClass } from 'react';
import omit from 'lodash/omit';
import { isPlainObject, uniqueId, isVariable } from '@ali/lowcode-utils';
import {
isI18nData,
@ -242,6 +243,7 @@ function formatPropValue(originalValue: any, value: any) {
type: originalValue.type,
value: originalValue.value,
mock: value,
...omit(originalValue, ['type', 'value']),
};
} else if (isVariable(originalValue)) {
return {