mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
feat: Empty add description and custom slot feature in component
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
<script setup lang="ts">
|
||||
import browser from 'webextension-polyfill'
|
||||
const props = defineProps<{
|
||||
description: string
|
||||
}>()
|
||||
|
||||
const emptyImg = browser.runtime.getURL('/assets/empty.png')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div flex="~" justify="center" items="center">
|
||||
<div flex="~ col gap-4" justify="center" items="center">
|
||||
<img :src="emptyImg" w="200px" h="auto">
|
||||
<span text="$bew-text-3">{{ props.description }}</span>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user