mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-16 03:18:11 +00:00
fix: 复制之后 fieldId 重复
This commit is contained in:
parent
cd1fada132
commit
36621ea55c
@ -383,7 +383,10 @@ const builtinComponentActions: ComponentAction[] = [
|
|||||||
action(node: Node) {
|
action(node: Node) {
|
||||||
// node.remove();
|
// node.remove();
|
||||||
const { document: doc, parent, index } = node;
|
const { document: doc, parent, index } = node;
|
||||||
parent && doc.insertNode(parent, node, index, true);
|
if (parent) {
|
||||||
|
const newNode = doc.insertNode(parent, node, index + 1, true);
|
||||||
|
newNode.select();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
important: true,
|
important: true,
|
||||||
|
|||||||
@ -70,6 +70,11 @@ export class Prop implements IPropParent {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 兼容 vision 之前逻辑
|
||||||
|
if (this.key === 'fieldId' && stage === TransformStage.Clone) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
if (type === 'literal' || type === 'expression') {
|
if (type === 'literal' || type === 'expression') {
|
||||||
// TODO 后端改造之后删除此逻辑
|
// TODO 后端改造之后删除此逻辑
|
||||||
if (this._value === null && stage === TransformStage.Save) {
|
if (this._value === null && stage === TransformStage.Save) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user