xdesign-vue-next
Version:
XDesign Component for vue-next
63 lines (62 loc) • 2.48 kB
TypeScript
import { TdPopconfirmProps } from './type';
import { PropType } from 'vue';
declare const _default: {
cancelBtn: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps>;
default: string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps;
};
confirmBtn: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps>;
default: string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps;
};
content: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
default: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
destroyOnClose: {
type: BooleanConstructor;
default: boolean;
};
icon: {
type: PropType<(h: typeof import("vue").h) => import("..").SlotReturnValue>;
};
placement: {
type: PropType<"left" | "top" | "bottom" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom">;
default: "left" | "top" | "bottom" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom";
validator(val: TdPopconfirmProps['placement']): boolean;
};
popupProps: {
type: PropType<import("..").TdPopupProps>;
};
showArrow: {
type: BooleanConstructor;
default: boolean;
};
theme: {
type: PropType<"default" | "warning" | "danger">;
default: "default" | "warning" | "danger";
validator(val: TdPopconfirmProps['theme']): boolean;
};
triggerElement: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
visible: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultVisible: BooleanConstructor;
onCancel: PropType<(options: {
e: MouseEvent;
}) => void>;
onConfirm: PropType<(options: {
e: MouseEvent;
}) => void>;
onVisibleChange: PropType<(visible: boolean, context?: import("./type").PopconfirmVisibleChangeContext) => void>;
};
export default _default;