mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38:14 +00:00
fix: 快捷键增加判断
This commit is contained in:
parent
e18a2311d8
commit
0f64829826
@ -707,7 +707,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
|||||||
* 是否可执行某action
|
* 是否可执行某action
|
||||||
*/
|
*/
|
||||||
canPerformAction(action: string): boolean {
|
canPerformAction(action: string): boolean {
|
||||||
const availableActions = this.componentMeta?.availableActions?.map((action) => action.name);
|
const availableActions = this.componentMeta?.availableActions?.map((action) => action.name) || [];
|
||||||
return availableActions.indexOf(action) >= 0;
|
return availableActions.indexOf(action) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user