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