diff --git a/web/src/components/modals/GroupDetail/Panel/GroupPanelTree.tsx b/web/src/components/modals/GroupDetail/Panel/GroupPanelTree.tsx index b904caa4..c705a69b 100644 --- a/web/src/components/modals/GroupDetail/Panel/GroupPanelTree.tsx +++ b/web/src/components/modals/GroupDetail/Panel/GroupPanelTree.tsx @@ -106,7 +106,9 @@ export const GroupPanelTree: React.FC = React.memo((props) => { treeData={treeData} defaultExpandAll={true} blockNode={true} - draggable={true} + draggable={{ + icon: false, + }} selectable={false} titleRender={titleRender} onDrop={handleDrop} diff --git a/web/src/components/modals/GroupDetail/Panel/__tests__/__snapshots__/GroupPanelTree.spec.tsx.snap b/web/src/components/modals/GroupDetail/Panel/__tests__/__snapshots__/GroupPanelTree.spec.tsx.snap index 9e66e6fd..2d96968f 100644 --- a/web/src/components/modals/GroupDetail/Panel/__tests__/__snapshots__/GroupPanelTree.spec.tsx.snap +++ b/web/src/components/modals/GroupDetail/Panel/__tests__/__snapshots__/GroupPanelTree.spec.tsx.snap @@ -48,29 +48,6 @@ exports[`GroupPanelTree simple render snapshot 1`] = ` aria-hidden="true" class="ant-tree-indent" /> - - - - - @@ -161,29 +138,6 @@ exports[`GroupPanelTree simple render snapshot 1`] = ` class="ant-tree-indent-unit ant-tree-indent-unit-start" /> - - - - - @@ -254,29 +208,6 @@ exports[`GroupPanelTree simple render snapshot 1`] = ` class="ant-tree-indent-unit ant-tree-indent-unit-start" /> - - - - - @@ -343,29 +274,6 @@ exports[`GroupPanelTree simple render snapshot 1`] = ` aria-hidden="true" class="ant-tree-indent" /> - - - - - @@ -456,29 +364,6 @@ exports[`GroupPanelTree simple render snapshot 1`] = ` class="ant-tree-indent-unit ant-tree-indent-unit-end" /> - - - - - @@ -549,29 +434,6 @@ exports[`GroupPanelTree simple render snapshot 1`] = ` class="ant-tree-indent-unit ant-tree-indent-unit-end" /> - - - - - diff --git a/web/src/components/modals/GroupDetail/Panel/index.tsx b/web/src/components/modals/GroupDetail/Panel/index.tsx index 9ae2f1b9..f1814c54 100644 --- a/web/src/components/modals/GroupDetail/Panel/index.tsx +++ b/web/src/components/modals/GroupDetail/Panel/index.tsx @@ -72,11 +72,13 @@ export const GroupPanel: React.FC<{ {t('面板管理')} - +
+ +
{!_isEqual(groupPanels, editingGroupPanels) && (