@nocobase/plugin-graph-collection-manager 0.10.0-alpha.4 → 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.
|
@@ -1207,7 +1207,9 @@ const GraphDrawPage = _react2().default.memo(() => {
|
|
|
1207
1207
|
className: (0, _css().cx)(_style.collectionListClass)
|
|
1208
1208
|
}, _react2().default.createElement(_client().SchemaComponent, {
|
|
1209
1209
|
components: {
|
|
1210
|
-
Select: props => _react2().default.createElement(_client().Select, _objectSpread(_objectSpread({
|
|
1210
|
+
Select: props => _react2().default.createElement(_client().Select, _objectSpread(_objectSpread({
|
|
1211
|
+
dropdownMatchSelectWidth: false
|
|
1212
|
+
}, props), {}, {
|
|
1211
1213
|
getPopupContainer: _utils.getPopupContainer
|
|
1212
1214
|
})),
|
|
1213
1215
|
AddCollectionAction: _AddCollectionAction.AddCollectionAction
|
|
@@ -84,6 +84,7 @@ const SourceCollection = (0, _react().observer)(() => {
|
|
|
84
84
|
record = _useContext.record;
|
|
85
85
|
const compile = (0, _client().useCompile)();
|
|
86
86
|
return _react2().default.createElement("div", null, _react2().default.createElement(_antd().Select, {
|
|
87
|
+
dropdownMatchSelectWidth: false,
|
|
87
88
|
disabled: true,
|
|
88
89
|
value: record.name,
|
|
89
90
|
options: [{
|
|
@@ -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';
|
|
@@ -303,7 +304,9 @@ const PortsCom = _react().default.memo(({
|
|
|
303
304
|
Input: _client().Input,
|
|
304
305
|
Form: _client().Form,
|
|
305
306
|
ResourceActionProvider: _client().ResourceActionProvider,
|
|
306
|
-
Select: props => _react().default.createElement(_client().Select, _objectSpread(_objectSpread({
|
|
307
|
+
Select: props => _react().default.createElement(_client().Select, _objectSpread(_objectSpread({
|
|
308
|
+
dropdownMatchSelectWidth: false
|
|
309
|
+
}, props), {}, {
|
|
307
310
|
getPopupContainer: _utils.getPopupContainer
|
|
308
311
|
})),
|
|
309
312
|
Checkbox: _client().Checkbox,
|
|
@@ -348,7 +351,8 @@ const PortsCom = _react().default.memo(({
|
|
|
348
351
|
'x-component-props': {
|
|
349
352
|
item: _objectSpread(_objectSpread({}, property), {}, {
|
|
350
353
|
title
|
|
351
|
-
})
|
|
354
|
+
}),
|
|
355
|
+
database
|
|
352
356
|
}
|
|
353
357
|
},
|
|
354
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.
|
|
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.
|
|
18
|
-
"@nocobase/test": "0.10.
|
|
17
|
+
"@nocobase/client": "0.10.1-alpha.1",
|
|
18
|
+
"@nocobase/test": "0.10.1-alpha.1"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "8f415f5e0ee2e72d681f9ab16af5911b52c374a9"
|
|
21
21
|
}
|