Refactor #3832 Refactor #3833 - For InputNumber

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-04 15:40:30 +03:00
parent ad64a8aeab
commit 06124bd86e
3 changed files with 51 additions and 12 deletions

View file

@ -7,7 +7,7 @@
* @module inputnumber
*
*/
import { ButtonHTMLAttributes, InputHTMLAttributes } from 'vue';
import { ButtonHTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
/**
@ -73,12 +73,10 @@ export interface InputNumberProps {
decrementButtonClass?: string | undefined;
/**
* Style class of the increment button.
* @defaultValue pi pi-angle-up
*/
incrementButtonIcon?: string | undefined;
/**
* Style class of the decrement button.
* @defaultValue pi pi-angle-down
*/
decrementButtonIcon?: string | undefined;
/**
@ -203,7 +201,16 @@ export interface InputNumberProps {
/**
* Defines valid slots in InputNumber component.
*/
export interface InputNumberSlots {}
export interface InputNumberSlots {
/**
* Custom increment button icon template.
*/
incrementbuttonicon(): VNode[];
/**
* Custom decrement button icon template.
*/
decrementbuttonicon(): VNode[];
}
/**
* Defines valid emits in InputNumber component.