soiz1's picture
Upload folder using huggingface_hub
4d70170 verified
raw
history blame
434 Bytes
<script>
import { defineAsyncComponent } from 'vue'
const BeAsync = defineAsyncComponent(() => new Promise((resolve) => {
setTimeout(() => {
resolve({
name: 'BeAsync',
data() {
return {
message: 'I am async!',
}
},
template: '<div>{{ message }}</div>',
})
}, 2000)
}))
export default {
components: {
BeAsync,
},
}
</script>
<template>
<BeAsync />
</template>