Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
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
ReactWeb5
CivManage
Commits
7bcf7dc5
Commit
7bcf7dc5
authored
3 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '修改表字段样式'
parent
6d542bbc
Pipeline
#48063
passed with stages
in 7 minutes 12 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
3 deletions
+42
-3
filedConfig.jsx
...s/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
+42
-3
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
View file @
7bcf7dc5
...
...
@@ -101,6 +101,15 @@ const AddModal = props => {
key
:
'name'
,
align
:
'left'
,
width
:
300
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
300
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
render
:
(
text
,
record
)
=>
{
let
aa
=
(
<
div
style=
{
{
fontWeight
:
'bold'
}
}
>
...
...
@@ -109,7 +118,11 @@ const AddModal = props => {
</
span
>
</
div
>
);
let
bb
=
<
div
style=
{
{
color
:
styleConfig
(
record
)
}
}
>
{
text
}
</
div
>;
let
bb
=
(
<
Tooltip
placement=
"topLeft"
title=
{
text
}
>
<
div
style=
{
{
color
:
styleConfig
(
record
)
}
}
>
{
text
}
</
div
>
</
Tooltip
>
);
const
obj
=
{
children
:
record
.
children
?
aa
:
bb
,
props
:
{},
...
...
@@ -124,9 +137,22 @@ const AddModal = props => {
key
:
'alias'
,
align
:
'center'
,
width
:
300
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
300
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
render
:
(
text
,
record
)
=>
{
const
obj
=
{
children
:
<
span
style=
{
{
color
:
styleConfig
(
record
)
}
}
>
{
text
}
</
span
>,
children
:
(
<
Tooltip
placement=
"topLeft"
title=
{
text
}
>
<
span
style=
{
{
color
:
styleConfig
(
record
)
}
}
>
{
text
}
</
span
>
</
Tooltip
>
),
props
:
{},
};
obj
.
props
.
colSpan
=
record
.
children
?
0
:
1
;
...
...
@@ -169,9 +195,22 @@ const AddModal = props => {
key
:
'config'
,
align
:
'center'
,
width
:
250
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
250
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
render
:
(
text
,
record
)
=>
{
const
obj
=
{
children
:
<
span
style=
{
{
color
:
styleConfig
(
record
)
}
}
>
{
text
}
</
span
>,
children
:
(
<
Tooltip
placement=
"topLeft"
title=
{
text
}
>
<
span
style=
{
{
color
:
styleConfig
(
record
)
}
}
>
{
text
}
</
span
>
</
Tooltip
>
),
props
:
{},
};
obj
.
props
.
colSpan
=
record
.
children
?
0
:
1
;
...
...
This diff is collapsed.
Click to expand it.
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