Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wangjin-front-end
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
张媛
wangjin-front-end
Commits
690210fd
Commit
690210fd
authored
Jul 19, 2021
by
张媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复代码格式问题
parent
fc2a4d9f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
codeCom.tsx
src/canvasCom/polygonSystemCom/codeCom.tsx
+0
-1
codeCom.tsx
src/reactCom/danma/codeCom.tsx
+4
-2
No files found.
src/canvasCom/polygonSystemCom/codeCom.tsx
View file @
690210fd
import
React
from
'react'
;
import
{
UnControlled
as
CodeMirror
}
from
'react-codemirror2'
;
const
jsBeautify
=
require
(
"js-beautify"
).
html
;
...
...
src/reactCom/danma/codeCom.tsx
View file @
690210fd
...
...
@@ -10,7 +10,8 @@ interface Props {
const
CodePanel
=
(
args
:
Props
)
=>
{
return
(
<
div
className
=
"
code
"
>
<
CodeMirror
value=
{
args
.
code
}
<
CodeMirror
value=
{
args
.
code
}
options
=
{{
mode
:"
javascript
",
theme
:"
dracula
",
...
...
@@ -26,7 +27,8 @@ const CodePanel =(args:Props) => {
const
StylePanel
=
(
args
:
Props
)
=>
{
return
(
<
div
className
=
"
code
"
>
<
CodeMirror
value=
{
args
.
code
}
<
CodeMirror
value=
{
args
.
code
}
options
=
{{
mode
:"
css
",
theme
:"
dracula
",
...
...
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