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
a392bd6c
Commit
a392bd6c
authored
Mar 01, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tooltip提示优化
parent
b974d3db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+8
-2
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+6
-4
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
a392bd6c
import
React
,{
useState
,
useEffect
,
useRef
}
from
"react"
;
import
React
,{
useState
,
useEffect
,
useRef
}
from
"react"
;
import
{
Button
,
Pagination
,
Space
,
Modal
,
Input
,
Table
,
Tooltip
,
Checkbox
}
from
"antd"
;
import
{
Button
,
Pagination
,
Space
,
Modal
,
Input
,
Table
,
Tooltip
,
Checkbox
,
Typography
}
from
"antd"
;
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
import
SmoothScroll
from
'smooth-scroll'
;
import
SmoothScroll
from
'smooth-scroll'
;
import
{
Resizable
}
from
'react-resizable'
;
import
{
Resizable
}
from
'react-resizable'
;
...
@@ -15,6 +15,8 @@ import { AnchorId, AnchorTimestamp, AssetBrowseReference, AssetManageReference,
...
@@ -15,6 +15,8 @@ import { AnchorId, AnchorTimestamp, AssetBrowseReference, AssetManageReference,
import
"./AssetTable.less"
;
import
"./AssetTable.less"
;
const
{
Text
}
=
Typography
;
const
ResizeableHeaderCell
=
props
=>
{
const
ResizeableHeaderCell
=
props
=>
{
const
{
onResize
,
width
,
onClick
,
...
restProps
}
=
props
;
const
{
onResize
,
width
,
onClick
,
...
restProps
}
=
props
;
...
@@ -168,7 +170,9 @@ const AssetTable = (props) => {
...
@@ -168,7 +170,9 @@ const AssetTable = (props) => {
render
:
(
text
,
record
)
=>
{
render
:
(
text
,
record
)
=>
{
return
(
return
(
<
Tooltip
title=
{
text
||
''
}
>
<
Tooltip
title=
{
text
||
''
}
>
<
Text
ellipsis=
{
true
}
>
{
text
||
''
}
{
text
||
''
}
</
Text
>
</
Tooltip
>
</
Tooltip
>
);
);
}
}
...
@@ -209,7 +213,9 @@ const AssetTable = (props) => {
...
@@ -209,7 +213,9 @@ const AssetTable = (props) => {
return
(
return
(
<
Tooltip
title=
{
_content
}
>
<
Tooltip
title=
{
_content
}
>
<
span
>
{
_content
}
</
span
>
<
Text
ellipsis=
{
true
}
>
{
_content
}
</
Text
>
</
Tooltip
>
</
Tooltip
>
);
);
}
}
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
a392bd6c
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
,
Typography
}
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'
;
...
@@ -15,6 +15,8 @@ import { AnchorId, AnchorTimestamp, Action, CatalogId, ModelerId } from '../../.
...
@@ -15,6 +15,8 @@ import { AnchorId, AnchorTimestamp, Action, CatalogId, ModelerId } from '../../.
import
'./ModelTable.less'
;
import
'./ModelTable.less'
;
import
'react-contexify/dist/ReactContexify.css'
;
import
'react-contexify/dist/ReactContexify.css'
;
const
{
Text
}
=
Typography
;
const
ModelNameColumn
=
(
props
)
=>
{
const
ModelNameColumn
=
(
props
)
=>
{
const
{
text
,
record
,
detailItem
}
=
props
;
const
{
text
,
record
,
detailItem
}
=
props
;
const
[
data
,
setData
]
=
useState
(
record
);
const
[
data
,
setData
]
=
useState
(
record
);
...
@@ -163,7 +165,7 @@ const ModelTable = (props) => {
...
@@ -163,7 +165,7 @@ const ModelTable = (props) => {
render
:
(
text
,
_
,
__
)
=>
{
render
:
(
text
,
_
,
__
)
=>
{
return
(
return
(
<
Tooltip
title=
{
text
||
''
}
>
<
Tooltip
title=
{
text
||
''
}
>
<
span
>
{
text
||
''
}
</
span
>
<
Text
ellipsis=
{
true
}
>
{
text
||
''
}
</
Text
>
</
Tooltip
>
</
Tooltip
>
)
)
}
}
...
@@ -240,7 +242,7 @@ const ModelTable = (props) => {
...
@@ -240,7 +242,7 @@ const ModelTable = (props) => {
render
:
(
text
,
_
,
__
)
=>
{
render
:
(
text
,
_
,
__
)
=>
{
return
(
return
(
<
Tooltip
title=
{
text
||
''
}
overlayClassName=
'tooltip-common'
>
<
Tooltip
title=
{
text
||
''
}
overlayClassName=
'tooltip-common'
>
<
span
>
{
text
||
''
}
</
span
>
<
Text
ellipsis=
{
true
}
>
{
text
||
''
}
</
Text
>
</
Tooltip
>
</
Tooltip
>
);
);
}
}
...
@@ -257,7 +259,7 @@ const ModelTable = (props) => {
...
@@ -257,7 +259,7 @@ const ModelTable = (props) => {
render
:
(
text
,
_
,
__
)
=>
{
render
:
(
text
,
_
,
__
)
=>
{
return
(
return
(
<
Tooltip
title=
{
text
||
''
}
>
<
Tooltip
title=
{
text
||
''
}
>
<
span
>
{
text
||
''
}
</
span
>
<
Text
ellipsis=
{
true
}
>
{
text
||
''
}
</
Text
>
</
Tooltip
>
</
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