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
3f549c0d
Commit
3f549c0d
authored
Feb 28, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型样式调整
parent
bbb5cdf4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
12 deletions
+25
-12
index.less
src/index.less
+6
-7
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+9
-2
ImportActionTable.less
src/view/Manage/Model/Component/ImportActionTable.less
+8
-1
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+2
-2
No files found.
src/index.less
View file @
3f549c0d
...
...
@@ -176,9 +176,14 @@ tr.drop-over-upward td {
outline: none;
}
.tooltip-common {
.yy-tooltip-content, .yy-tooltip-arrow-content, .yy-tooltip-inner {
background: #fff !important;
color: #000 !important;
}
.tooltip-common {
max-width: 450px;
color: #000 !important;
.yy-popover-inner-content {
padding: 8px !important;
...
...
@@ -187,12 +192,6 @@ tr.drop-over-upward td {
.yy-table-thead > tr > th, .yy-table-tbody > tr > td {
font-size: 13px !important;
padding: 4px 8px !important;
background-color: #404040 !important;
color: #fff !important;
}
.yy-descriptions-item-label, .yy-descriptions-item-content {
color: #fff !important;
}
}
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
3f549c0d
...
...
@@ -1251,8 +1251,15 @@ const ImportActionTable = (props) => {
return 'editable-row template-highlight-row';
}
if (type==='model' && record?.needAttention && !isEditing(record)) {
return 'editable-row attention-row';
if (type==='model' && !isEditing(record)) {
if (record?.needAttention) {
return 'editable-row attention-row';
} else {
const index = (modelerData?.easyDataModelerPrimaryKey||[]).findIndex(item => item.iid===record?.iid);
if (index !== -1) {
return 'editable-row primary-row';
}
}
}
return 'editable-row';
...
...
src/view/Manage/Model/Component/ImportActionTable.less
View file @
3f549c0d
...
...
@@ -19,7 +19,13 @@
.attention-row {
.yy-table-cell {
background-color: #FAC7CD !important;
background-color: #9dcef3 !important;
}
}
.primary-row {
.yy-table-cell {
background-color: #f2fcfe !important;
}
}
}
\ No newline at end of file
src/view/Manage/Model/Component/ModelTable.jsx
View file @
3f549c0d
import
React
,
{
useState
,
useEffect
,
useRef
}
from
"react"
;
import
{
Tooltip
,
Modal
,
Pagination
,
Table
}
from
'antd'
;
import
{
Tooltip
,
Modal
,
Pagination
,
Table
,
Popover
}
from
'antd'
;
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
SmoothScroll
from
'smooth-scroll'
;
import
classnames
from
'classnames'
;
...
...
@@ -45,7 +45,7 @@ const ModelNameColumn = (props) => {
},
];
let
_textComponent
=
<
span
>
{
text
}
</
span
>;
let
_textComponent
=
<
span
style=
{
{
color
:
'#000'
}
}
>
{
text
}
</
span
>;
if
(
data
.
digest
)
{
_textComponent
=
<
div
style=
{
{
width
:
400
,
maxHeight
:
300
,
overflow
:
'auto'
}
}
>
<
Table
...
...
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