Fixed #1836 - For TriStateCheckbox

pull/1846/head
mertsincan 2021-12-02 00:12:13 +03:00
parent da22979f7a
commit 8a1987cb02
1 changed files with 39 additions and 5 deletions

View File

@ -1,12 +1,46 @@
interface TriStateCheckboxProps { import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
modelValue?: any;
export interface TriStateCheckboxProps {
/**
* Value of the component.
*/
modelValue?: Nullable<boolean>;
/**
* Inline style of the component.
*/
style?: any; style?: any;
/**
* Style class of the component.
*/
class?: string; class?: string;
} }
declare class TriStateCheckbox { export interface TriStateCheckboxSlots {
$props: TriStateCheckboxProps;
$emit(eventName: 'update:modelValue', value: any): this;
} }
export declare type TriStateCheckboxEmits = {
/**
* Emitted when the value changes.
* @param {boolean|null|undefined} value - New value.
*/
'update:modelValue': (value: Nullable<boolean>) => void;
}
declare class TriStateCheckbox extends ClassComponent<TriStateCheckboxProps, TriStateCheckboxSlots, TriStateCheckboxEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
TriStateCheckbox: GlobalComponentConstructor<TriStateCheckbox>
}
}
/**
*
* TriStateCheckbox is used to select either "true", "false" or "null" as the value.
*
* Demos:
*
* - [TriStateCheckbox](https://www.primefaces.org/primevue/showcase/#/tristatecheckbox)
*
*/
export default TriStateCheckbox; export default TriStateCheckbox;