update .d.ts files

pull/1361/head
Tuğçe Küçükoğlu 2021-06-14 17:05:02 +03:00
parent cb659b73ef
commit 4d1891b47c
63 changed files with 236 additions and 43 deletions

View File

@ -8,6 +8,7 @@ interface AccordionProps {
declare class Accordion {
$props: AccordionProps;
$emit(eventName: 'update:activeIndex', value: number): this;
$emit(eventName: 'tab-open', e: {originalEvent: Event, tab: any}): this;
$emit(eventName: 'tab-close', e: {originalEvent: Event, tab: any}): this;
$slots: {

View File

@ -2,7 +2,6 @@ import { VNode } from 'vue';
interface AccordionTabProps {
header?: string;
active?: boolean;
disabled?: boolean;
}

View File

@ -17,11 +17,14 @@ interface AutoCompleteProps {
inputStyle?: any;
inputClass?: string;
forceSelection?: boolean;
class?: any;
style?: any;
panelClass?: string;
}
declare class AutoComplete {
$props: AutoCompleteProps;
$emit(eventName: 'update:modelValue', value: any): this;
$emit(eventName: 'item-select', e: {originalEvent: Event, value: any}): this;
$emit(eventName: 'item-unselect', e: {originalEvent: Event, value: any}): this;
$emit(eventName: 'dropdown-click', e: {originalEvent: Event, query: string}): this;

View File

@ -2,6 +2,8 @@ interface AvatarProps {
label?: string;
icon?: string;
image?: string;
size?: string;
shape?: string;
}
declare class Avatar {

View File

@ -40,10 +40,13 @@ interface CalendarProps {
appendTo?: string;
inputStyle?: any;
inputClass?: string;
style?: any;
class?: string;
}
declare class Calendar {
$props: CalendarProps;
$emit(eventName: 'update:modelValue', value: Date | Date[]): this;
$emit(eventName: 'show'): this;
$emit(eventName: 'hide'): this;
$emit(eventName: 'month-change', e: { month: number, year: number }): this;

View File

@ -9,14 +9,15 @@ interface CarouselProps {
orientation?: string;
verticalViewPortHeight?: string;
containerClass?: string;
dotsContentClass?: string;
contentClass?: string;
indicatorsContentClass?: string;
circular?: boolean;
autoplayInterval?: number;
}
declare class Carousel {
$props: CarouselProps;
$emit(eventName: 'update:page', value: number): this;
$slots: {
item: VNode[];
header: VNode[];

View File

@ -25,11 +25,12 @@ declare class CascadeSelect {
$emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
$emit(eventName: 'change-group', e: { originalEvent: Event, value: any }): this;
$emit(eventName: 'before-show'): this;
$emit(eventName: 'before-leave'): this;
$emit(eventName: 'before-hide'): this;
$emit(eventName: 'show'): this;
$emit(eventName: 'hide'): this;
$slot: {
option: VNode[];
value: VNode[];
}
}

View File

@ -2,11 +2,15 @@ interface CheckboxProps {
value?: any;
modelValue?: any;
binary?: boolean;
class?: string;
style?: any;
}
declare class Checkbox {
$props: CheckboxProps;
$emit(eventName: string, event: Event): this;
$emit(eventName: 'update:page', value: any): this;
$emit(eventName: 'click', event: Event): this;
$emit(eventName: 'change', event: Event): this;
}
export default Checkbox;

View File

@ -8,6 +8,7 @@ interface ChipProps {
declare class Chip {
$props: ChipProps;
$emit(eventName: 'remove', event: Event): this;
}
export default Chip;

View File

@ -6,10 +6,13 @@ interface ChipsProps {
addOnBlur?: boolean;
allowDuplicate?: boolean;
separator?: string;
class?: string;
style?: any;
}
declare class Chips {
$props: ChipsProps;
$emit(eventName: 'update:modelValue', value: any[]): this;
$emit(eventName: 'add', e: { originalEvent: Event, value: any }): this;
$emit(eventName: 'remove', e: { originalEvent: Event, value: any }): this;
$slots: {

View File

@ -14,7 +14,7 @@ interface ColorPickerProps {
declare class ColorPicker {
$props: ColorPickerProps;
$emit(eventName: 'input', value: any): this;
$emit(eventName: 'update:modelValue', value: any): this;
}
export default ColorPicker;

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface ColumnProps {
columnKey?: any;
field?: string | ((item: any) => any);
@ -45,6 +47,17 @@ interface ColumnProps {
declare class Column {
$props: ColumnProps;
$slots: {
body: VNode[];
header: VNode[];
footer: VNode[];
editor: VNode[];
filter: VNode[];
filterheader: VNode[];
filterfooter: VNode[];
filterclear: VNode[];
filterapply: VNode[];
}
}
export default Column;

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface ContextMenuProps {
model?: any[];
appendTo?: string;
@ -8,6 +10,9 @@ interface ContextMenuProps {
declare class ContextMenu {
$props: ContextMenuProps;
$slots: {
item: VNode[];
}
toggle(event: Event): void;
show(event: Event, target?: any): void;
hide(): void;

View File

@ -25,6 +25,8 @@ interface DataTableProps {
filters?: {
[s: string]: any;
};
filterDisplay?: string;
globalFilterFields?: any[];
filterLocale?: string;
selection?: any[] | any;
selectionMode?: string;
@ -64,6 +66,17 @@ interface DataTableProps {
declare class DataTable {
$props: DataTableProps;
$emit(eventName: 'update:first', value: number): this;
$emit(eventName: 'update:rows', value: number): this;
$emit(eventName: 'update:sortField', value: string | ((item: any) => any)): this;
$emit(eventName: 'update:sortOrder', value: number): this;
$emit(eventName: 'update:multiSortMeta', value: any[]): this;
$emit(eventName: 'update:selection', value: any[] | any): this;
$emit(eventName: 'update:contextMenuSelection', value: boolean): this;
$emit(eventName: 'update:expandedRows', value: any[]): this;
$emit(eventName: 'update:expandedRowGroups', value: any[]): this;
$emit(eventName: 'update:filters', value: any): this;
$emit(eventName: 'update:editingRows', value: any[]): this;
$emit(eventName: 'page', event: Event): this;
$emit(eventName: 'sort', event: Event): this;
$emit(eventName: 'filter', event: Event): this;
@ -71,21 +84,26 @@ declare class DataTable {
$emit(eventName: 'row-click', event: Event): this;
$emit(eventName: 'row-dblclick', event: Event): this;
$emit(eventName: 'row-contextmenu', event: Event): this;
$emit(eventName: 'row-select', event: Event): this;
$emit(eventName: 'row-unselect', event: Event): this;
$emit(eventName: 'column-resize-end', event: Event): this;
$emit(eventName: 'column-reorder', event: Event): this;
$emit(eventName: 'row-reorder', event: Event): this;
$emit(eventName: 'row-select', event: {originalEvent: Event, data: any, index: number, type: string}): this;
$emit(eventName: 'row-select-all', event: {originalEvent: Event, data: any}): this;
$emit(eventName: 'row-unselect-all', event: {originalEvent: Event}): this;
$emit(eventName: 'row-unselect', event: {originalEvent: Event, data: any, index: number, type: string}): this;
$emit(eventName: 'column-resize-end', event: {originalEvent: Event, delta: any}): this;
$emit(eventName: 'column-reorder', event: {originalEvent: Event, dragIndex: number, dropIndex: number}): this;
$emit(eventName: 'row-reorder', event: {originalEvent: Event, dragIndex: number, dropIndex: number, value: any[]}): this;
$emit(eventName: 'row-expand', event: Event): this;
$emit(eventName: 'row-collapse', event: Event): this;
$emit(eventName: 'rowgroup-expand', event: Event): this;
$emit(eventName: 'rowgroup-collapse', event: Event): this;
$emit(eventName: 'rowgroup-expand', event: {originalEvent: Event, data: any[]}): this;
$emit(eventName: 'rowgroup-collapse', event: {originalEvent: Event, data: any[]}): this;
$emit(eventName: 'cell-edit-init', event: Event): this;
$emit(eventName: 'cell-edit-complete', event: Event): this;
$emit(eventName: 'cell-edit-cancel', event: Event): this;
$emit(eventName: 'row-edit-init', event: Event): this;
$emit(eventName: 'row-edit-save', event: Event): this;
$emit(eventName: 'row-edit-cancel', event: Event): this;
$emit(eventName: 'editing-cell-change', event: Event): this;
$emit(eventName: 'state-restore', value: any[]): this;
$emit(eventName: 'state-save', value: any[]): this;
$slots: {
header: VNode[];
@ -93,6 +111,9 @@ declare class DataTable {
paginatorRight: VNode[];
empty: VNode[];
footer: VNode[];
groupheader: VNode[];
groupfooter: VNode[];
loading: VNode[];
};
}

View File

@ -20,6 +20,8 @@ interface DataViewProps {
declare class DataView {
$props: DataViewProps;
$emit(eventName: 'update:first', value: number): this;
$emit(eventName: 'update:rows', value: number): this;
$emit(eventName: 'page', event: Event): this;
$slots: {
header: VNode[];
@ -27,6 +29,7 @@ declare class DataView {
paginatorRight: VNode[];
list: VNode[];
grid: VNode[];
empty: VNode[];
footer: VNode[];
}
}

View File

@ -1,10 +1,10 @@
interface DataViewLayoutOptionsProps {
value?: string;
modelValue?: string;
}
declare class DataViewLayoutOptions {
$props: DataViewLayoutOptionsProps;
$emit(eventName: 'input', layout: string): this;
$emit(eventName: 'update:modelValue', value: string): this;
}
export default DataViewLayoutOptions;

View File

@ -26,11 +26,12 @@ interface DialogProps {
declare class Dialog {
$props: DialogProps;
$emit(eventName: 'update:visible', value: boolean): this;
$emit(eventName: 'show'): this;
$emit(eventName: 'hide'): this;
$emit(eventName: 'maximize'): this;
$emit(eventName: 'unmaximize'): this;
$emit(eventName: 'dragend'): this;
$emit(eventName: 'maximize', event: Event): this;
$emit(eventName: 'unmaximize', event: Event): this;
$emit(eventName: 'dragend', event: Event): this;
$slots: {
'': VNode[];
header: VNode[];

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface DividerProps {
align?: string;
layout?: string;
@ -6,6 +8,9 @@ interface DividerProps {
declare class Divider {
$props: DividerProps;
$slots: {
'': VNode[];
}
}
export default Divider;

View File

@ -32,7 +32,7 @@ interface DropdownProps {
declare class Dropdown {
$props: DropdownProps;
$emit(eventName: 'input', value: string): this;
$emit(eventName: 'update:modelValue', value: any): this;
$emit(eventName: 'change', e: { originalEvent: Event, value: string }): this;
$emit(eventName: 'before-show'): this;
$emit(eventName: 'before-leave'): this;
@ -42,7 +42,13 @@ declare class Dropdown {
$emit(eventName: 'blur', e: Event): this;
$emit(eventName: 'filter', e: { originalEvent: Event, value: string }): this;
$slot: {
value: VNode[];
header: VNode[];
footer: VNode[];
option: VNode[];
optiongroup: VNode[];
emptyfilter: VNode[];
empty: VNode[];
}
}

View File

@ -10,7 +10,7 @@ interface EditorProps {
declare class Editor {
$props: EditorProps;
$emit(eventName: 'input', event: string): this;
$emit(eventName: 'update:modelValue', value: string): this;
$emit(eventName: 'text-change', e: { htmlValue: string, textValue: any, delta: any, source: string, instance: any}): this;
$slot: {
toolbar: VNode[];

View File

@ -8,6 +8,7 @@ interface FieldsetProps {
declare class Fieldset {
$props: FieldsetProps;
$emit(eventName: 'update:collapsed', value: boolean): this;
$emit(eventName: 'toggle', e: { originalEvent: Event, value: boolean }): this;
$slots: {
'': VNode[];

View File

@ -26,8 +26,9 @@ declare class FileUpload {
$emit(eventName: 'select', e: { originalEvent: Event, files: any }): this;
$emit(eventName: 'before-upload', e: { xhr: XMLHttpRequest, formData: any }): this;
$emit(eventName: 'progress', e: { originalEvent: Event, progress: any }): this;
$emit(eventName: 'upload', e: { originalEvent: Event, files: any }): this;
$emit(eventName: 'error', e: { originalEvent: Event, files: any }): this;
$emit(eventName: 'upload', e: { xhr: XMLHttpRequest, files: any }): this;
$emit(eventName: 'uploader', e: { files: any }): this;
$emit(eventName: 'error', e: { xhr: XMLHttpRequest, files: any }): this;
$emit(eventName: 'before-send', e: { xhr: XMLHttpRequest, formData: any }): this;
$emit(eventName: 'clear'): this;
$emit(eventName: 'remove', e: { file: File, files: File[] }): this;

View File

@ -29,6 +29,8 @@ interface GalleriaProps {
declare class Galleria {
$props: GalleriaProps;
$emit(eventName: 'update:activeIndex', value: number): this;
$emit(eventName: 'update:visible', value: boolean): this;
$slots: {
header: VNode[];
footer: VNode[];

View File

@ -7,6 +7,9 @@ interface InplaceProps {
declare class Inplace {
$props: InplaceProps;
$emit(eventName: 'update:active', value: boolean): this;
$emit(eventName: 'open', e: Event): this;
$emit(eventName: 'close', e: Event): this;
$slots: {
display: VNode[];
content: VNode[];

View File

@ -8,7 +8,7 @@ interface InputMaskProps {
declare class InputMask {
$props: InputMaskProps;
$emit(eventName: 'input', value: string): this;
$emit(eventName: 'update:modelValue', value: string): this;
$emit(eventName: 'focus', event: Event): this;
$emit(eventName: 'blur', event: Event): this;
$emit(eventName: 'keydown', event: Event): this;

View File

@ -22,11 +22,13 @@ interface InputNumberProps {
step?: number;
inputStyle?: any;
inputClass?: string;
style?: any;
class?: string;
}
declare class InputNumber {
$props: InputNumberProps;
$emit(eventName: string, value: number | Event): this;
$emit(eventName: 'update:modelValue', value: number): this;
$emit(eventName: 'input', e: {originalEvent: Event, value: any}): this;
}

View File

@ -1,9 +1,14 @@
interface InputSwitchProps {
modelValue?: boolean;
class?: string;
style?: any;
}
declare class InputSwitch {
$props: InputSwitchProps;
$emit(eventName: 'update:modelValue', value: boolean): this;
$emit(eventName: 'click', event: Event): this;
$emit(eventName: 'change', event: Event): this;
}
export default InputSwitch;

View File

@ -1,10 +1,10 @@
interface InputTextProps {
value?: string;
modelValue?: string;
}
declare class InputText {
$props: InputTextProps;
$emit(eventName: 'input', value: string): this;
$emit(eventName: 'update:modelValue', value: string): this;
}
export default InputText;

View File

@ -16,6 +16,7 @@ interface KnobProps {
declare class Knob {
$props: KnobProps;
$emit(eventName: 'update:modelValue', value: number): this;
$emit(eventName: 'change', value: any): this;
}

View File

@ -18,18 +18,22 @@ interface ListboxProps {
filterLocale?: string;
filterMatchMode?: string;
filterFields?: string[];
ariaLabelledBy?: string;
emptyFilterMessage?: string;
emptyMessage?: string;
}
declare class Listbox {
$props: ListboxProps;
$emit(eventName: 'input', value: any): this;
$emit(eventName: 'update:modelValue', value: any): this;
$emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
$emit(eventName: 'filter', e: { originalEvent: Event, value: string }): this;
$slots: {
header: VNode[];
footer: VNode[];
option: VNode[];
optiongroup: VNode[];
emptyfilter: VNode[];
empty: VNode[];
}
}

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface MegaMenuProps {
model?: any[];
orientation?: string;
@ -5,6 +7,10 @@ interface MegaMenuProps {
declare class MegaMenu {
$props: MegaMenuProps;
$slots: {
'': VNode[];
item: VNode[];
}
}
export default MegaMenu;

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface MenuProps {
popup?: boolean;
model?: any[];
@ -11,6 +13,9 @@ declare class Menu {
toggle(event: Event): void;
show(event: Event, target?: any): void;
hide(): void;
$slots: {
item: VNode[];
}
}
export default Menu;

View File

@ -1,9 +1,16 @@
import { VNode } from 'vue';
interface MenubarProps {
model?: any[];
}
declare class Menubar {
$props: MenubarProps;
$slots: {
start: VNode[];
end: VNode[];
item: VNode[];
}
}
export default Menubar;

View File

@ -9,6 +9,7 @@ interface MessageProps {
declare class Message {
$props: MessageProps;
$emit(eventName: 'close', event: Event): this;
$slots: {
'': VNode[];
}

View File

@ -33,7 +33,7 @@ interface MultiSelectProps {
declare class MultiSelect {
$props: MultiSelectProps;
$emit(eventName: 'input', value: any): this;
$emit(eventName: 'update:modelValue', value: any): this;
$emit(eventName: 'change', e: {originalEvent: Event, value: any}): this;
$emit(eventName: 'before-show'): this;
$emit(eventName: 'before-leave'): this;

View File

@ -12,7 +12,10 @@ interface OrderListProps {
declare class OrderList {
$props: OrderListProps;
$emit(eventName: 'update:modelValue', value: any[]): this;
$emit(eventName: 'update:selection', value: any[]): this;
$emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this;
$emit(eventName: 'selection-change', e: { originalEvent: Event, value: any[]}): this;
$slots: {
header: VNode[];
item: VNode[];

View File

@ -10,6 +10,8 @@ interface OrganizationChartProps {
declare class OrganizationChart {
$props: OrganizationChartProps;
$emit(eventName: 'update:selectionKeys', value: any): this;
$emit(eventName: 'update:collapsedKeys', value: boolean): this;
$emit(eventName: 'node-select', node: any): this;
$emit(eventName: 'node-unselect', node: any): this;
$emit(eventName: 'node-expand', node: any): this;

View File

@ -1,7 +1,7 @@
import { VNode } from 'vue';
interface OverlayPanelProps {
ismissable?: boolean;
dismissable?: boolean;
showCloseIcon?: boolean;
appendTo?: string;
baseZIndex?: number;

View File

@ -20,6 +20,8 @@ interface PaginatorProps {
declare class Paginator {
$props: PaginatorProps;
$emit(eventName: 'update:first', value: number): this;
$emit(eventName: 'update:rows', value: number): this;
$emit(eventName: 'page', event: PageState): this;
$slots: {
left: VNode[];

View File

@ -8,6 +8,7 @@ interface PanelProps {
declare class Panel {
$props: PanelProps;
$emit(eventName: 'update:collapsed', value: boolean): this;
$emit(eventName: 'toggle', e: { originalEvent: Event, value: boolean; }): this;
$slots: {
'': VNode[];

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface PanelMenuProps {
model?: any[];
expandedKeys?: any;
@ -5,6 +7,10 @@ interface PanelMenuProps {
declare class PanelMenu {
$props: PanelMenuProps;
$emit(eventName: 'update:expandedKeys', value: any): this;
$slots: {
item: VNode[];
}
}
export default PanelMenu;

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface PasswordProps {
modelValue?: string;
promptLabel?: string;
@ -9,16 +11,23 @@ interface PasswordProps {
feedback?: boolean;
appendTo?: string;
toggleMask?: boolean;
inputStyle?: any;
inputClass?: string;
panelClass?: string;
hideIcon?: string;
showIcon?: string;
inputStyle?: any;
inputClass?: string;
style?: any;
class?: string;
panelClass?: string;
}
declare class Password {
$props: PasswordProps;
$emit(eventName: string, event: Event): this;
$emit(eventName: 'update:modelValue', value: string): this;
$slots: {
header: VNode[];
footer: VNode[];
content: VNode[];
}
}
export default Password;

View File

@ -12,7 +12,10 @@ interface PickListProps {
declare class PickList {
$props: PickListProps;
$emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this;
$emit(eventName: 'update:modelValue', value: any[]): this;
$emit(eventName: 'update:selection', value: any[]): this;
$emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string, listIndex: number}): this;
$emit(eventName: 'selection-change', e: { originalEvent: Event, value: any[]}): this;
$emit(eventName: 'move-to-target', e: { originalEvent: Event, items: [] }): this;
$emit(eventName: 'move-all-to-target', e: { originalEvent: Event, items: [] }): this;
$emit(eventName: 'move-to-source', e: { originalEvent: Event, items: [] }): this;
@ -20,6 +23,8 @@ declare class PickList {
$slots: {
header: VNode[];
item: VNode[];
sourceHeader: VNode[];
targetHeader: VNode[];
}
}

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface ProgressBarProps {
value?: number;
mode?: string;
@ -6,6 +8,9 @@ interface ProgressBarProps {
declare class ProgressBar {
$props: ProgressBarProps;
$slots: {
'': VNode[];
}
}
export default ProgressBar;

View File

@ -1,11 +1,15 @@
interface RadioButtonProps {
value?: any;
modelValue?: any;
class?: string;
style?: any;
}
declare class RadioButton {
$props: RadioButtonProps;
$emit(eventName: string, event: Event): this;
$emit(eventName: 'update:modelValue', value: any): this;
$emit(eventName: 'click', event: Event): this;
$emit(eventName: 'change', event: Event): this;
}
export default RadioButton;

View File

@ -8,6 +8,7 @@ interface RatingProps {
declare class Rating {
$props: RatingProps;
$emit(eventName: 'update:modelValue', value: number): this;
$emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
}

View File

@ -14,6 +14,7 @@ interface SelectButtonProps {
declare class SelectButton {
$props: SelectButtonProps;
$emit(eventName: 'update:modelValue', value: any): this;
$emit(eventName: 'focus', event: Event): this;
$emit(eventName: 'blur', event: Event): this;
$slots: {

View File

@ -13,6 +13,7 @@ interface SidebarProps {
declare class Sidebar {
$props: SidebarProps;
$emit(eventName: 'update:modelValue', value: boolean): this;
$emit(eventName: 'show'): this;
$emit(eventName: 'hide'): this;
$slots: {

View File

@ -11,8 +11,9 @@ interface SliderProps {
declare class Slider {
$props: SliderProps;
$emit(eventName: 'update:modelValue', value: number | any[]): this;
$emit(eventName: 'change', value: any): this;
$emit(eventName: 'slideend', e: {originalEvent: Event, values: any}): this;
$emit(eventName: 'slideend', e: {originalEvent: Event, value: any}): this;
}
export default Slider;

View File

@ -2,11 +2,11 @@ interface SplitButtonProps {
label?: string;
icon?: string;
model?: any[];
disabled?: boolean;
tabindex?: string;
autoZIndex?: boolean;
baseZIndex?: number;
appendTo?: string;
class?: string;
style?: any;
}
declare class SplitButton {

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface SplitterPanelProps {
size?: number;
minSize?: number;
@ -5,6 +7,9 @@ interface SplitterPanelProps {
declare class SplitterPanel {
$props: SplitterPanelProps;
$slots: {
'': VNode[];
}
}
export default SplitterPanel;

View File

@ -1,10 +1,16 @@
import { VNode } from 'vue';
interface StepsProps {
id?: string;
model?: any[];
readonly?: boolean;
}
declare class Steps {
$props: StepsProps;
$slots: {
item: VNode[];
}
}
export default Steps;

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface TabMenuProps {
model?: any[];
exact?: boolean;
@ -5,6 +7,9 @@ interface TabMenuProps {
declare class TabMenu {
$props: TabMenuProps;
$slots: {
item: VNode[];
}
}
export default TabMenu;

View File

@ -7,6 +7,7 @@ interface TabViewProps {
declare class TabView {
$props: TabViewProps;
$emit(eventName: 'update:modelValue', value: number): this;
$emit(eventName: 'tab-change', e: { originalEvent: Event, index: number }): this;
$emit(eventName: 'tab-click', e: { originalEvent: Event, index: number }): this;
$slots: {

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface TagProps {
value?: any;
severity?: string;
@ -7,6 +9,9 @@ interface TagProps {
declare class Tag {
$props: TagProps;
$slots: {
'': VNode[];
}
}
export default Tag;

View File

@ -1,11 +1,11 @@
interface TextareaProps {
value?: string;
modelValue?: string;
autoResize?: boolean;
}
declare class Textarea {
$props: TextareaProps;
$emit(eventName: 'input', value: string): this;
$emit(eventName: 'update:modelValue', value: string): this;
}
export default Textarea;

View File

@ -1,3 +1,5 @@
import { VNode } from 'vue';
interface TieredMenuProps {
popup?: boolean;
model?: any[];
@ -11,6 +13,9 @@ declare class TieredMenu {
toggle(event: Event): void;
show(event: Event, target?: any): void;
hide(): void;
$slots: {
item: VNode[];
}
}
export default TieredMenu;

View File

@ -1,6 +1,8 @@
interface ToastProps {
group?: string;
position?: string;
autoZIndex?: boolean;
baseZIndex?: number;
}
declare class Toast {

View File

@ -1,5 +1,5 @@
interface ToggleButtonProps {
value?: boolean;
modelValue?: boolean;
onIcon?: string;
offIcon?: string;
onLabel?: string;
@ -9,7 +9,8 @@ interface ToggleButtonProps {
declare class ToggleButton {
$props: ToggleButtonProps;
$emit(eventName: string, event: Event): this;
$emit(eventName: 'update:modelValue', value: boolean): this;
$emit(eventName: 'change', event: Event): this;
}
export default ToggleButton;

View File

@ -18,6 +18,8 @@ interface TreeProps {
declare class Tree {
$props: TreeProps;
$emit(eventName: 'update:expandedKeys', value: any): this;
$emit(eventName: 'update:selectionKeys', value: any): this;
$emit(eventName: 'node-select', node: any): this;
$emit(eventName: 'node-unselect', node: any): this;
$emit(eventName: 'node-expand', node: any): this;

View File

@ -33,6 +33,7 @@ declare class TreeSelect {
value: VNode[];
header: VNode[];
footer: VNode[];
empty: VNode[];
}
}

View File

@ -44,6 +44,13 @@ interface TreeTableProps {
declare class TreeTable {
$props: TreeTableProps;
$emit(eventName: 'update:expandedKeys', value: any): this;
$emit(eventName: 'update:selectionKeys', value: any): this;
$emit(eventName: 'update:first', value: number): this;
$emit(eventName: 'update:rows', value: number): this;
$emit(eventName: 'update:sortField', value: string | Function): this;
$emit(eventName: 'update:sortOrder', value: number): this;
$emit(eventName: 'update:multiSortMeta', value: any[]): this;
$emit(eventName: 'page', event: Event): this;
$emit(eventName: 'sort', event: Event): this;
$emit(eventName: 'filter', event: Event): this;

View File

@ -1,10 +1,12 @@
interface TriStateCheckboxProps {
modelValue?: any;
style?: any;
class?: string;
}
declare class TriStateCheckbox {
$props: TriStateCheckboxProps;
$emit(eventName: string, event: Event): this;
$emit(eventName: 'update:modelValue', value: any): this;
}
export default TriStateCheckbox;