1
This commit is contained in:
parent
0ef01ce4d4
commit
b843b4603f
@ -11,6 +11,7 @@ import {
|
|||||||
RedoOutlined,
|
RedoOutlined,
|
||||||
ScissorOutlined,
|
ScissorOutlined,
|
||||||
SnippetsOutlined,
|
SnippetsOutlined,
|
||||||
|
SelectOutlined,
|
||||||
} from '@ant-design/icons';
|
} from '@ant-design/icons';
|
||||||
import {Graph, Cell} from '@antv/x6';
|
import {Graph, Cell} from '@antv/x6';
|
||||||
import '@antv/x6-plugin-snapline';
|
import '@antv/x6-plugin-snapline';
|
||||||
@ -420,6 +421,20 @@ const WorkflowDesign: React.FC = () => {
|
|||||||
extra={
|
extra={
|
||||||
<Space>
|
<Space>
|
||||||
<Space.Compact>
|
<Space.Compact>
|
||||||
|
<Button
|
||||||
|
icon={<SelectOutlined />}
|
||||||
|
onClick={() => {
|
||||||
|
if (!graph) return;
|
||||||
|
const cells = graph.getCells();
|
||||||
|
if (cells.length === 0) {
|
||||||
|
message.info('当前没有可选择的元素');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
graph.resetSelection();
|
||||||
|
graph.select(cells);
|
||||||
|
}}
|
||||||
|
title="全选"
|
||||||
|
/>
|
||||||
<Button
|
<Button
|
||||||
icon={<CopyOutlined />}
|
icon={<CopyOutlined />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user