Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
zhaochengxiang
szse
Commits
2639f974
Commit
2639f974
authored
Oct 14, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型对比
parent
bf1cf3ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
2 deletions
+47
-2
VersionCompare.jsx
src/view/Manage/Model/Component/VersionCompare.jsx
+8
-2
VersionCompare.less
src/view/Manage/Model/Component/VersionCompare.less
+39
-0
No files found.
src/view/Manage/Model/Component/VersionCompare.jsx
View file @
2639f974
...
@@ -5,6 +5,8 @@ import showdown from 'showdown';
...
@@ -5,6 +5,8 @@ import showdown from 'showdown';
import
{
dispatch
,
dispatchLatest
}
from
'../../../../model'
;
import
{
dispatch
,
dispatchLatest
}
from
'../../../../model'
;
import
{
formatVersionDate
}
from
'../../../../util'
;
import
{
formatVersionDate
}
from
'../../../../util'
;
import
'./VersionCompare.less'
;
const
{
Option
}
=
Select
;
const
{
Option
}
=
Select
;
const
VersionCompare
=
(
props
)
=>
{
const
VersionCompare
=
(
props
)
=>
{
...
@@ -91,7 +93,11 @@ const VersionCompare = (props) => {
...
@@ -91,7 +93,11 @@ const VersionCompare = (props) => {
setLoadingCompare
(
false
);
setLoadingCompare
(
false
);
var
target
=
document
.
getElementById
(
'model-version-compare-container'
);
var
target
=
document
.
getElementById
(
'model-version-compare-container'
);
var
converter
=
new
showdown
.
Converter
();
var
converter
=
new
showdown
.
Converter
({
});
converter
.
setFlavor
(
'github'
);
var
html
=
converter
.
makeHtml
(
data
||
''
);
var
html
=
converter
.
makeHtml
(
data
||
''
);
...
@@ -104,7 +110,7 @@ const VersionCompare = (props) => {
...
@@ -104,7 +110,7 @@ const VersionCompare = (props) => {
}
}
return
(
return
(
<
div
>
<
div
className=
'model-version-compare'
>
<
Form
layout=
'inline'
>
<
Form
layout=
'inline'
>
<
Form
.
Item
label=
'基线版本'
>
<
Form
.
Item
label=
'基线版本'
>
<
Select
loading=
{
loading
}
value=
{
basicVersion
}
style=
{
{
width
:
300
}
}
onChange=
{
onBasicChange
}
>
<
Select
loading=
{
loading
}
value=
{
basicVersion
}
style=
{
{
width
:
300
}
}
onChange=
{
onBasicChange
}
>
...
...
src/view/Manage/Model/Component/VersionCompare.less
0 → 100644
View file @
2639f974
.model-version-compare {
table {
background: #fff;
border: solid 1px #ddd;
margin-bottom: 15px;
table-layout: auto;
display: table;
border-collapse: separate;
border-spacing: 2px;
}
table thead {
background: #F5F5F5;
}
table thead tr th, table tfoot tr th, table tfoot tr td, table tbody tr th, table tbody tr td, table tr td {
display: table-cell;
line-height: 1.125rem;
}
table tr th, table tr td {
color: #222;
font-size: 0.875rem;
padding: 0.5625rem 0.625rem;
text-align: left;
}
table thead tr th, table thead tr td {
color: #222;
font-size: 0.875rem;
font-weight: bold;
padding: 0.5rem 0.625rem 0.625rem;
}
table tr.even, table tr.alt, table tr:nth-of-type(even) {
background: #F9F9F9;
}
}
\ No newline at end of file
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