wip: change local dev

This commit is contained in:
2025-03-20 05:47:13 +00:00
parent 271456347a
commit 8d3c805985
13 changed files with 407 additions and 130 deletions

View File

@@ -0,0 +1,32 @@
"use client";
import { ReactElement } from 'react';
import classnames from 'classnames';
export default function DraggablePanel(props: DraggablePanelType) {
const { draggable, wdith = 'full', height = 'full', children } = props;
const draggablePanelClass = classnames(
'p-8 grid gap-[16px]',
`h-${height} w-${wdith}`,
{
'h-full': height === 'full' || height === '100%',
'w-full': wdith === 'full' || wdith === '100%',
'base-200': draggable, // 当 active 为 true 时添加
'base-100': !draggable, // 当 disabled 为 true 时添加
});
return (
<div className={draggablePanelClass}>
{
children
}
</div>
);
}
export type DraggablePanelType = {
draggable: boolean;
wdith?: number | string;
height?: number | string;
children: any;
// grid: boolean;
}