mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:06:31 +00:00
fix: incorrect highlight linkage for association field (#4794)
Some checks are pending
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run
Some checks are pending
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run
This commit is contained in:
parent
906e0773d2
commit
9e95aec449
@ -258,7 +258,9 @@ const PopoverContent = React.forwardRef((props: any, ref) => {
|
|||||||
id={property.id}
|
id={property.id}
|
||||||
style={{
|
style={{
|
||||||
background:
|
background:
|
||||||
targetPort || sourcePort === property.id || associated?.includes(property.name) ? '#e6f7ff' : null,
|
targetPort === property.id || sourcePort === property.id || associated?.includes(property.name)
|
||||||
|
? '#e6f7ff'
|
||||||
|
: null,
|
||||||
}}
|
}}
|
||||||
onMouseEnter={() => {
|
onMouseEnter={() => {
|
||||||
setIsHovered(true);
|
setIsHovered(true);
|
||||||
|
@ -59,7 +59,7 @@ export const getChildrenCollections = (collections, name) => {
|
|||||||
};
|
};
|
||||||
export const formatData = (data) => {
|
export const formatData = (data) => {
|
||||||
const edgeData = [];
|
const edgeData = [];
|
||||||
const targetTablekeys = [];
|
const targetTableKeys = [];
|
||||||
|
|
||||||
const tableData = data.map((item) => {
|
const tableData = data.map((item) => {
|
||||||
const ports = [];
|
const ports = [];
|
||||||
@ -88,7 +88,7 @@ export const formatData = (data) => {
|
|||||||
['obo', 'oho', 'o2o', 'o2m', 'm2o', 'm2m', 'linkTo'].includes(field.interface) && edgeData.push(field);
|
['obo', 'oho', 'o2o', 'o2m', 'm2o', 'm2m', 'linkTo'].includes(field.interface) && edgeData.push(field);
|
||||||
});
|
});
|
||||||
|
|
||||||
targetTablekeys.push(item.name);
|
targetTableKeys.push(item.name);
|
||||||
const portsData = formatPortData(ports);
|
const portsData = formatPortData(ports);
|
||||||
return {
|
return {
|
||||||
id: item.name,
|
id: item.name,
|
||||||
@ -101,7 +101,7 @@ export const formatData = (data) => {
|
|||||||
item: item,
|
item: item,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const edges = formatRelationEdgeData(edgeData, targetTablekeys, tableData);
|
const edges = formatRelationEdgeData(edgeData, targetTableKeys, tableData);
|
||||||
const inheritEdges = formatInheritEdgeData(data);
|
const inheritEdges = formatInheritEdgeData(data);
|
||||||
return { nodesData: tableData, edgesData: edges, inheritEdges };
|
return { nodesData: tableData, edgesData: edges, inheritEdges };
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user