feat(compo):确定组件的样式如何定义。

This commit is contained in:
徐涛 2024-07-11 22:48:00 +08:00
parent 5f1bd3550a
commit 2fa0f6a283

View File

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