Commit 3f549c0d by zhaochengxiang

模型样式调整

parent bbb5cdf4
...@@ -176,9 +176,14 @@ tr.drop-over-upward td { ...@@ -176,9 +176,14 @@ tr.drop-over-upward td {
outline: none; 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; max-width: 450px;
color: #000 !important;
.yy-popover-inner-content { .yy-popover-inner-content {
padding: 8px !important; padding: 8px !important;
...@@ -187,12 +192,6 @@ tr.drop-over-upward td { ...@@ -187,12 +192,6 @@ tr.drop-over-upward td {
.yy-table-thead > tr > th, .yy-table-tbody > tr > td { .yy-table-thead > tr > th, .yy-table-tbody > tr > td {
font-size: 13px !important; font-size: 13px !important;
padding: 4px 8px !important; padding: 4px 8px !important;
background-color: #404040 !important;
color: #fff !important;
} }
.yy-descriptions-item-label, .yy-descriptions-item-content {
color: #fff !important;
}
} }
...@@ -1251,8 +1251,15 @@ const ImportActionTable = (props) => { ...@@ -1251,8 +1251,15 @@ const ImportActionTable = (props) => {
return 'editable-row template-highlight-row'; return 'editable-row template-highlight-row';
} }
if (type==='model' && record?.needAttention && !isEditing(record)) { if (type==='model' && !isEditing(record)) {
return 'editable-row attention-row'; 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'; return 'editable-row';
......
...@@ -19,7 +19,13 @@ ...@@ -19,7 +19,13 @@
.attention-row { .attention-row {
.yy-table-cell { .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
import React, { useState, useEffect, useRef } from "react"; 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 { DownOutlined, UpOutlined } from '@ant-design/icons';
import SmoothScroll from 'smooth-scroll'; import SmoothScroll from 'smooth-scroll';
import classnames from 'classnames'; import classnames from 'classnames';
...@@ -45,7 +45,7 @@ const ModelNameColumn = (props) => { ...@@ -45,7 +45,7 @@ const ModelNameColumn = (props) => {
}, },
]; ];
let _textComponent = <span>{text}</span>; let _textComponent = <span style={{ color: '#000' }}>{text}</span>;
if (data.digest) { if (data.digest) {
_textComponent = <div style={{ width: 400, maxHeight: 300, overflow: 'auto' }}> _textComponent = <div style={{ width: 400, maxHeight: 300, overflow: 'auto' }}>
<Table <Table
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment