perf for size

This commit is contained in:
2025-05-21 18:21:52 +08:00
parent 1b4bad6d2e
commit 85fd48f403
24 changed files with 84 additions and 26 deletions

View File

@@ -16,3 +16,4 @@ export const App = () => {
);
};
export default App;

View File

@@ -1,5 +1,4 @@
import { useEffect, useRef, useState } from 'react';
import { BaseEditor } from '@kevisual/codemirror/editor/editor.ts';
import { lazy, useEffect, useRef, useState } from 'react';
import { Box, Drawer } from '@mui/material';
import { useShallow } from 'zustand/shallow';
import { useContainerStore } from '../store';
@@ -8,6 +7,7 @@ import { IconButton } from '@kevisual/components/button/index.tsx';
import { LeftOutlined, SaveOutlined } from '@ant-design/icons';
// import { previewCode } from './preview-code';
// import { StackIcons } from './StackIcons';
import { BaseEditor } from '@kevisual/codemirror/editor/editor.ts';
export const DrawEdit = () => {
const editorElRef = useRef<HTMLDivElement>(null);