feat(compo):增加支持窗体拖动的组件。

This commit is contained in:
徐涛 2024-07-11 22:26:55 +08:00
parent 72760a64ea
commit e1330819f2
2 changed files with 18 additions and 0 deletions
src/components

View File

@ -0,0 +1,17 @@
import { css } from "@emotion/react";
import styled from "@emotion/styled";
const Handler = styled.div(
({ theme }) => css`
position: fixed;
top: 0;
left: 0;
right: 0;
height: ${theme.spacings.xxs * 24}px;
z-index: 1;
`
);
export function WindowMoveHandler() {
return <Handler data-tauri-drag-region />;
}

View File

@ -0,0 +1 @@
export { WindowMoveHandler } from "./WindowMoveHandler/WindowMoveHandler";