mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-27 20:30:28 +00:00
feat: duplicate
This commit is contained in:
parent
27cd9165f1
commit
ec932aa774
@ -352,6 +352,8 @@ const builtinComponentActions: ComponentAction[] = [
|
||||
title: intlNode('copy'),
|
||||
action(node: Node) {
|
||||
// node.remove();
|
||||
const { document: doc, parent, schema, index } = node;
|
||||
parent && doc.insertNode(parent, schema, index);
|
||||
},
|
||||
},
|
||||
important: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user