fix:解决事件动作面板卡死问题

This commit is contained in:
lvxiaojiao 2023-12-08 20:00:43 +08:00
parent 2ae514474f
commit f166280415

View File

@ -329,7 +329,20 @@ export class EventControl extends React.Component<
if (config.actionType) {
onEventConfig[event] = {
...onEventConfig[event],
actions: (onEventConfig[event].actions || []).concat(config)
actions: (onEventConfig[event].actions || []).concat(
// 临时处理,后面干掉这么多交互属性
Object.defineProperties(config, {
__cmptTreeSource: {
enumerable: false
},
__nodeSchema: {
enumerable: false
},
__subActions: {
enumerable: false
}
})
)
};
}