@nocobase/flow-engine 2.0.35 → 2.0.36
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.
package/lib/data-source/index.js
CHANGED
|
@@ -461,6 +461,12 @@ const _Collection = class _Collection {
|
|
|
461
461
|
}
|
|
462
462
|
get titleCollectionField() {
|
|
463
463
|
const titleFieldName = this.options.titleField || this.filterTargetKey;
|
|
464
|
+
if (Array.isArray(titleFieldName)) {
|
|
465
|
+
if (titleFieldName.length !== 1) {
|
|
466
|
+
return void 0;
|
|
467
|
+
}
|
|
468
|
+
return this.getField(titleFieldName[0]);
|
|
469
|
+
}
|
|
464
470
|
const titleCollectionField = this.getField(titleFieldName);
|
|
465
471
|
return titleCollectionField;
|
|
466
472
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/flow-engine",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.36",
|
|
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.
|
|
12
|
-
"@nocobase/shared": "2.0.
|
|
11
|
+
"@nocobase/sdk": "2.0.36",
|
|
12
|
+
"@nocobase/shared": "2.0.36",
|
|
13
13
|
"ahooks": "^3.7.2",
|
|
14
14
|
"axios": "^1.7.0",
|
|
15
15
|
"dayjs": "^1.11.9",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
],
|
|
38
38
|
"author": "NocoBase Team",
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "7514980b14f7584ded34e49ced5ee0457eb5c0c2"
|
|
41
41
|
}
|
package/src/data-source/index.ts
CHANGED
|
@@ -501,6 +501,12 @@ export class Collection {
|
|
|
501
501
|
|
|
502
502
|
get titleCollectionField() {
|
|
503
503
|
const titleFieldName = this.options.titleField || this.filterTargetKey;
|
|
504
|
+
if (Array.isArray(titleFieldName)) {
|
|
505
|
+
if (titleFieldName.length !== 1) {
|
|
506
|
+
return undefined;
|
|
507
|
+
}
|
|
508
|
+
return this.getField(titleFieldName[0]);
|
|
509
|
+
}
|
|
504
510
|
const titleCollectionField = this.getField(titleFieldName);
|
|
505
511
|
return titleCollectionField;
|
|
506
512
|
}
|