<Grid style={{ margin: 0, padding: 0, display: "flex" }} >
<Grid style={{ width: "70px", margin: "12px 0 0 12px" }} >
{typeList && typeList.map((item: any, index: any) => (
<Paper >
<ListM component="div">
<ListItem button style={typeId == item.id ? { background: '#ccc', height: "30px" } : { height: "30px" }} onClick={() => handleSelectType(item.id)}>
<ListItemText>{item.name}</ListItemText>
</ListItem>
</ListM>
</Paper>
))}
<Card>
</Card>
</Grid>
<Grid style={{ flexGrow: "1", margin: "24px 0 0 24px" }} >
<Paper>
<List hasCreate={true} filter={typeId ? { style_id: id, mat_id: typeId } : { style_id: id }} exporter={false} hasEdit={true} resource="t_base_style_materiel">
<MaterialTabChange typeId={typeId} value={value}></MaterialTabChange>
</List>
</Paper>
</Grid>
</Grid>
标签:index,item,admin,material,id,react,typeList,叁佰肆,any From: https://blog.51cto.com/u_15460007/7330749运行结果