From ff4d1c2321422b22db233bc3b8a86609d13c52a3 Mon Sep 17 00:00:00 2001 From: Dedicatus546 <1607611087@qq.com> Date: Wed, 7 Feb 2024 08:05:28 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20git-page=20from=20@=20Dedicatu?= =?UTF-8?q?s546/vuetify-message-vue3@ceadcd8c2024f2830eeb17a14d2e646d76c6d?= =?UTF-8?q?cea=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- api.html | 6 +++--- assets/{api.md.yT0lWkFU.js => api.md.j8uFsmSt.js} | 2 +- assets/{api.md.yT0lWkFU.lean.js => api.md.j8uFsmSt.lean.js} | 0 demo.html | 2 +- get-start.html | 2 +- hashmap.json | 2 +- index.html | 2 +- introduce.html | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) rename assets/{api.md.yT0lWkFU.js => api.md.j8uFsmSt.js} (97%) rename assets/{api.md.yT0lWkFU.lean.js => api.md.j8uFsmSt.lean.js} (100%) diff --git a/404.html b/404.html index e6e47a4..8c9cb71 100644 --- a/404.html +++ b/404.html @@ -15,7 +15,7 @@
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.
- + \ No newline at end of file diff --git a/api.html b/api.html index fb3234d..e43d4f6 100644 --- a/api.html +++ b/api.html @@ -12,7 +12,7 @@ - + @@ -27,7 +27,7 @@ </MessageProvider> </template>

useMessage

It is a composable, and it will return a function that you can execute it to show a snackbar. It's second argument is the same as MessageProvider's prop.

It will return a object that contain a close method that can hide snackbar immediatly. When you create a snackbar that it will not hide automatically, it is a good way to control the time you want to hide it.

typescript
export interface Message<T = any> {
   (
-    text: string,
+    text: string | (() => VNodeChild),
     config?: T extends string ? Omit<MessageOptions, "color"> : MessageOptions,
   ): {
     close: () => void;
@@ -54,7 +54,7 @@
   timeout?: VSnackbarProps["timeout"];
   variant?: VSnackbarProps["variant"];
 }
- + \ No newline at end of file diff --git a/assets/api.md.yT0lWkFU.js b/assets/api.md.j8uFsmSt.js similarity index 97% rename from assets/api.md.yT0lWkFU.js rename to assets/api.md.j8uFsmSt.js index bbf5759..76ea4a8 100644 --- a/assets/api.md.yT0lWkFU.js +++ b/assets/api.md.j8uFsmSt.js @@ -8,7 +8,7 @@ import{_ as s,y as i,x as a,a6 as t}from"./chunks/framework.v0lpTJs1.js";const y </MessageProvider> </template>

useMessage

It is a composable, and it will return a function that you can execute it to show a snackbar. It's second argument is the same as MessageProvider's prop.

It will return a object that contain a close method that can hide snackbar immediatly. When you create a snackbar that it will not hide automatically, it is a good way to control the time you want to hide it.

typescript
export interface Message<T = any> {
   (
-    text: string,
+    text: string | (() => VNodeChild),
     config?: T extends string ? Omit<MessageOptions, "color"> : MessageOptions,
   ): {
     close: () => void;
diff --git a/assets/api.md.yT0lWkFU.lean.js b/assets/api.md.j8uFsmSt.lean.js
similarity index 100%
rename from assets/api.md.yT0lWkFU.lean.js
rename to assets/api.md.j8uFsmSt.lean.js
diff --git a/demo.html b/demo.html
index 2ffd9e9..2f66eaf 100644
--- a/demo.html
+++ b/demo.html
@@ -211,7 +211,7 @@
     </v-card-text>
   </v-card>
 </template>
- + \ No newline at end of file diff --git a/get-start.html b/get-start.html index e63a1c0..6e43aad 100644 --- a/get-start.html +++ b/get-start.html @@ -43,7 +43,7 @@ <template> <v-btn @click="show">show message</v-btn> </template> - + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 4899e55..da4bbdf 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"api.md":"yT0lWkFU","get-start.md":"gMStdLyo","index.md":"F8JBdi6J","introduce.md":"VgJad9q1","demo.md":"7orYaPne"} +{"api.md":"j8uFsmSt","index.md":"F8JBdi6J","introduce.md":"VgJad9q1","get-start.md":"gMStdLyo","demo.md":"7orYaPne"} diff --git a/index.html b/index.html index dfe5ad5..07ceab6 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@
Skip to content

Vuetify Message Vue3

A plugin to use snackbar quickly for vue3 and vuetify!

- + \ No newline at end of file diff --git a/introduce.html b/introduce.html index bd912ee..16ca17d 100644 --- a/introduce.html +++ b/introduce.html @@ -18,7 +18,7 @@
Skip to content

introduce

Vuetify-Message-Vue3 is a lib that can help you use snackbar by call a function simply, quickly.

- + \ No newline at end of file