@nocobase/flow-engine 2.0.0-alpha.41 → 2.0.0-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -620,14 +620,10 @@ const _FlowModel = class _FlowModel {
620
620
  if (isBeforeRender) {
621
621
  this._lastAutoRunParams = [inputArgs, execOptions.useCache];
622
622
  }
623
- let finalInputArgs = inputArgs;
624
- if (this.context.record) {
625
- finalInputArgs = { record: this.context.record, ...inputArgs };
626
- }
627
623
  if (options == null ? void 0 : options.debounce) {
628
- return this._dispatchEventWithDebounce(eventName, finalInputArgs, execOptions);
624
+ return this._dispatchEventWithDebounce(eventName, inputArgs, execOptions);
629
625
  }
630
- return this._dispatchEvent(eventName, finalInputArgs, execOptions);
626
+ return this._dispatchEvent(eventName, inputArgs, execOptions);
631
627
  }
632
628
  /**
633
629
  * 按事件名获取对应的流程集合(保持 getFlows 的顺序,即按 sort 排序)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/flow-engine",
3
- "version": "2.0.0-alpha.41",
3
+ "version": "2.0.0-alpha.43",
4
4
  "private": false,
5
5
  "description": "A standalone flow engine for NocoBase, managing workflows, models, and actions.",
6
6
  "main": "lib/index.js",
@@ -8,8 +8,8 @@
8
8
  "dependencies": {
9
9
  "@formily/antd-v5": "1.x",
10
10
  "@formily/reactive": "2.x",
11
- "@nocobase/sdk": "2.0.0-alpha.41",
12
- "@nocobase/shared": "2.0.0-alpha.41",
11
+ "@nocobase/sdk": "2.0.0-alpha.43",
12
+ "@nocobase/shared": "2.0.0-alpha.43",
13
13
  "ahooks": "^3.7.2",
14
14
  "dayjs": "^1.11.9",
15
15
  "dompurify": "^3.0.2",
@@ -36,5 +36,5 @@
36
36
  ],
37
37
  "author": "NocoBase Team",
38
38
  "license": "AGPL-3.0",
39
- "gitHead": "889e81eef0280c2e45571bd0a4b2db6aa004f8c1"
39
+ "gitHead": "5e1b7446db50446b80427240a38a9417f3742c05"
40
40
  }
@@ -749,15 +749,11 @@ export class FlowModel<Structure extends DefaultStructure = DefaultStructure> {
749
749
  if (isBeforeRender) {
750
750
  this._lastAutoRunParams = [inputArgs, execOptions.useCache];
751
751
  }
752
- let finalInputArgs = inputArgs;
753
- if (this.context.record) {
754
- finalInputArgs = { record: this.context.record, ...inputArgs };
755
- }
756
752
 
757
753
  if (options?.debounce) {
758
- return this._dispatchEventWithDebounce(eventName, finalInputArgs, execOptions);
754
+ return this._dispatchEventWithDebounce(eventName, inputArgs, execOptions);
759
755
  }
760
- return this._dispatchEvent(eventName, finalInputArgs, execOptions);
756
+ return this._dispatchEvent(eventName, inputArgs, execOptions);
761
757
  }
762
758
 
763
759
  /**