mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: 兼容事件绑定
This commit is contained in:
parent
caf9915382
commit
f4c07afba3
@ -152,7 +152,7 @@ function compatiableReducer(props: any) {
|
||||
}
|
||||
}
|
||||
// 为了能降级到老版本,建议在后期版本去掉以下代码
|
||||
if (isJSExpression(val)) {
|
||||
if (isJSExpression(val) && !val.events) {
|
||||
val = {
|
||||
type: 'variable',
|
||||
value: val.mock,
|
||||
|
||||
@ -11,6 +11,10 @@ export interface JSExpression {
|
||||
* 模拟值
|
||||
*/
|
||||
mock?: any;
|
||||
/**
|
||||
* 额外扩展属性,如 extType、events
|
||||
*/
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface JSSlot {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user