@suyouwanggang/p-ui
Version:
`p-ui`是一套使用原生`Web Components`规范开发的跨框架UI组件库,基于`lit-elment`库开发。 [github项目地址](https://github.com/suyouwanggang/p-ui)
46 lines • 1.96 kB
TypeScript
import { LitElement } from 'lit-element';
import './p-icon';
import './p-loading';
declare type positionType = 'topcenter' | 'topleft' | 'topright' | 'bottomcenter' | 'bottomleft' | 'bottomright';
interface MessageType {
text?: string;
position?: positionType;
duration?: number;
loading?: boolean;
onclose?: Function;
color?: string;
icon?: string;
}
export default class PMessage extends LitElement {
loading: boolean;
block: boolean;
show: boolean;
icon: string;
color: string;
hAgile: string;
static styles: import("lit-element").CSSResult;
constructor();
firstUpdated(changedProperties: Map<string | number | symbol, unknown>): void;
render(): import("lit-element").TemplateResult;
updated(changedProperties: Map<string | number | symbol, unknown>): void;
static zIndex: number;
static DEFAULTPOSTION: positionType;
static postionMap: {
topcenter: string;
topleft: string;
topright: string;
bottomcenter: string;
bottomleft: string;
bottomright: string;
};
static _getMessagePositionDIV: (position: positionType) => HTMLElement;
static _mergerConfig(defaultInfoConfig: MessageType, text?: string | MessageType, duration?: number, onclose?: Function): PMessage;
static show: (config: MessageType) => PMessage;
static info: (text?: string | MessageType, duration?: number, onclose?: Function) => PMessage;
static error: (text?: string | MessageType, duration?: number, onclose?: Function) => PMessage;
static success: (text?: string | MessageType, duration?: number, onclose?: Function) => PMessage;
static warning: (text?: string | MessageType, duration?: number, onclose?: Function) => PMessage;
static loading: (text?: string | MessageType, duration?: number, onclose?: Function) => PMessage;
}
export {};
//# sourceMappingURL=p-message.d.ts.map