You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
318 B
17 lines
318 B
11 months ago
|
export default function useDialog(initValue: boolean = false) {
|
||
|
const bool: globalThis.Ref<boolean> = ref(initValue)
|
||
|
const DialogOpen = () => {
|
||
|
bool.value = true
|
||
|
}
|
||
|
const DialogClose = () => {
|
||
|
bool.value = false
|
||
|
}
|
||
|
|
||
|
return {
|
||
|
bool,
|
||
|
DialogOpen,
|
||
|
DialogClose,
|
||
|
// /handleDialogOpen,
|
||
|
}
|
||
|
}
|