misc: getNewMsgToast 힌트에 따라 수정
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { BButton } from "bootstrap-vue-next";
|
import { BButton } from "bootstrap-vue-next";
|
||||||
import type { ToastContent } from "bootstrap-vue-next/dist/components/BToast/plugin";
|
import type { ToastContent } from "bootstrap-vue-next/dist/components/BToast/plugin";
|
||||||
import { h } from "vue";
|
import { createTextVNode, h } from "vue";
|
||||||
|
|
||||||
type CallbackType = (type: "goto" | "ignore", e: MouseEvent) => void;
|
type CallbackType = (type: "goto" | "ignore", e: MouseEvent) => void;
|
||||||
|
|
||||||
@@ -10,8 +10,8 @@ export function getNewMsgToast(title: string, body: string, callback: CallbackTy
|
|||||||
null,
|
null,
|
||||||
[
|
[
|
||||||
body,
|
body,
|
||||||
h(BButton, { variant: "primary", size: "sm", onClick: (e)=>{ callback('goto', e) } }, "보러가기"),
|
h(BButton, { variant: "primary", size: "sm", onClick: (e) => { callback('goto', e) } }, () => createTextVNode("보러가기")),
|
||||||
h(BButton, { variant: "secondary", size: "sm", onClick: (e)=>{ callback('ignore', e)} }, "이미읽음"),
|
h(BButton, { variant: "secondary", size: "sm", onClick: (e) => { callback('ignore', e) } }, () => createTextVNode("이미읽음")),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user