Commit 8fda5845 by zhaochengxiang

居中显示

parent 8018f3d0
......@@ -513,12 +513,12 @@ const AssetTree = (props) => {
const exportMenu = (
<Menu>
<Menu.Item>
<div onClick={() => exportAllDir()}>
<div style={{ textAlign: 'center' }} onClick={() => exportAllDir()}>
导出所有
</div>
</Menu.Item>
<Menu.Item>
<div onClick={() => exportCurrentDir()}>
<div style={{ textAlign: 'center' }} onClick={() => exportCurrentDir()}>
导出选中目录
</div>
</Menu.Item>
......
......@@ -398,7 +398,11 @@ const ModelTree = (props) => {
{
viewModes && viewModes.map(item => {
return (
<Menu.Item key={item.key} value={item.key} >{item.name}</Menu.Item>
<Menu.Item key={item.key} value={item.key} >
<div style={{ textAlign: 'center' }}>
{item.name}
</div>
</Menu.Item>
)
})
}
......
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