mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +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 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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user