vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
61 lines (60 loc) • 3.27 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { ConfigurableProps } from '@vexip-ui/config';
import { InputSlots } from './symbol';
export declare const inputProps: {
inherit: PropType<boolean>;
size: PropType<"default" | "small" | "large">;
state: PropType<"default" | "success" | "error" | "warning">;
locale: PropType<Partial<{
placeholder: string;
ariaLabel: {
clear: string;
};
}>>;
type: PropType<"date" | "datetime" | "time" | "text" | "password">;
prefix: PropType<any>;
prefixColor: PropType<string>;
suffix: PropType<any>;
suffixColor: PropType<string>;
formatter: PropType<(value: string | number) => string | number>;
value: PropType<string | number>;
placeholder: PropType<string>;
autofocus: PropType<boolean>;
spellcheck: PropType<boolean>;
autocomplete: PropType<string | boolean>;
readonly: PropType<boolean>;
disabled: PropType<boolean>;
controlClass: PropType<string | Record<string, any> | (string | Record<string, any>)[]>;
debounce: PropType<boolean>;
delay: PropType<number>;
maxLength: PropType<number>;
hideCount: PropType<boolean>;
before: PropType<string>;
after: PropType<string>;
plainPassword: PropType<boolean>;
clearable: PropType<boolean>;
loading: PropType<boolean>;
loadingIcon: PropType<any>;
loadingLock: PropType<boolean>;
loadingEffect: PropType<string>;
transparent: PropType<boolean>;
sync: PropType<boolean>;
controlAttrs: PropType<Record<string, any>>;
name: PropType<string>;
slots: PropType<InputSlots>;
onFocus: PropType<((event: FocusEvent) => void) | ((event: FocusEvent) => void)[]>;
onBlur: PropType<((event: FocusEvent) => void) | ((event: FocusEvent) => void)[]>;
onInput: PropType<((value: string) => void) | ((value: string | number) => void) | ((value: number) => void) | (((value: string) => void) | ((value: string | number) => void) | ((value: number) => void))[]>;
onChange: PropType<((value: string) => void) | ((value: string | number) => void) | ((value: number) => void) | (((value: string) => void) | ((value: string | 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)[]>;
onCompositionStart: PropType<((event: CompositionEvent) => void) | ((event: CompositionEvent) => void)[]>;
onCompositionEnd: PropType<((event: CompositionEvent) => void) | ((event: CompositionEvent) => void)[]>;
};
export type InputProps = ExtractPropTypes<typeof inputProps>;
export type InputCProps = ConfigurableProps<InputProps>;