Commit fb66d2bb authored by 张烨's avatar 张烨

fix: 修复不展示系统皮肤

parent 1f37cf07
......@@ -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>
);
......
......@@ -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.SINGLE_RADIO,
formType: ITEM_TYPE.SELECT,
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: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment