@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
65 lines (64 loc) • 3.01 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { ConfigurableProps } from '@vexip-ui/config';
import { NumberInputSlots } from './symbol';
export declare const numberInputProps: {
inherit: PropType<boolean>;
size: PropType<"default" | "small" | "large">;
state: PropType<"default" | "success" | "error" | "warning">;
locale: PropType<Partial<{
placeholder: string;
outOfRange: string;
ariaLabel: {
clear: string;
increase: string;
decrease: string;
};
}>>;
prefix: PropType<any>;
prefixColor: PropType<string>;
suffix: PropType<any>;
suffixColor: PropType<string>;
formatter: PropType<(value: number) => number | string>;
value: PropType<number>;
min: PropType<number>;
max: PropType<number>;
placeholder: PropType<string>;
autofocus: PropType<boolean>;
spellcheck: PropType<boolean>;
autocomplete: PropType<string | boolean>;
precision: PropType<number>;
readonly: PropType<boolean>;
step: PropType<number>;
ctrlStep: PropType<number>;
shiftStep: PropType<number>;
altStep: PropType<number>;
disabled: PropType<boolean>;
controlClass: PropType<string | Record<string, any> | (string | Record<string, any>)[]>;
debounce: PropType<boolean>;
delay: PropType<number>;
clearable: PropType<boolean>;
loading: PropType<boolean>;
loadingIcon: PropType<any>;
loadingLock: PropType<boolean>;
loadingEffect: PropType<string>;
sync: PropType<boolean>;
syncStep: PropType<boolean>;
controlType: PropType<"right" | "left" | "none" | "right-fade" | "left-fade">;
emptyType: PropType<"undefined" | "NaN" | "null">;
controlAttrs: PropType<Record<string, any>>;
name: PropType<string>;
slots: PropType<NumberInputSlots>;
onFocus: PropType<((event: FocusEvent) => void) | ((event: FocusEvent) => void)[]>;
onBlur: PropType<((event: FocusEvent) => void) | ((event: FocusEvent) => void)[]>;
onInput: PropType<((value: number) => void) | ((value: number) => void)[]>;
onChange: PropType<((value: number) => void) | ((value: number) => void)[]>;
onEnter: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
onClear: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
onPrefixClick: PropType<((event: MouseEvent) => void) | ((event: MouseEvent) => void)[]>;
onSuffixClick: PropType<((event: MouseEvent) => void) | ((event: MouseEvent) => void)[]>;
onKeyDown: PropType<((event: KeyboardEvent) => void) | ((event: KeyboardEvent) => void)[]>;
onKeyPress: PropType<((event: KeyboardEvent) => void) | ((event: KeyboardEvent) => void)[]>;
onKeyUp: PropType<((event: KeyboardEvent) => void) | ((event: KeyboardEvent) => void)[]>;
};
export type NumberInputProps = ExtractPropTypes<typeof numberInputProps>;
export type NumberInputCProps = ConfigurableProps<NumberInputProps>;