Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another-web
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
MyCard
tabulator-another-web
Commits
2a169cce
Commit
2a169cce
authored
Jun 05, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对阵图(新建文件)
parent
a333cdb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
src/pages/matchTree.vue
src/pages/matchTree.vue
+24
-0
src/pages/tournament.vue
src/pages/tournament.vue
+11
-0
No files found.
src/pages/matchTree.vue
0 → 100644
View file @
2a169cce
<
template
>
<uni-card
:is-full =
'true'
title =
'对阵图'
>
</uni-card>
</
template
>
<
script
setup
lang =
'ts'
>
import
{
defineProps
,
onMounted
,
watch
}
from
'
vue
'
;
import
Match
from
'
../script/match
'
;
import
Participant
from
'
../script/participant
'
;
const
props
=
defineProps
([
'
matches
'
,
'
participants
'
])
as
{
matches
:
Array
<
Match
>
,
participants
:
Array
<
Participant
>
};
const
getName
=
(
id
:
number
)
:
string
=>
{
const
p
=
props
.
participants
.
find
(
i
=>
i
.
id
==
id
);
return
p
?.
name
??
''
;
}
</
script
>
<
style
scoped
lang =
'scss'
>
</
style
>
\ No newline at end of file
src/pages/tournament.vue
View file @
2a169cce
...
...
@@ -277,6 +277,15 @@
<
/uni-pagination
>
<
/uni-card
>
<
/transition
>
<!--
<
transition
name
=
'
switch
'
>
<
MatchTree
v
-
show
=
"
match.array.length > 0 && tournament.this.rule == 'SingleElimination'
"
:
matches
=
'
match.array
'
:
participants
=
'
participant.array
'
><
/MatchTree
>
<
/transition
>
-->
<
/uni-card
>
<
/transition
>
<
/view
>
...
...
@@ -292,6 +301,8 @@
import
Const
from
'
../script/const.ts
'
import
Mycard
from
'
../script/mycard.ts
'
;
import
{
TournamentCreateObject
,
MatchUpdateObject
,
TournamentGet
,
ParticipantUpdateObject
}
from
'
../script/type.ts
'
import
MatchTree
from
'
./matchTree.vue
'
;
let
tournament
=
reactive
({
this
:
undefined
as
undefined
|
Tournament
,
status
:
{
...
...
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