mirror of
https://github.com/kihashi/stardew_community_checklist.git
synced 2025-10-19 08:03:17 +00:00
Rename New to oWhatsNewModal
This commit is contained in:
parent
b5d8d667d7
commit
52e49d7058
@ -1,3 +1,11 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const emit = defineEmits(['dismiss-modal'])
|
||||||
|
|
||||||
|
function dismiss() {
|
||||||
|
emit('dismiss-modal')
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="modal">
|
<div class="modal">
|
||||||
<div class="modal-background" @click="dismiss"></div>
|
<div class="modal-background" @click="dismiss"></div>
|
||||||
@ -60,14 +68,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'whats-new',
|
|
||||||
methods: {
|
|
||||||
dismiss: function () {
|
|
||||||
this.$emit('dismiss-modal')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import New from '@/components/New.vue'
|
import WhatsNewModal from '@/components/WhatsNewModal.vue'
|
||||||
import { onMounted, ref } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
|
|
||||||
const showModal = ref(false)
|
const showModal = ref(false)
|
||||||
@ -20,7 +20,10 @@ onMounted(() => {
|
|||||||
<h2 class="subtitle">Track Your Progress on the Community Center!</h2>
|
<h2 class="subtitle">Track Your Progress on the Community Center!</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<New :class="showModal ? 'is-active' : ''" v-on:dismiss-modal="showModal = false"></New>
|
<WhatsNewModal
|
||||||
|
:class="showModal ? 'is-active' : ''"
|
||||||
|
v-on:dismiss-modal="showModal = false"
|
||||||
|
></WhatsNewModal>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user