Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
c11fc549
Commit
c11fc549
authored
Jun 26, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove prop
parent
4792ca5d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
8 deletions
+1
-8
src/service/duel/selectUnselectCard.ts
src/service/duel/selectUnselectCard.ts
+0
-1
src/ui/Duel/Message/SelectActionsModal/index.tsx
src/ui/Duel/Message/SelectActionsModal/index.tsx
+0
-3
src/ui/Duel/Message/SelectCardsModal/index.tsx
src/ui/Duel/Message/SelectCardsModal/index.tsx
+1
-3
src/ui/Duel/Message/SimpleSelectCardsModal/index.tsx
src/ui/Duel/Message/SimpleSelectCardsModal/index.tsx
+0
-1
No files found.
src/service/duel/selectUnselectCard.ts
View file @
c11fc549
...
...
@@ -27,7 +27,6 @@ export default async ({
cancelable
,
min
:
min
,
max
:
max
,
single
:
true
,
selecteds
:
[...
selecteds1
,
...
selecteds2
],
mustSelects
:
[...
mustSelect1
,
...
mustSelect2
],
selectables
:
[...
selectable1
,
...
selectable2
],
...
...
src/ui/Duel/Message/SelectActionsModal/index.tsx
View file @
c11fc549
...
...
@@ -21,7 +21,6 @@ const defaultProps: Omit<
isChain
:
false
,
min
:
0
,
max
:
0
,
single
:
true
,
selecteds
:
[]
as
Option
[],
// 最少选择多少卡
selectables
:
[]
as
Option
[],
// 最多选择多少卡
mustSelects
:
[]
as
Option
[],
// 单选
...
...
@@ -39,7 +38,6 @@ export const SelectActionsModal: React.FC = () => {
isChain
,
min
,
max
,
single
,
selecteds
,
selectables
,
mustSelects
,
...
...
@@ -77,7 +75,6 @@ export const SelectActionsModal: React.FC = () => {
isChain
,
min
,
max
,
single
,
selecteds
,
selectables
,
mustSelects
,
...
...
src/ui/Duel/Message/SelectCardsModal/index.tsx
View file @
c11fc549
...
...
@@ -19,7 +19,6 @@ export interface SelectCardsModalProps {
isChain
:
boolean
;
min
:
number
;
max
:
number
;
single
:
boolean
;
selecteds
:
Snapshot
<
Option
[]
>
;
// 已经选择了的卡
selectables
:
Snapshot
<
Option
[]
>
;
// 最多选择多少卡
mustSelects
:
Snapshot
<
Option
[]
>
;
// 单选
...
...
@@ -37,7 +36,6 @@ export const SelectCardsModal: React.FC<SelectCardsModalProps> = ({
isChain
,
min
,
max
,
single
,
selecteds
,
selectables
,
mustSelects
,
...
...
@@ -51,6 +49,7 @@ export const SelectCardsModal: React.FC<SelectCardsModalProps> = ({
})
=>
{
const
[
result
,
setResult
]
=
useState
<
Option
[]
>
([]);
const
[
submitable
,
setSubmitable
]
=
useState
(
false
);
const
single
=
min
===
1
&&
max
===
1
;
// 是否是单选
const
hint
=
useSnapshot
(
matStore
.
hint
);
const
preHintMsg
=
hint
?.
esHint
||
""
;
...
...
@@ -144,7 +143,6 @@ export const SelectCardsModal: React.FC<SelectCardsModalProps> = ({
<
div
className=
"checkcard-container"
key=
{
i
}
>
<
CheckCard
.
Group
onChange=
{
(
res
)
=>
{
console
.
log
(
"
setresult
"
,
res
);
setResult
((
single
?
[
res
]
:
res
)
as
any
);
}
}
// TODO 考虑如何设置默认值,比如只有一个的,就直接选中
...
...
src/ui/Duel/Message/SimpleSelectCardsModal/index.tsx
View file @
c11fc549
...
...
@@ -18,7 +18,6 @@ export const SimpleSelectCardsModal: React.FC = () => {
isChain=
{
false
}
min=
{
1
}
max=
{
1
}
single
selecteds=
{
[]
}
mustSelects=
{
[]
}
selectables=
{
selectables
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment