Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xform
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
田翔
xform
Commits
4de9847f
Commit
4de9847f
authored
Dec 17, 2024
by
杨子龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- 修复操作栏样式映射的bug
parent
69f85fbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
index.js
src/core/widgets/coord/DataTable/index.js
+1
-1
index.js
src/core/widgets/settings/groupSource/OptionRender/index.js
+6
-2
No files found.
src/core/widgets/coord/DataTable/index.js
View file @
4de9847f
...
...
@@ -103,7 +103,7 @@ const DataTable = props => {
const optionCode = json[field]?.code;
let otherProps;
let otherProps
= {}
;
if (type === 'icon') {
const Icon = AntdIcon[json[field]?.label];
if(Icon){
...
...
src/core/widgets/settings/groupSource/OptionRender/index.js
View file @
4de9847f
...
...
@@ -39,6 +39,7 @@ const OptionRender = (props) => {
const
[
loading
,
setLoading
]
=
useState
(
true
)
const
[
currentColor
,
setCurrentColor
]
=
useState
(
''
)
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
parseIndex
,
setParseIndex
]
=
useState
(
null
);
const
[
parseObj
,
setParseObj
]
=
useState
(
`{"key": {"color": "" , "label": ""}}`
);
...
...
@@ -156,6 +157,7 @@ const OptionRender = (props) => {
_
.
isMapped
&&
(
<
Button
type
=
{
"text"
}
onClick
=
{()
=>
{
setVisible
(
true
);
setParseIndex
(
i
);
setParseObj
(
_
.
parseStr
||
`{"key": {"color": "" , "label": ""}}`
)
}}
icon
=
{
<
SettingOutlined
/>
}
/
>
)
...
...
@@ -287,8 +289,10 @@ const OptionRender = (props) => {
const
onOk
=
()
=>
{
const
list
=
[...
value
];
list
.
forEach
(
item
=>
{
item
.
parseStr
=
parseObj
list
.
forEach
((
item
,
index
)
=>
{
if
(
index
===
parseIndex
){
item
.
parseStr
=
parseObj
}
});
onChange
(
list
);
...
...
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