diff --git a/ui/web/src/modules/Interactive/DataView.tsx b/ui/web/src/modules/Interactive/DataView.tsx index fb8cffc3..c2b04981 100644 --- a/ui/web/src/modules/Interactive/DataView.tsx +++ b/ui/web/src/modules/Interactive/DataView.tsx @@ -228,12 +228,17 @@ export function DataView(props: { ); return ( -
+
{topSlot} - {actualLayoutMode === 'table' && } - {actualLayoutMode === 'list' && } +
+ {actualLayoutMode === 'table' && } + {actualLayoutMode === 'list' && } +
); } diff --git a/ui/web/src/modules/SQL/Console.tsx b/ui/web/src/modules/SQL/Console.tsx index 9d0df7c5..9895c0cc 100644 --- a/ui/web/src/modules/SQL/Console.tsx +++ b/ui/web/src/modules/SQL/Console.tsx @@ -1,4 +1,5 @@ -import { Space } from '@douyinfe/semi-ui'; +import { IconPlay } from '@douyinfe/semi-icons'; +import { Space, Typography } from '@douyinfe/semi-ui'; import { ColumnDef } from '@tanstack/react-table'; import { UUID } from '@yuants/data-model'; import '@yuants/sql'; @@ -7,7 +8,7 @@ import { useMemo, useRef, useState } from 'react'; import { firstValueFrom } from 'rxjs'; import { executeCommand, registerCommand } from '../CommandCenter'; import { MonacoEditor } from '../Editor/Monaco'; -import { Button, DataView, Toast } from '../Interactive'; +import { Button, DataView } from '../Interactive'; import { registerPage, usePageParams } from '../Pages'; import { terminal$ } from '../Terminals'; @@ -17,41 +18,14 @@ registerPage('SQLConsole', () => { const { id } = usePageParams() as { id: string }; const editorRef = useRef(null); const [data, setData] = useState([] as any[]); + const [message, setMessage] = useState(''); const columns = useMemo(() => { const a = data[0] || {}; return Object.entries(a).map(([key, value]): ColumnDef => ({ header: key, accessorKey: key })); }, [data]); return ( - - - - -
+ +
{ }} />
-
- +
+ + + {message} + + } + />
);