mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5405 - TypeScript emits are in an incompatible format with defineEmits
This commit is contained in:
parent
c3669ad03a
commit
98302e417e
114 changed files with 948 additions and 637 deletions
11
components/lib/blockui/BlockUI.d.ts
vendored
11
components/lib/blockui/BlockUI.d.ts
vendored
|
@ -10,7 +10,7 @@
|
|||
import { VNode } from 'vue';
|
||||
import { ComponentHooks } from '../basecomponent';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
import { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
|
||||
export declare type BlockUIPassThroughOptionType = BlockUIPassThroughAttributes | ((options: BlockUIPassThroughMethodOptions) => BlockUIPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
|
@ -140,7 +140,7 @@ export interface BlockUISlots {
|
|||
/**
|
||||
* Defines valid emits in BlockUI component
|
||||
*/
|
||||
export interface BlockUIEmits {
|
||||
interface BlockUIEmitsOptions {
|
||||
/**
|
||||
* Fired when the element gets blocked.
|
||||
*/
|
||||
|
@ -151,6 +151,8 @@ export interface BlockUIEmits {
|
|||
unblock(): void;
|
||||
}
|
||||
|
||||
export declare type BlockUIEmits = EmitFn<BlockUIEmitsOptions>;
|
||||
|
||||
/**
|
||||
* **PrimeVue - BlockUI**
|
||||
*
|
||||
|
@ -161,12 +163,13 @@ export interface BlockUIEmits {
|
|||
* 
|
||||
*
|
||||
* @group Component
|
||||
*
|
||||
*/
|
||||
declare class BlockUI extends ClassComponent<BlockUIProps, BlockUISlots, BlockUIEmits> {}
|
||||
declare const BlockUI: DefineComponent<BlockUIProps, BlockUISlots, BlockUIEmits>;
|
||||
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
BlockUI: GlobalComponentConstructor<BlockUI>;
|
||||
BlockUI: GlobalComponentConstructor<BlockUIProps, BlockUISlots, BlockUIEmits>;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue