-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/predefined_game' into develop
- Loading branch information
Showing
7 changed files
with
136 additions
and
46 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<div> | ||
<div v-for="item in props.options"> | ||
<div :class="{ chosen: choice == item }" class="py-1" @click="choice = item"> | ||
{{ item }} | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const choice = defineModel<string>(); | ||
interface Props { | ||
options: string[]; | ||
} | ||
const props = withDefaults(defineProps<Props>(), { | ||
options: () => ["Wizard", "Uno"], | ||
}); | ||
</script> | ||
|
||
<style scoped> | ||
.chosen { | ||
@apply bg-blue-400 text-white font-semibold py-2; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<div class="debug" :class="{ selected: checked }" @click="checked = !checked"> | ||
<slot>default Label</slot> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const checked = defineModel<boolean>(); | ||
</script> | ||
|
||
<style scoped> | ||
.selected { | ||
@apply bg-red-200; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters