Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
e3a0e249
Unverified
Commit
e3a0e249
authored
Sep 25, 2022
by
zhu-mingye
Committed by
GitHub
Sep 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimization sqlGeneration show type (#1055)
parent
2d4401bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
index.tsx
dlink-web/src/pages/DataBase/Generation/index.tsx
+5
-4
No files found.
dlink-web/src/pages/DataBase/Generation/index.tsx
View file @
e3a0e249
...
@@ -18,9 +18,10 @@
...
@@ -18,9 +18,10 @@
*/
*/
import
{
T
ypography
,
Tabs
}
from
'antd'
;
import
{
T
abs
,
Typography
}
from
'antd'
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
getData
}
from
"@/components/Common/crud"
;
import
{
getData
}
from
"@/components/Common/crud"
;
import
CodeShow
from
"@/components/Common/CodeShow"
;
const
{
Paragraph
}
=
Typography
;
const
{
Paragraph
}
=
Typography
;
const
{
TabPane
}
=
Tabs
;
const
{
TabPane
}
=
Tabs
;
...
@@ -56,7 +57,7 @@ const Generation = (props: any) => {
...
@@ -56,7 +57,7 @@ const Generation = (props: any) => {
key=
"FlinkDDL"
key=
"FlinkDDL"
>
>
<
Paragraph
copyable=
{
{
text
:
sqlGeneration
.
flinkSqlCreate
}
}
></
Paragraph
>
<
Paragraph
copyable=
{
{
text
:
sqlGeneration
.
flinkSqlCreate
}
}
></
Paragraph
>
<
pre
style=
{
{
height
:
'300px'
}
}
>
{
sqlGeneration
.
flinkSqlCreate
}
</
pre
>
<
CodeShow
height=
{
"400px"
}
code=
{
sqlGeneration
.
flinkSqlCreate
||
''
}
language=
{
"sql"
}
theme=
{
"vs-dark"
}
/
>
</
TabPane
>
</
TabPane
>
<
TabPane
<
TabPane
tab=
{
tab=
{
...
@@ -67,7 +68,7 @@ const Generation = (props: any) => {
...
@@ -67,7 +68,7 @@ const Generation = (props: any) => {
key=
"SQLSelect"
key=
"SQLSelect"
>
>
<
Paragraph
copyable=
{
{
text
:
sqlGeneration
.
sqlSelect
}
}
></
Paragraph
>
<
Paragraph
copyable=
{
{
text
:
sqlGeneration
.
sqlSelect
}
}
></
Paragraph
>
<
pre
style=
{
{
height
:
'300px'
}
}
>
{
sqlGeneration
.
sqlSelect
}
</
pre
>
<
CodeShow
height=
{
"400px"
}
code=
{
sqlGeneration
.
sqlSelect
||
''
}
language=
{
"sql"
}
theme=
{
"vs-dark"
}
/
>
</
TabPane
>
</
TabPane
>
<
TabPane
<
TabPane
tab=
{
tab=
{
...
@@ -78,7 +79,7 @@ const Generation = (props: any) => {
...
@@ -78,7 +79,7 @@ const Generation = (props: any) => {
key=
"SQLDDL"
key=
"SQLDDL"
>
>
<
Paragraph
copyable=
{
{
text
:
sqlGeneration
.
sqlCreate
}
}
></
Paragraph
>
<
Paragraph
copyable=
{
{
text
:
sqlGeneration
.
sqlCreate
}
}
></
Paragraph
>
<
pre
style=
{
{
height
:
'300px'
}
}
>
{
sqlGeneration
.
sqlCreate
}
</
pre
>
<
CodeShow
height=
{
"400px"
}
code=
{
sqlGeneration
.
sqlCreate
||
''
}
language=
{
"sql"
}
theme=
{
"vs-dark"
}
/
>
</
TabPane
>
</
TabPane
>
</
Tabs
>
</
Tabs
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment