Commit 80f6cb2f authored by chechunchi's avatar chechunchi

fix

parent 35225f7c
Pipeline #21612 passed with stages
in 12 minutes and 58 seconds
...@@ -136,39 +136,41 @@ export const SelectActionsModal = () => { ...@@ -136,39 +136,41 @@ export const SelectActionsModal = () => {
setResponse(values); setResponse(values);
}} }}
> >
<Row> <Tabs
<Tabs type="card"
type="card" items={grouped.map((group, idx) => {
items={grouped.map((group, idx) => { return {
return { label: fetchStrings("!system", group[0] + 1000),
label: fetchStrings("!system", group[0] + 1000), key: idx.toString(),
key: idx.toString(), children: (
children: group[1].map((option, idx) => { <Row>
return ( {group[1].map((option, idx) => {
<Col span={4} key={idx}> return (
<HoverCheckCard <Col span={4} key={idx}>
hoverContent={option.effectDesc} <HoverCheckCard
style={{ width: 120 }} hoverContent={option.effectDesc}
cover={ style={{ width: 120 }}
<img cover={
alt={option.meta.id.toString()} <img
src={ alt={option.meta.id.toString()}
option.meta.id src={
? `${NeosConfig.cardImgUrl}/${option.meta.id}.jpg` option.meta.id
: `${NeosConfig.assetsPath}/card_back.jpg` ? `${NeosConfig.cardImgUrl}/${option.meta.id}.jpg`
} : `${NeosConfig.assetsPath}/card_back.jpg`
style={{ width: 100 }} }
/> style={{ width: 100 }}
} />
value={option} }
/> value={option}
</Col> />
); </Col>
}), );
}; })}
})} </Row>
/> ),
</Row> };
})}
/>
<p>{selecteds.length > 0 ? fetchStrings("!system", 212) : ""}</p> <p>{selecteds.length > 0 ? fetchStrings("!system", 212) : ""}</p>
<Row> <Row>
{selecteds.concat(mustSelects).map((option, idx) => { {selecteds.concat(mustSelects).map((option, idx) => {
......
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