feat: add layout and org

This commit is contained in:
2024-10-08 02:44:11 +08:00
parent fd99875461
commit ec5c64d03a
21 changed files with 962 additions and 130 deletions

View File

@@ -11,6 +11,7 @@ import { CloseOutlined, MessageOutlined, SaveOutlined, SelectOutlined } from '@a
import { useDeckPageStore } from './deck-store';
import { FormModal } from './Model.tsx';
import { useAiStore } from '@/pages/ai-chat/index.tsx';
export const useListener = (id?: string, opts?: any) => {
const { refresh } = opts || {};
const connected = useStore((state) => state.connected);
@@ -269,14 +270,10 @@ export const Deck = () => {
deckPageStore.setPageData([..._pageData]);
};
const init = async (data: any[]) => {
console.log(
'init',
data.filter((item) => item.codeId),
);
// console.log('data', data, ref.current);
const container = new ContainerEdit({
root: ref.current!,
data: data.filter((item) => item.codeId),
data: data,
showChild: true,
// edit: false,
});