From e9bc0ad97a6e9140db3027e775ea48fe00d96267 Mon Sep 17 00:00:00 2001 From: smallstonesk <575913857@qq.com> Date: Sun, 3 Jan 2021 00:06:09 +0800 Subject: [PATCH] feat: add tips when coping node successfully --- packages/core/src/common/shortcuts.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/common/shortcuts.ts b/packages/core/src/common/shortcuts.ts index 88adbfe..ea250c0 100644 --- a/packages/core/src/common/shortcuts.ts +++ b/packages/core/src/common/shortcuts.ts @@ -1,5 +1,6 @@ import { safeGet } from '../utils'; import { localSave } from '../api'; +import { message } from 'antd'; import { Cell, Edge, Graph, Node } from '@antv/x6'; import { MIN_ZOOM, MAX_ZOOM, ZOOM_STEP } from './const'; import { getSelectedNodes } from '../utils/flowChartUtils'; @@ -53,6 +54,7 @@ const shortcuts: { [key: string]: Shortcut } = { const cells = flowChart.getSelectedCells(); if (cells.length > 0) { flowChart.copy(cells); + message.success('倍刢成功'); } return false; },