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