@dcrackel/hematournamentui 1.0.140 → 1.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="flex flex-col w-full pt-4 pb-3 px-3">
|
|
2
|
+
<div class="flex flex-col w-full pt-4 pb-3 px-3" @click="handleCardClick">
|
|
3
3
|
<BaseText :text="detail.Name" color="primary" size="xl" weight="semi-bold" />
|
|
4
4
|
<BaseText :text="detail.Address && detail.Address[0].Name" color="primary" size="sm" weight="normal" />
|
|
5
5
|
<div class="mt-4 flex flex-col">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<BaseText :text="`${detail.EndDate}`" color="primaryHighlight" size="sm" weight="light" />
|
|
16
16
|
</div>
|
|
17
17
|
<div class="flex flex-row w-full justify-end">
|
|
18
|
-
<BaseButton :label="`Edit`" class="mt-2" primary @click="
|
|
18
|
+
<BaseButton :label="`Edit`" class="mt-2" primary @click.stop="handleEditClick" />
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
</template>
|
|
@@ -70,12 +70,16 @@ export default {
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
methods: {
|
|
73
|
-
|
|
74
|
-
this.$emit('
|
|
73
|
+
handleCardClick(event) {
|
|
74
|
+
this.$emit('listEvents', this.detail.TournamentId);
|
|
75
|
+
},
|
|
76
|
+
handleEditClick(event) {
|
|
77
|
+
this.$emit('edit', this.detail.TournamentId);
|
|
75
78
|
},
|
|
76
79
|
toggleDescription() {
|
|
77
80
|
this.showMoreDescription = !this.showMoreDescription;
|
|
78
81
|
}
|
|
79
82
|
}
|
|
83
|
+
|
|
80
84
|
};
|
|
81
85
|
</script>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="rounded-xl w-72 shadow border border-dropdownSelect hover:border-bright" @click
|
|
2
|
+
<div class="rounded-xl w-72 shadow border border-dropdownSelect hover:border-bright" @click="listEvents">
|
|
3
3
|
<TournamentHeader :artwork="detail.images && detail.images.length > 0 ? detail.images[0].URL : ''" :tags="detail.tags" />
|
|
4
|
-
<TournamentDetail :detail="detail" @
|
|
4
|
+
<TournamentDetail :detail="detail" @listEvents="listEvents" @edit="handleEditClick"/>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
@@ -43,12 +43,11 @@ export default {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
methods: {
|
|
46
|
-
|
|
47
|
-
console.log('TournamentCard onClick', this.detail.TournamentId);
|
|
46
|
+
handleEditClick(event) {
|
|
48
47
|
this.$emit('edit', this.detail.TournamentId);
|
|
48
|
+
|
|
49
49
|
},
|
|
50
50
|
listEvents() {
|
|
51
|
-
console.log('TournamentCard listEvents', this.detail.TournamentId)
|
|
52
51
|
this.$emit('listEvents', this.detail.TournamentId);
|
|
53
52
|
}
|
|
54
53
|
}
|