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
c4c5ab2a
Commit
c4c5ab2a
authored
Feb 09, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微调
parent
56809f2a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
16 deletions
+26
-16
index.less
src/index.less
+0
-1
SuggestTable.jsx
src/view/Manage/Model/Component/SuggestTable.jsx
+17
-14
PartitionCURD.jsx
src/view/Manage/ModelConfig/Component/PartitionCURD.jsx
+9
-1
No files found.
src/index.less
View file @
c4c5ab2a
...
...
@@ -177,7 +177,6 @@ tr.drop-over-upward td {
.tooltip-common {
max-width: 450px;
max-height: 350px;
.yy-popover-inner-content {
padding: 8px !important;
...
...
src/view/Manage/Model/Component/SuggestTable.jsx
View file @
c4c5ab2a
...
...
@@ -155,6 +155,7 @@ const SuggestTable = (props) => {
{
title
:
'来源'
,
dataIndex
:
'source'
,
ellipsis
:
true
,
render
:
(
_
,
record
)
=>
{
return
(
<
SourceComponent
data=
{
record
.
recommendedStats
?.
sourceInfos
||
[]
}
onClick=
{
sourceOnClick
}
/>
...
...
@@ -200,6 +201,20 @@ const SuggestTable = (props) => {
setColumns
(
nextColumns
);
};
const
mergedColumns
=
()
=>
{
return
(
columns
.
map
((
column
,
index
)
=>
{
return
{
...
column
,
onHeaderCell
:
column
=>
({
width
:
column
.
width
,
onResize
:
handleResize
(
index
),
}),
};
})
);
}
const
rowSelection
=
{
type
:
'radio'
,
onSelect
:
onTableSelect
,
...
...
@@ -215,9 +230,8 @@ const SuggestTable = (props) => {
let
newColumns
=
[...
cols
];
newColumns
.
forEach
((
column
,
index
)
=>
{
if
(
!
column
.
width
)
{
const
rowWidth
=
(
col
umn
s
.
reduce
((
preVal
,
col
)
=>
(
col
.
width
?
col
.
width
:
0
)
+
preVal
,
0
))
+
50
;
const
rowWidth
=
(
cols
.
reduce
((
preVal
,
col
)
=>
(
col
.
width
?
col
.
width
:
0
)
+
preVal
,
0
))
+
50
;
if
(
width
>
rowWidth
)
{
column
.
width
=
(
width
-
rowWidth
)
>
200
?(
width
-
rowWidth
):
200
;
...
...
@@ -225,7 +239,6 @@ const SuggestTable = (props) => {
column
.
width
=
200
;
}
}
});
setColumns
(
newColumns
);
...
...
@@ -246,17 +259,7 @@ const SuggestTable = (props) => {
cell
:
ResizeableHeaderCell
,
}
}
}
columns=
{
columns
.
map
((
column
,
index
)
=>
{
return
{
...
column
,
onHeaderCell
:
column
=>
({
width
:
column
.
width
,
onResize
:
handleResize
(
index
),
}),
};
})
}
columns=
{
mergedColumns
()
}
onRow=
{
(
record
,
index
)
=>
{
return
{
onClick
:
(
e
)
=>
{
...
...
src/view/Manage/ModelConfig/Component/PartitionCURD.jsx
View file @
c4c5ab2a
...
...
@@ -77,7 +77,15 @@ const PartitionCURD = (props) => {
ellipsis
:
true
,
render
:
(
text
,
_
,
__
)
=>
{
return
(
<
Tooltip
title=
{
text
||
''
}
overlayClassName=
'tooltip-common'
>
<
Tooltip
placement=
'topLeft'
title=
{
<
div
style=
{
{
maxWidth
:
400
,
maxHeight
:
300
,
overflow
:
'auto'
}
}
>
{
text
||
''
}
</
div
>
}
overlayClassName=
'tooltip-common'
>
<
span
>
{
text
||
''
}
</
span
>
</
Tooltip
>
)
...
...
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