feat. sns 버튼 컴포넌트 제작
This commit is contained in:
@@ -95,13 +95,32 @@ export const useModalStore = defineStore('modalStore', () => {
|
||||
scrollStore.controlScrollLock(false)
|
||||
}
|
||||
|
||||
// toast ------------------
|
||||
const toast = {
|
||||
storeIsOpen: ref(false),
|
||||
storeContentText: ref(''),
|
||||
}
|
||||
|
||||
const handleOpenToast = (contentText: string) => {
|
||||
toast.storeIsOpen.value = true
|
||||
toast.storeContentText.value = contentText
|
||||
}
|
||||
|
||||
const handleCloseToast = () => {
|
||||
toast.storeIsOpen.value = false
|
||||
toast.storeContentText.value = ''
|
||||
}
|
||||
|
||||
return {
|
||||
alert,
|
||||
confirm,
|
||||
youtube,
|
||||
toast,
|
||||
handleOpenAlert,
|
||||
handleOpenConfirm,
|
||||
handleOpenYoutube,
|
||||
handleResetYoutube,
|
||||
handleOpenToast,
|
||||
handleCloseToast,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user