Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chat-query
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
jaden
chat-query
Commits
bd6b7f89
Commit
bd6b7f89
authored
Jun 27, 2023
by
熊洋洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix custom component view
parent
3c52f98c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
pages/actions/View/chatView.tsx
pages/actions/View/chatView.tsx
+9
-1
No files found.
pages/actions/View/chatView.tsx
View file @
bd6b7f89
...
@@ -3,7 +3,9 @@ import { IconCode, IconEye, IconSend } from '@arco-design/web-react/icon';
...
@@ -3,7 +3,9 @@ import { IconCode, IconEye, IconSend } from '@arco-design/web-react/icon';
import
React
,
{
ReactElement
,
memo
,
useCallback
,
useRef
,
useState
}
from
'
react
'
;
import
React
,
{
ReactElement
,
memo
,
useCallback
,
useRef
,
useState
}
from
'
react
'
;
import
{
LiveEditor
,
LiveError
,
LivePreview
,
LiveProvider
}
from
'
react-live-runner
'
;
import
{
LiveEditor
,
LiveError
,
LivePreview
,
LiveProvider
}
from
'
react-live-runner
'
;
import
*
as
styledComponents
from
'
styled-components
'
;
import
*
as
styledComponents
from
'
styled-components
'
;
import
*
as
ReactECharts
from
'
echarts-for-react
'
;
import
*
as
echarts
from
'
echarts
'
;
import
ReactDOM
from
'
react-dom
'
;
import
ReactECharts
from
'
echarts-for-react
'
;
import
AI
from
'
@/components/AITool
'
;
import
AI
from
'
@/components/AITool
'
;
import
useSWRMutation
from
'
swr/mutation
'
;
import
useSWRMutation
from
'
swr/mutation
'
;
import
getView
from
'
@/client/api/getView
'
;
import
getView
from
'
@/client/api/getView
'
;
...
@@ -80,8 +82,14 @@ export function ChatView({
...
@@ -80,8 +82,14 @@ export function ChatView({
data
:
props
,
data
:
props
,
import
:
{
import
:
{
react
:
React
,
react
:
React
,
'
react-dom
'
:
ReactDOM
,
'
styled-components
'
:
styledComponents
,
'
styled-components
'
:
styledComponents
,
'
echarts-for-react
'
:
ReactECharts
,
'
echarts-for-react
'
:
ReactECharts
,
echarts
:
{
default
:
echarts
,
echarts
:
echarts
,
...
echarts
,
},
},
},
}
}
}
}
>
>
...
...
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