element-plus
Version:
A Component Library for Vue 3
54 lines (53 loc) • 1.78 kB
TypeScript
import type { PageHeaderProps } from './page-header';
declare var __VLS_1: {}, __VLS_3: {}, __VLS_15: {}, __VLS_22: {}, __VLS_24: {}, __VLS_26: {};
type __VLS_Slots = {} & {
breadcrumb?: (props: typeof __VLS_1) => any;
} & {
icon?: (props: typeof __VLS_3) => any;
} & {
title?: (props: typeof __VLS_15) => any;
} & {
content?: (props: typeof __VLS_22) => any;
} & {
extra?: (props: typeof __VLS_24) => any;
} & {
default?: (props: typeof __VLS_26) => any;
};
declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<PageHeaderProps>, {
icon: () => any;
content: string;
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
back: () => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<PageHeaderProps>, {
icon: () => any;
content: string;
}>>> & {
onBack?: (() => any) | undefined;
}, {
content: string;
icon: string | import("vue").Component;
}, {}>;
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_TypePropsToOption<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<Required<T>[K]>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaultsLocal<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};
type __VLS_PrettifyLocal<T> = {
[K in keyof T as K]: T[K];
} & {};