mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
20 lines
404 B
TypeScript
20 lines
404 B
TypeScript
import React from 'react';
|
|
import { observer } from '@formily/react';
|
|
import { DndContext } from '../dnd-context';
|
|
|
|
export const Grid: any = observer((props) => {
|
|
return (
|
|
<div>
|
|
<DndContext>{props.children}</DndContext>
|
|
</div>
|
|
);
|
|
});
|
|
|
|
Grid.Row = observer((props) => {
|
|
return <div>{props.children}</div>;
|
|
});
|
|
|
|
Grid.Col = observer((props) => {
|
|
return <div>{props.children}</div>;
|
|
});
|