plus-pro-components
Version:
Page level components developed based on Element Plus.
62 lines (61 loc) • 1.88 kB
TypeScript
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
export interface PlusPopoverProps {
hasShowBottomButton?: boolean;
confirmLoading?: boolean;
cancelText?: string;
confirmText?: string;
}
export interface PlusPopoverEmits {
(e: 'cancel'): void;
(e: 'confirm'): void;
}
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusPopoverProps>, {
hasShowBottomButton: boolean;
confirmLoading: boolean;
cancelText: string;
confirmText: string;
visible: boolean;
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
cancel: () => void;
confirm: () => void;
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusPopoverProps>, {
hasShowBottomButton: boolean;
confirmLoading: boolean;
cancelText: string;
confirmText: string;
visible: boolean;
}>>> & {
onCancel?: (() => any) | undefined;
onConfirm?: (() => any) | undefined;
}, {
confirmText: string;
cancelText: string;
confirmLoading: boolean;
hasShowBottomButton: boolean;
}, {}>, {
default?(_: {}): any;
reference?(_: {}): any;
}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};