Fixed #1836 - For BlockUI

pull/1846/head
mertsincan 2021-12-01 15:25:22 +03:00
parent 2b81d6c306
commit c3dca4fde8
1 changed files with 52 additions and 11 deletions

View File

@ -1,19 +1,60 @@
import { VNode } from 'vue'; import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
interface BlockUIProps { export interface BlockUIProps {
blocked?: boolean; /**
fullScreen?: boolean; * Controls the blocked state.
baseZIndex?: number; */
autoZIndex?: boolean; blocked?: boolean | undefined;
/**
* When enabled, the whole document gets blocked.
*/
fullScreen?: boolean | undefined;
/**
* Base zIndex value to use in layering.
* Default value is 0.
*/
baseZIndex?: number | undefined;
/**
* Whether to automatically manage layering.
* Default value is true.
*/
autoZIndex?: boolean | undefined;
} }
declare class BlockUI { export interface BlockUISlots {
$props: BlockUIProps; /**
$emit(eventName: 'block'): this; * Custom content's slot.
$emit(eventName: 'unblock'): this; */
$slots: { default: () => VNode[];
'': VNode[]; }
export declare type BlockUIEmits = {
/**
* Fired when the element gets blocked.
*/
'block': () => void;
/**
* Fired when the element gets unblocked.
*/
'unblock': () => void;
}
declare class BlockUI extends ClassComponent<BlockUIProps, BlockUISlots, BlockUIEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
BlockUI: GlobalComponentConstructor<BlockUI>
} }
} }
/**
*
* BlockUI can either block other components or the whole page.
*
* Demos:
*
* - [BlockUI](https://www.primefaces.org/primevue/showcase/#/blockui)
*
*/
export default BlockUI; export default BlockUI;