mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix: add sub model
This commit is contained in:
parent
20dd8ce576
commit
3b48e2a2c0
@ -12,6 +12,7 @@ import { FlowModel } from '../../models';
|
||||
import { ModelConstructor } from '../../types';
|
||||
import { withFlowDesignMode } from '../common/withFlowDesignMode';
|
||||
import LazyDropdown, { Item, ItemsType } from './LazyDropdown';
|
||||
import _ from 'lodash';
|
||||
|
||||
export interface AddSubModelContext {
|
||||
model: FlowModel;
|
||||
@ -273,7 +274,7 @@ const AddSubModelButtonCore = function AddSubModelButton({
|
||||
|
||||
try {
|
||||
addedModel = model.flowEngine.createModel({
|
||||
...createOpts,
|
||||
..._.cloneDeep(createOpts),
|
||||
parentId: model.uid,
|
||||
subKey: subModelKey,
|
||||
subType: subModelType,
|
||||
|
@ -140,8 +140,7 @@
|
||||
"@nocobase/plugin-workflow-sql",
|
||||
"@nocobase/plugin-workflow-notification",
|
||||
"@nocobase/plugin-theme-editor",
|
||||
"@nocobase/plugin-block-template",
|
||||
"@nocobase/plugin-block-lowcode"
|
||||
"@nocobase/plugin-block-template"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
x
Reference in New Issue
Block a user