Main Component added

This commit is contained in:
2023-09-06 22:05:47 +09:00
parent 1914a8b1d6
commit ef6cc44d50
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<template>
<div class="q-pa-md" style="max-width: 350px">
<q-expansion-item
class="shadow-1 overflow-hidden"
style="border-radius: 30px"
icon="explore"
label="Counter"
@show="startCounting"
@hide="stopCounting"
header-class="bg-primary text-white"
expand-icon-class="text-white"
>
<q-card>
<q-card-section>
Counting: <q-badge color="secondary">{{ counter }}</q-badge>.
Will only count when opened, using the show/hide events to control count timer.
</q-card-section>
</q-card>
</q-expansion-item>
</div>
</template>
<script lang="ts">
import { defineComponent} from "vue"
export default defineComponent({
props:{
icon:String,
},
setup() {
return {
}
}
});
</script>
<style lang="">
</style>