feat: tailwind 2 + script setup!

This commit is contained in:
Anthony Fu committed 2020-11-28 14:14:36 +08:00
1 parent f179e3e40b
commit 14b6a74360
21 files changed
+526 -455

No files matched your search

+8 -5
View File
@@ -3,14 +3,17 @@
</template>
<script setup="props" lang="ts">
import { watch, ref, onMounted, nextTick } from 'vue'
import { watch, ref, onMounted, nextTick, defineProps } from 'vue'
import Iconify from '@purge-icons/generated'
declare const props: {
icon: string
}
const props = defineProps({
icon: {
type: String,
required: true,
},
})
export const el = ref<HTMLElement | null>(null)
const el = ref<HTMLElement | null>(null)
const update = async() => {
if (el.value) {