feat: Add dedicated default loading component
* add option to pass a transition name Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<script lang="ts" setup>
|
||||
import { CSSProperties } from 'vue'
|
||||
|
||||
interface LoadingIndicatorProps {
|
||||
label?: string
|
||||
class?: string
|
||||
style?: CSSProperties
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<LoadingIndicatorProps>(), {
|
||||
label: 'Almost ready...',
|
||||
})
|
||||
</script>
|
||||
<template>
|
||||
<div class="vue-flow__loading-indicator" :class="props.class" :style="props.style">
|
||||
<slot name="label"> {{ props.label }} </slot>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user