mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
add referrers bar chart
This commit is contained in:
20
dashboard/composables/useCustomDialog.ts
Normal file
20
dashboard/composables/useCustomDialog.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { Component } from "vue";
|
||||
|
||||
|
||||
const showDialog = ref<boolean>(false);
|
||||
const dialogParams = ref<any>({});
|
||||
const dialogComponent = ref<Component>();
|
||||
|
||||
function closeDialog() {
|
||||
showDialog.value = false;
|
||||
}
|
||||
|
||||
function openDialog(component: Component, params: any) {
|
||||
dialogComponent.value = component;
|
||||
dialogParams.value = params;
|
||||
showDialog.value = true;
|
||||
}
|
||||
|
||||
export function useCustomDialog() {
|
||||
return { showDialog, closeDialog, openDialog, dialogParams, dialogComponent };
|
||||
}
|
||||
Reference in New Issue
Block a user