From ae7197861599428161998386689a4c62290ae5e6 Mon Sep 17 00:00:00 2001 From: yvonneyx Date: Wed, 11 Dec 2024 14:29:00 +0800 Subject: [PATCH] fix: typo --- packages/graphs/src/components/fishbone/types.ts | 2 +- .../graphs/src/components/flow-direction-graph/types.ts | 2 +- packages/graphs/src/components/indented-tree/types.ts | 2 +- .../graphs/src/core/base/node/organization-chart-node.tsx | 6 +++--- packages/graphs/src/core/utils/label.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/graphs/src/components/fishbone/types.ts b/packages/graphs/src/components/fishbone/types.ts index 698ba428a..79b2ce9b9 100644 --- a/packages/graphs/src/components/fishbone/types.ts +++ b/packages/graphs/src/components/fishbone/types.ts @@ -1,5 +1,5 @@ import type { NodeData } from '@antv/g6'; -import { GraphOptions } from '../../types'; +import type { GraphOptions } from '../../types'; export interface FishboneOptions extends GraphOptions { /** diff --git a/packages/graphs/src/components/flow-direction-graph/types.ts b/packages/graphs/src/components/flow-direction-graph/types.ts index 3dd1e502f..a0e5f871c 100644 --- a/packages/graphs/src/components/flow-direction-graph/types.ts +++ b/packages/graphs/src/components/flow-direction-graph/types.ts @@ -1,5 +1,5 @@ import type { NodeData } from '@antv/g6'; -import { GraphOptions } from '../../types'; +import type { GraphOptions } from '../../types'; export interface FlowDirectionGraphOptions extends GraphOptions { /** diff --git a/packages/graphs/src/components/indented-tree/types.ts b/packages/graphs/src/components/indented-tree/types.ts index 72397799d..5bb356328 100644 --- a/packages/graphs/src/components/indented-tree/types.ts +++ b/packages/graphs/src/components/indented-tree/types.ts @@ -1,4 +1,4 @@ -import { NodeData } from '@antv/g6'; +import type { NodeData } from '@antv/g6'; import type { GraphOptions } from '../../types'; export interface IndentedTreeOptions extends GraphOptions { diff --git a/packages/graphs/src/core/base/node/organization-chart-node.tsx b/packages/graphs/src/core/base/node/organization-chart-node.tsx index 1886ea013..85e808ece 100644 --- a/packages/graphs/src/core/base/node/organization-chart-node.tsx +++ b/packages/graphs/src/core/base/node/organization-chart-node.tsx @@ -23,7 +23,7 @@ export interface OrganizationChartNodeProps extends Pick` height: inherit; width: inherit; - border-radius: 4px; + border-radius: 8px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.1); position: relative; border: none; @@ -34,14 +34,14 @@ const StyledWrapper = styled.div<{ $color?: string; $isActive?: boolean }>` props.$isActive && css` transform: translate(-3px, -3px); - border: 3px solid #1783ff; + border: 2px solid #1783ff; `} .org-chart-node-line { width: 100%; height: 6px; background-color: ${(props) => props.$color}; - border-radius: 2px 2px 0 0; + border-radius: 8px 8px 0 0; } .org-chart-node-content { diff --git a/packages/graphs/src/core/utils/label.ts b/packages/graphs/src/core/utils/label.ts index 86310ba45..996831e9a 100644 --- a/packages/graphs/src/core/utils/label.ts +++ b/packages/graphs/src/core/utils/label.ts @@ -1,4 +1,4 @@ -import { NodeData } from '@antv/g6'; +import type { NodeData } from '@antv/g6'; import { get } from 'lodash'; export function formatLabel(datum: NodeData, labelField?: string | ((datum: NodeData) => string)): string {