32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
import type { Component, ExtractPublicPropTypes } from 'vue';
|
|
import type Result from './result.vue';
|
|
export declare const IconMap: {
|
|
readonly primary: "icon-primary";
|
|
readonly success: "icon-success";
|
|
readonly warning: "icon-warning";
|
|
readonly error: "icon-error";
|
|
readonly info: "icon-info";
|
|
};
|
|
export declare const IconComponentMap: Record<(typeof IconMap)[keyof typeof IconMap], Component>;
|
|
export interface ResultProps {
|
|
/**
|
|
* @description title of result
|
|
*/
|
|
title?: string;
|
|
/**
|
|
* @description sub title of result
|
|
*/
|
|
subTitle?: string;
|
|
/**
|
|
* @description icon type of result
|
|
*/
|
|
icon?: 'primary' | 'success' | 'warning' | 'info' | 'error';
|
|
}
|
|
export declare const resultProps: {
|
|
readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
readonly subTitle: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
readonly icon: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "error" | "primary" | "success" | "warning" | "info", unknown, "info", boolean>;
|
|
};
|
|
export type ResultPropsPublic = ExtractPublicPropTypes<typeof resultProps>;
|
|
export type ResultInstance = InstanceType<typeof Result> & unknown;
|