提交 2f88a03c authored 作者: xiongzhenni's avatar xiongzhenni

拖拽

上级 3dff4a6c
...@@ -65,9 +65,9 @@ export default class FormatSetting extends Component { ...@@ -65,9 +65,9 @@ export default class FormatSetting extends Component {
}); });
}; };
render() { render() {
const { bgImage, formatSettingObject, saveConfig } = this.props; const { bgImage, formatSettingObject, saveConfig } = this.props;
const configInfo = Object.keys(formatSettingObject);
return <Fragment> return <Fragment>
<Shell styleShell={{marginTop: '0',marginBottom: '20px'}}> <Shell styleShell={{marginTop: '0',marginBottom: '20px'}}>
...@@ -89,15 +89,15 @@ export default class FormatSetting extends Component { ...@@ -89,15 +89,15 @@ export default class FormatSetting extends Component {
className={styles.bgimage} className={styles.bgimage}
alt={'背景图'} alt={'背景图'}
/> />
{configInfo.map((x) => { {formatSettingObject.map((x, index) => {
return ( return (
<div draggable={true} <div draggable={true}
className={styles.inSideItem} className={styles.inSideItem}
key={x} key={index}
id={x} id={x.name}
style={formatSettingObject[x].style} style={x.style}
> >
{formatSettingObject[x].title} {x.name}
</div> </div>
); );
})} })}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论