mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-10 18:06:02 +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 = {
|
val = {
|
||||||
type: 'variable',
|
type: 'variable',
|
||||||
value: val.mock,
|
value: val.mock,
|
||||||
|
|||||||
@ -11,6 +11,10 @@ export interface JSExpression {
|
|||||||
* 模拟值
|
* 模拟值
|
||||||
*/
|
*/
|
||||||
mock?: any;
|
mock?: any;
|
||||||
|
/**
|
||||||
|
* 额外扩展属性,如 extType、events
|
||||||
|
*/
|
||||||
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface JSSlot {
|
export interface JSSlot {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user