chore: init

This commit is contained in:
Anthony Fu committed 2021-11-02 11:10:42 +08:00
commit 0fb1b4e8dd
20 files changed
+7475

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<script setup lang='ts'>
const { count, inc, dec } = useCount()
</script>
<template>
<div m="y-3">
<button border="~ rounded gray-400" class="px-2 mx-2 hover:bg-gray-400/20 !outline-none" @click="dec()">
dec
</button>
<span font="mono">{{ count }}</span>
<button border="~ rounded gray-400" class="px-2 mx-2 hover:bg-gray-400/20 !outline-none" @click="inc()">
inc
</button>
</div>
</template>
+11
View File
@@ -0,0 +1,11 @@
<script setup lang='ts'>
const isDark = useDark()
const toggleDark = useToggle(isDark)
</script>
<template>
<button class="!outline-none" @click="toggleDark()">
<div v-if="isDark" class="i-carbon-moon" />
<div v-else class="i-carbon-sun" />
</button>
</template>
+5
View File
@@ -0,0 +1,5 @@
<template>
<div op-50 text-lg>
This is an auto imported component
</div>
</template>