import { computed, defineComponent, Transition } from 'vue'; import { useTranslation } from '../../translations'; import BCMSIcon from '../icon'; import { DefaultComponentProps } from '../_default'; const component = defineComponent({ props: { ...DefaultComponentProps, show: Boolean, message: String, }, setup(props, ctx) { const translations = computed(() => { return useTranslation(); }); return () => { if (props.show) { return (
{props.message ? props.message : translations.value.layout.spinner.wait}
{ctx.slots.default ? (
{ctx.slots.default()}
) : ( '' )}
); } return