Fixed #957 - Improve TypeScript definitions
parent
1c81464760
commit
fa82ecc38f
|
@ -1,6 +1,4 @@
|
||||||
import Vue from 'vue';
|
interface SkeletonProps {
|
||||||
|
|
||||||
declare class Skeleton extends Vue {
|
|
||||||
shape?: string;
|
shape?: string;
|
||||||
size?: string;
|
size?: string;
|
||||||
width?: string;
|
width?: string;
|
||||||
|
@ -9,4 +7,8 @@ declare class Skeleton extends Vue {
|
||||||
animation?: string;
|
animation?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class Skeleton {
|
||||||
|
$props: SkeletonProps;
|
||||||
|
}
|
||||||
|
|
||||||
export default Skeleton;
|
export default Skeleton;
|
|
@ -1,6 +1,4 @@
|
||||||
import Vue from 'vue';
|
interface SliderProps {
|
||||||
|
|
||||||
declare class Slider extends Vue {
|
|
||||||
modelValue?: number | any[];
|
modelValue?: number | any[];
|
||||||
min?: number;
|
min?: number;
|
||||||
max?: number;
|
max?: number;
|
||||||
|
@ -9,6 +7,10 @@ declare class Slider extends Vue {
|
||||||
range?: boolean;
|
range?: boolean;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
ariaLabelledBy?: string;
|
ariaLabelledBy?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class Slider {
|
||||||
|
$props: SliderProps;
|
||||||
$emit(eventName: 'change', value: any): this;
|
$emit(eventName: 'change', value: any): this;
|
||||||
$emit(eventName: 'slideend', e: {originalEvent: Event, values: any}): this;
|
$emit(eventName: 'slideend', e: {originalEvent: Event, values: any}): this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import Vue from 'vue';
|
interface SplitButtonProps {
|
||||||
|
|
||||||
declare class SplitButton extends Vue {
|
|
||||||
label?: string;
|
label?: string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
model?: any[];
|
model?: any[];
|
||||||
|
@ -9,6 +7,10 @@ declare class SplitButton extends Vue {
|
||||||
autoZIndex?: boolean;
|
autoZIndex?: boolean;
|
||||||
baseZIndex?: number;
|
baseZIndex?: number;
|
||||||
appendTo?: string;
|
appendTo?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class SplitButton {
|
||||||
|
$props: SplitButtonProps;
|
||||||
$emit(eventName: 'click', event: Event): this;
|
$emit(eventName: 'click', event: Event): this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import Vue from 'vue';
|
interface SplitterProps {
|
||||||
|
|
||||||
declare class Splitter extends Vue {
|
|
||||||
layout?: string;
|
layout?: string;
|
||||||
gutterSize?: number;
|
gutterSize?: number;
|
||||||
stateKey?: string;
|
stateKey?: string;
|
||||||
stateStorage?: string;
|
stateStorage?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class Splitter {
|
||||||
|
$props: SplitterProps;
|
||||||
|
}
|
||||||
|
|
||||||
export default Splitter;
|
export default Splitter;
|
|
@ -1,8 +1,10 @@
|
||||||
import Vue from 'vue';
|
interface SplitterPanelProps {
|
||||||
|
|
||||||
declare class SplitterPanel extends Vue {
|
|
||||||
size?: number;
|
size?: number;
|
||||||
minSize?: number;
|
minSize?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class SplitterPanel {
|
||||||
|
$props: SplitterPanelProps;
|
||||||
|
}
|
||||||
|
|
||||||
export default SplitterPanel;
|
export default SplitterPanel;
|
|
@ -1,8 +1,10 @@
|
||||||
import Vue from 'vue';
|
interface StepsProps {
|
||||||
|
|
||||||
declare class Steps extends Vue {
|
|
||||||
model?: any[];
|
model?: any[];
|
||||||
readonly?: boolean;
|
readonly?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class Steps {
|
||||||
|
$props: StepsProps;
|
||||||
|
}
|
||||||
|
|
||||||
export default Steps;
|
export default Steps;
|
|
@ -1,7 +1,9 @@
|
||||||
import Vue from 'vue';
|
interface TabMenuProps {
|
||||||
|
|
||||||
declare class TabMenu extends Vue {
|
|
||||||
model?: any[];
|
model?: any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class TabMenu {
|
||||||
|
$props: TabMenuProps;
|
||||||
|
}
|
||||||
|
|
||||||
export default TabMenu;
|
export default TabMenu;
|
|
@ -1,8 +1,12 @@
|
||||||
import Vue, { VNode } from 'vue';
|
import { VNode } from 'vue';
|
||||||
|
|
||||||
declare class TabPanel extends Vue {
|
interface TabPanelProps {
|
||||||
header?: any;
|
header?: any;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class TabPanel {
|
||||||
|
$props: TabPanelProps;
|
||||||
$slots: {
|
$slots: {
|
||||||
'': VNode[];
|
'': VNode[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
import Vue, { VNode } from 'vue';
|
import { VNode } from 'vue';
|
||||||
|
|
||||||
declare class TabView extends Vue {
|
interface TabViewProps {
|
||||||
activeIndex?: number;
|
activeIndex?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class TabView {
|
||||||
|
$props: TabViewProps;
|
||||||
$emit(eventName: 'tab-change', e: { originalEvent: Event, tab: any }): this;
|
$emit(eventName: 'tab-change', e: { originalEvent: Event, tab: any }): this;
|
||||||
$slots: {
|
$slots: {
|
||||||
'': VNode[];
|
'': VNode[];
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import Vue from 'vue';
|
interface TagProps {
|
||||||
|
|
||||||
declare class Tag extends Vue {
|
|
||||||
value?: any;
|
value?: any;
|
||||||
severity?: string;
|
severity?: string;
|
||||||
rounded?: boolean;
|
rounded?: boolean;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class Tag {
|
||||||
|
$props: TagProps;
|
||||||
|
}
|
||||||
|
|
||||||
export default Tag;
|
export default Tag;
|
|
@ -1,8 +1,10 @@
|
||||||
import Vue from 'vue';
|
interface TerminalProps {
|
||||||
|
|
||||||
declare class Terminal extends Vue {
|
|
||||||
welcomeMessage?: string;
|
welcomeMessage?: string;
|
||||||
prompt?: string;
|
prompt?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class Terminal {
|
||||||
|
$props: TerminalProps;
|
||||||
|
}
|
||||||
|
|
||||||
export default Terminal;
|
export default Terminal;
|
|
@ -1,8 +1,10 @@
|
||||||
import Vue from 'vue';
|
interface TextareaProps {
|
||||||
|
|
||||||
declare class Textarea extends Vue {
|
|
||||||
value?: string;
|
value?: string;
|
||||||
autoResize?: boolean;
|
autoResize?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class Textarea {
|
||||||
|
$props: TextareaProps;
|
||||||
$emit(eventName: 'input', value: string): this;
|
$emit(eventName: 'input', value: string): this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import Vue from 'vue';
|
interface TieredMenuProps {
|
||||||
|
|
||||||
declare class TieredMenu extends Vue {
|
|
||||||
popup?: boolean;
|
popup?: boolean;
|
||||||
model?: any[];
|
model?: any[];
|
||||||
appendTo?: string;
|
appendTo?: string;
|
||||||
autoZIndex?: boolean;
|
autoZIndex?: boolean;
|
||||||
baseZIndex?: number;
|
baseZIndex?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class TieredMenu {
|
||||||
|
$props: TieredMenuProps;
|
||||||
toggle(event: Event): void;
|
toggle(event: Event): void;
|
||||||
show(event: Event, target?: any): void;
|
show(event: Event, target?: any): void;
|
||||||
hide(): void;
|
hide(): void;
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
import Vue, { VNode } from 'vue';
|
import { VNode } from 'vue';
|
||||||
|
|
||||||
declare class Timeline extends Vue {
|
interface TimelineProps {
|
||||||
value?: any[];
|
value?: any[];
|
||||||
align?: string;
|
align?: string;
|
||||||
layout?: string;
|
layout?: string;
|
||||||
dataKey?: string;
|
dataKey?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class Timeline {
|
||||||
|
$props: TimelineProps;
|
||||||
$slots: {
|
$slots: {
|
||||||
content: VNode[];
|
content: VNode[];
|
||||||
opposite: VNode[];
|
opposite: VNode[];
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
import Vue from 'vue';
|
interface ToastProps {
|
||||||
|
|
||||||
declare class Toast extends Vue {
|
|
||||||
group?: string;
|
group?: string;
|
||||||
position?: string;
|
position?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class Toast {
|
||||||
|
$props: ToastProps;
|
||||||
|
}
|
||||||
|
|
||||||
export default Toast;
|
export default Toast;
|
|
@ -1,12 +1,14 @@
|
||||||
import Vue from 'vue';
|
interface ToggleButtonProps {
|
||||||
|
|
||||||
declare class ToggleButton extends Vue {
|
|
||||||
value?: boolean;
|
value?: boolean;
|
||||||
onIcon?: string;
|
onIcon?: string;
|
||||||
offIcon?: string;
|
offIcon?: string;
|
||||||
onLabel?: string;
|
onLabel?: string;
|
||||||
offLabel?: string;
|
offLabel?: string;
|
||||||
iconPos?: string;
|
iconPos?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class ToggleButton {
|
||||||
|
$props: ToggleButtonProps;
|
||||||
$emit(eventName: string, event: Event): this;
|
$emit(eventName: string, event: Event): this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
import Vue, { VNode } from 'vue';
|
import { VNode } from 'vue';
|
||||||
|
|
||||||
declare class Toolbar extends Vue {
|
interface ToolbarProps {}
|
||||||
|
|
||||||
|
declare class Toolbar {
|
||||||
|
$props: ToolbarProps;
|
||||||
$slots: {
|
$slots: {
|
||||||
left: VNode[];
|
left: VNode[];
|
||||||
right: VNode[];
|
right: VNode[];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import Vue, {VNode} from 'vue';
|
import { VNode } from 'vue';
|
||||||
|
|
||||||
declare class Tree extends Vue {
|
interface TreeProps {
|
||||||
value?: any;
|
value?: any;
|
||||||
expandedKeys?: any;
|
expandedKeys?: any;
|
||||||
selectionKeys?: any;
|
selectionKeys?: any;
|
||||||
|
@ -13,6 +13,10 @@ declare class Tree extends Vue {
|
||||||
filterMode?: string;
|
filterMode?: string;
|
||||||
filterPlaceholder?: string;
|
filterPlaceholder?: string;
|
||||||
filterLocale?: string;
|
filterLocale?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class Tree {
|
||||||
|
$props: TreeProps;
|
||||||
$emit(eventName: 'node-select', node: any): this;
|
$emit(eventName: 'node-select', node: any): this;
|
||||||
$emit(eventName: 'node-unselect', node: any): this;
|
$emit(eventName: 'node-unselect', node: any): this;
|
||||||
$emit(eventName: 'node-expand', node: any): this;
|
$emit(eventName: 'node-expand', node: any): this;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import Vue, {VNode} from 'vue';
|
import { VNode } from 'vue';
|
||||||
|
|
||||||
declare class TreeTable extends Vue {
|
interface TreeTableProps {
|
||||||
value?: any;
|
value?: any;
|
||||||
expandedKeys?: any;
|
expandedKeys?: any;
|
||||||
selectionKeys?: any;
|
selectionKeys?: any;
|
||||||
|
@ -35,6 +35,10 @@ declare class TreeTable extends Vue {
|
||||||
resizableColumns?: boolean;
|
resizableColumns?: boolean;
|
||||||
columnResizeMode?: string;
|
columnResizeMode?: string;
|
||||||
indentation?: number;
|
indentation?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class TreeTable {
|
||||||
|
$props: TreeTableProps;
|
||||||
$emit(eventName: 'page', event: Event): this;
|
$emit(eventName: 'page', event: Event): this;
|
||||||
$emit(eventName: 'sort', event: Event): this;
|
$emit(eventName: 'sort', event: Event): this;
|
||||||
$emit(eventName: 'filter', event: Event): this;
|
$emit(eventName: 'filter', event: Event): this;
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
import Vue from 'vue';
|
interface TriStateCheckboxProps {
|
||||||
|
|
||||||
declare class TriStateCheckbox extends Vue {
|
|
||||||
modelValue?: any;
|
modelValue?: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class TriStateCheckbox {
|
||||||
|
$props: TriStateCheckboxProps;
|
||||||
$emit(eventName: string, event: Event): this;
|
$emit(eventName: string, event: Event): this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue