@nocobase/plugin-graph-collection-manager 0.10.0-alpha.5 → 0.10.1-alpha.1

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.
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
- export declare const AddFieldAction: ({ item: record }: {
2
+ export declare const AddFieldAction: ({ item: record, database }: {
3
3
  item: any;
4
+ database: any;
4
5
  }) => React.JSX.Element;
@@ -43,7 +43,8 @@ const _useCreateCollectionField = record => {
43
43
  };
44
44
  };
45
45
  const AddFieldAction = ({
46
- item: record
46
+ item: record,
47
+ database
47
48
  }) => {
48
49
  return _react().default.createElement(_client().AddFieldAction, {
49
50
  trigger: ['click'],
@@ -54,6 +55,7 @@ const AddFieldAction = ({
54
55
  },
55
56
 
56
57
  item: record,
58
+ database: database,
57
59
  scope: {
58
60
  useCancelAction: _actionHooks.useCancelAction,
59
61
  useCreateCollectionField: () => _useCreateCollectionField(record)
@@ -251,6 +251,7 @@ const PortsCom = _react().default.memo(({
251
251
  const _useGCMTranslation = (0, _utils.useGCMTranslation)(),
252
252
  t = _useGCMTranslation.t;
253
253
  const compile = (0, _client().useCompile)();
254
+ const database = (0, _client().useCurrentAppInfo)();
254
255
  const portsData = (0, _lodash().groupBy)(ports.items, v => {
255
256
  if (v.isForeignKey || v.primaryKey || ['obo', 'oho', 'o2o', 'o2m', 'm2o', 'm2m', 'linkTo', 'id'].includes(v.interface)) {
256
257
  return 'initPorts';
@@ -350,7 +351,8 @@ const PortsCom = _react().default.memo(({
350
351
  'x-component-props': {
351
352
  item: _objectSpread(_objectSpread({}, property), {}, {
352
353
  title
353
- })
354
+ }),
355
+ database
354
356
  }
355
357
  },
356
358
  update: {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "数据库可视化管理",
5
5
  "description": "database collection manage",
6
6
  "description.zh-CN": "数据库管理。",
7
- "version": "0.10.0-alpha.5",
7
+ "version": "0.10.1-alpha.1",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./lib/index.js",
10
10
  "types": "./lib/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "dagre": "^0.8.5"
15
15
  },
16
16
  "devDependencies": {
17
- "@nocobase/client": "0.10.0-alpha.5",
18
- "@nocobase/test": "0.10.0-alpha.5"
17
+ "@nocobase/client": "0.10.1-alpha.1",
18
+ "@nocobase/test": "0.10.1-alpha.1"
19
19
  },
20
- "gitHead": "1be8fcdad42688064460761cea22830cf392c7c0"
20
+ "gitHead": "8f415f5e0ee2e72d681f9ab16af5911b52c374a9"
21
21
  }