mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
6
components/lib/useconfirm/UseConfirm.d.ts
vendored
Normal file
6
components/lib/useconfirm/UseConfirm.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { ConfirmationOptions } from '../confirmationoptions';
|
||||
|
||||
export declare function useConfirm(): {
|
||||
require: (option: ConfirmationOptions) => void;
|
||||
close: () => void;
|
||||
};
|
13
components/lib/useconfirm/UseConfirm.js
Normal file
13
components/lib/useconfirm/UseConfirm.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
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;
|
||||
}
|
6
components/lib/useconfirm/package.json
Normal file
6
components/lib/useconfirm/package.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"main": "./useconfirm.cjs.js",
|
||||
"module": "./useconfirm.esm.js",
|
||||
"unpkg": "./useconfirm.min.js",
|
||||
"types": "./UseConfirm.d.ts"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue