mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix:解决事件动作面板卡死问题
This commit is contained in:
parent
2ae514474f
commit
f166280415
@ -329,7 +329,20 @@ export class EventControl extends React.Component<
|
|||||||
if (config.actionType) {
|
if (config.actionType) {
|
||||||
onEventConfig[event] = {
|
onEventConfig[event] = {
|
||||||
...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
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user