delete useConfirm and useToast
parent
2834331c87
commit
a5c4035ba0
|
@ -1,19 +0,0 @@
|
||||||
export declare function useConfirm(): {
|
|
||||||
require(args:{
|
|
||||||
message?: string;
|
|
||||||
group?: string;
|
|
||||||
icon?: string;
|
|
||||||
header?: string;
|
|
||||||
accept?: Function;
|
|
||||||
reject?: Function;
|
|
||||||
acceptLabel?: string;
|
|
||||||
rejectLabel?: string;
|
|
||||||
acceptIcon?: string;
|
|
||||||
rejectIcon?: string;
|
|
||||||
blockScroll?: boolean;
|
|
||||||
acceptClass?: string;
|
|
||||||
rejectClass?: string;
|
|
||||||
}): void
|
|
||||||
|
|
||||||
close(): void
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
import { inject } from 'vue';
|
|
||||||
|
|
||||||
export const PrimeVueConfirmSymbol = Symbol();
|
|
||||||
|
|
||||||
export function useConfirm() {
|
|
||||||
const PrimeVueConfirm = inject(PrimeVueConfirmSymbol);
|
|
||||||
if (!PrimeVueConfirm) {
|
|
||||||
throw new Error('No PrimeVue Confirmation provided!');
|
|
||||||
}
|
|
||||||
|
|
||||||
return PrimeVueConfirm;
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
export declare function useToast(): { add(args:{ severity?: string, summary?: string, detail?: string, life?: number, closable?: boolean, group?: string }): void }
|
|
|
@ -1,12 +0,0 @@
|
||||||
import { inject } from 'vue';
|
|
||||||
|
|
||||||
export const PrimeVueToastSymbol = Symbol();
|
|
||||||
|
|
||||||
export function useToast() {
|
|
||||||
const PrimeVueToast = inject(PrimeVueToastSymbol);
|
|
||||||
if (!PrimeVueToast) {
|
|
||||||
throw new Error('No PrimeVue Toast provided!');
|
|
||||||
}
|
|
||||||
|
|
||||||
return PrimeVueToast;
|
|
||||||
}
|
|
Loading…
Reference in New Issue