调整draggable的区域,鼠标移动到draggable的区域时,指针调整为移动的icon
This commit is contained in:
@@ -776,7 +776,7 @@ const SCADADataPanel: React.FC<SCADADataPanelProps> = ({
|
||||
return (
|
||||
<>
|
||||
{/* 主面板 */}
|
||||
<Draggable nodeRef={draggableRef}>
|
||||
<Draggable nodeRef={draggableRef} handle=".drag-handle">
|
||||
<Box
|
||||
ref={draggableRef}
|
||||
sx={{
|
||||
@@ -811,12 +811,14 @@ const SCADADataPanel: React.FC<SCADADataPanelProps> = ({
|
||||
>
|
||||
{/* Header */}
|
||||
<Box
|
||||
className="drag-handle"
|
||||
sx={{
|
||||
p: 2,
|
||||
borderBottom: 1,
|
||||
borderColor: "divider",
|
||||
backgroundColor: "primary.main",
|
||||
color: "primary.contrastText",
|
||||
cursor: "move",
|
||||
}}
|
||||
>
|
||||
<Stack
|
||||
|
||||
Reference in New Issue
Block a user