Commit d263da4f authored by chechunchi's avatar chechunchi

fix

parent b5ee2735
Pipeline #19685 passed with stages
in 5 minutes and 7 seconds
......@@ -52,6 +52,7 @@ import {
setCheckCardModalV2FinishAbleImpl,
resetCheckCardModalV2Impl,
setCheckCardModalV2ResponseAbleImpl,
checkCardModalV2Case,
} from "./modal/mod";
import {
MonsterState,
......@@ -250,6 +251,7 @@ const duelSlice = createSlice({
checkCardModalCase(builder);
YesNoModalCase(builder);
optionModalCase(builder);
checkCardModalV2Case(builder);
},
});
......
import React from "react";
import { useAppSelector } from "../../hook";
import { store } from "../../store";
import { Modal, Button, Card, Col } from "antd";
import { Modal, Button, Card, Row, Col } from "antd";
import { CheckCard } from "@ant-design/pro-components";
import {
selectCheckCardModalV2CancelAble,
......@@ -65,12 +65,14 @@ const CheckCardModalV2 = () => {
size="small"
onChange={(value) => {
if (responseable) {
dispatch(setCheckCardModalV2IsOpen(false));
// @ts-ignore
sendSelectUnselectCardResponse({ selected_ptr: value });
dispatch(setCheckCardModalV2ResponseAble(false));
}
}}
>
<Row>
{selectableOptions.map((option, idx) => {
return (
<Col span={4} key={idx}>
......@@ -90,8 +92,10 @@ const CheckCardModalV2 = () => {
</Col>
);
})}
</Row>
</CheckCard.Group>
<p>已经选择的卡片</p>
<Row>
{selectedOptions.map((option, idx) => {
return (
<Col span={4} key={idx}>
......@@ -108,6 +112,7 @@ const CheckCardModalV2 = () => {
</Col>
);
})}
</Row>
</Modal>
);
};
......
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