@suyouwanggang/p-ui
Version:
`p-ui`是一套使用原生`Web Components`规范开发的跨框架UI组件库,基于`lit-elment`库开发。 [github项目地址](https://github.com/suyouwanggang/p-ui)
63 lines • 1.92 kB
TypeScript
import { LitElement } from 'lit-element';
import PTips from './p-tips';
declare type inputtype = 'text' | 'password' | 'email' | 'url' | 'number' | 'tel' | 'search';
declare class MinInputClass extends LitElement {
get input(): HTMLInputElement | unknown;
name?: string;
value?: string;
invalid?: boolean;
novalidate?: boolean;
required?: boolean;
errorMessage?: string;
pattern?: string;
minLength?: number;
maxLength?: number;
min?: number;
max?: number;
step?: number;
customValidateMethod?: any;
get validity(): boolean;
get validationMessage(): string;
}
declare class PInput extends MinInputClass {
label?: string;
tips?: string;
errortips?: string;
disabled?: boolean;
readOnly?: boolean;
type?: inputtype;
placeholder?: string;
leftIcon?: string;
rightIcon?: string;
block?: boolean;
clear?: boolean;
debounce?: number;
throttle?: number;
showStep?: boolean;
static get styles(): import("lit-element").CSSResult;
checkValidity(): boolean;
get input(): HTMLInputElement;
focus(): void;
reset(): void;
get form(): HTMLFormElement;
private typePassword;
clearValue(): void;
searchValue(): void;
dispatchChange(): void;
dispatchFocus(): void;
_dispatchInput(): void;
private static NUMBERINPUTARRAY;
private _processInputInvlaide;
private _processInput;
update(changedProperties: Map<string | number | symbol, unknown>): void;
updated(changedProperties: Map<string | number | symbol, unknown>): void;
get pTipCon(): PTips;
private firstTypePassword;
firstUpdated(): void;
private _stepAdd;
private _stepDel;
private _innerType;
render(): import("lit-element").TemplateResult;
}
export { PInput };
//# sourceMappingURL=p-input.d.ts.map