forked from Gitlink/forgeplus-react
tag color
This commit is contained in:
parent
e95ef11058
commit
5f36f9306a
|
|
@ -212,7 +212,7 @@ class order extends Component {
|
|||
<Menu.Item
|
||||
key={item.id}
|
||||
onClick={(e) => this.getOption(e, id, item.name, toGet)}
|
||||
style={{textAlign:item.color ? "left" :"center"}}
|
||||
style={{textAlign:item.color ? "left" :"center",padding:"6px 15px"}}
|
||||
>
|
||||
{/* 标签前面的颜色tag */}
|
||||
{item.color && <span className="tagColor" style={{backgroundColor:`${item.color}`}}></span>}
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ class order_form extends Component {
|
|||
return list.map((item, key) => {
|
||||
return (
|
||||
<Option key={key + 1} value={String(item.id)}>
|
||||
{item.name}
|
||||
{item.color && <span className="tagColor" style={{backgroundColor:`${item.color}`}}></span>}{item.name}
|
||||
</Option>
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue