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
fb66d2bb
Commit
fb66d2bb
authored
Dec 02, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复不展示系统皮肤
parent
1f37cf07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
index.js
src/components/BaseForm/index.js
+1
-1
utils.js
src/pages/webConfig/utils.js
+11
-7
No files found.
src/components/BaseForm/index.js
View file @
fb66d2bb
...
...
@@ -48,7 +48,7 @@ const BaseFormItem = itemOption => {
return
(
<
Radio
.
Group
{...
rest
}
>
{
options
.
map
((
o
,
i
)
=>
(
<
Radio
{...
o
}
key
=
{
`item_
${
i
}
`
}
/
>
<
Radio
key
=
{
`item_
${
i
}
`
}
{...
o
}
/
>
))}
<
/Radio.Group
>
);
...
...
src/pages/webConfig/utils.js
View file @
fb66d2bb
...
...
@@ -40,7 +40,7 @@ export const MDILabel = {
SDI
:
'单标签模式'
,
};
export
const
notificationTypes
=
{
notify
:
'轮询通知'
,
//
notify: '轮询通知',
MQTT
:
'MQTT消息'
,
};
...
...
@@ -170,13 +170,17 @@ export const getDefaultGetWebconfig = ({
},
theme
:
{
label
:
'系统皮肤'
,
formType
:
ITEM_TYPE
.
S
INGLE_RADIO
,
formType
:
ITEM_TYPE
.
S
ELECT
,
initialValue
:
''
,
options
:
webThemes
.
map
(
t
=>
({
value
:
t
.
value
,
children
:
t
.
text
,
key
:
t
.
value
,
})),
showSearch
:
true
,
filterOption
:
(
input
,
option
)
=>
option
.
children
.
toLowerCase
().
indexOf
(
input
.
toLowerCase
())
>=
0
,
options
:
webThemes
.
map
(
t
=>
({
value
:
t
.
value
,
children
:
t
.
text
,
key
:
t
.
value
,
}))
||
[],
onDropdownVisibleChange
:
onGetThemes
,
},
style
:
{
...
...
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