From d58a8c6c159b1d1d61828fa9cf557ffa8bf8a85b Mon Sep 17 00:00:00 2001 From: WuQianRui <18033405861@163.com> Date: Mon, 6 May 2024 17:22:10 +0800 Subject: [PATCH] fix import --- components/Ui/toast/index.ts | 2 +- components/Ui/toast/use-toast.ts | 6 +- pages/docs/toast.vue | 134 +++++++++++++++---------------- 3 files changed, 71 insertions(+), 71 deletions(-) diff --git a/components/Ui/toast/index.ts b/components/Ui/toast/index.ts index 0817d86..1b5c323 100644 --- a/components/Ui/toast/index.ts +++ b/components/Ui/toast/index.ts @@ -9,7 +9,7 @@ export { default as ToastClose } from './ToastClose.vue' export { default as ToastTitle } from './ToastTitle.vue' export { default as ToastDescription } from './ToastDescription.vue' export { default as ToastProvider } from './ToastProvider.vue' -export { toast, useToast } from './use-toast' +export { toast, useToast } from './use-toast.ts' import { type VariantProps, cva } from 'class-variance-authority' diff --git a/components/Ui/toast/use-toast.ts b/components/Ui/toast/use-toast.ts index 500e929..7d2756c 100644 --- a/components/Ui/toast/use-toast.ts +++ b/components/Ui/toast/use-toast.ts @@ -1,11 +1,11 @@ -import { computed, ref } from 'vue' +import { computed , ref } from 'vue'; import type { Component, VNode } from 'vue' import type { ToastProps } from '.' const TOAST_LIMIT = 1 const TOAST_REMOVE_DELAY = 1000000 -export type StringOrVNode = + export type StringOrVNode = | string | VNode | (() => VNode) @@ -162,4 +162,4 @@ function toast(props: Toast) { } } -export { toast, useToast } +export { toast, useToast } \ No newline at end of file diff --git a/pages/docs/toast.vue b/pages/docs/toast.vue index 6f5fd00..f8c9e85 100644 --- a/pages/docs/toast.vue +++ b/pages/docs/toast.vue @@ -12,7 +12,7 @@