xdesign-vue-next
Version:
XDesign Component for vue-next
130 lines (129 loc) • 6.21 kB
TypeScript
import type { PopconfirmVisibleChangeContext } from './type';
declare const _default: import("vue").DefineComponent<{
cancelBtn: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps>;
default: string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps;
};
confirmBtn: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps>;
default: string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps;
};
content: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
default: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
destroyOnClose: {
type: BooleanConstructor;
default: boolean;
};
icon: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("..").SlotReturnValue>;
};
placement: {
type: import("vue").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: "left" | "top" | "bottom" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom"): boolean;
};
popupProps: {
type: import("vue").PropType<import("../popup/type").TdPopupProps>;
};
showArrow: {
type: BooleanConstructor;
default: boolean;
};
theme: {
type: import("vue").PropType<"default" | "warning" | "danger">;
default: "default" | "warning" | "danger";
validator(val: "default" | "warning" | "danger"): boolean;
};
triggerElement: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
visible: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultVisible: BooleanConstructor;
onCancel: import("vue").PropType<(options: {
e: MouseEvent;
}) => void>;
onConfirm: import("vue").PropType<(options: {
e: MouseEvent;
}) => void>;
onVisibleChange: import("vue").PropType<(visible: boolean, context?: PopconfirmVisibleChangeContext) => void>;
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
cancelBtn: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps>;
default: string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps;
};
confirmBtn: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps>;
default: string | ((h: typeof import("vue").h) => import("..").SlotReturnValue) | import("..").TdButtonProps;
};
content: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
default: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
destroyOnClose: {
type: BooleanConstructor;
default: boolean;
};
icon: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("..").SlotReturnValue>;
};
placement: {
type: import("vue").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: "left" | "top" | "bottom" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom"): boolean;
};
popupProps: {
type: import("vue").PropType<import("../popup/type").TdPopupProps>;
};
showArrow: {
type: BooleanConstructor;
default: boolean;
};
theme: {
type: import("vue").PropType<"default" | "warning" | "danger">;
default: "default" | "warning" | "danger";
validator(val: "default" | "warning" | "danger"): boolean;
};
triggerElement: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
visible: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultVisible: BooleanConstructor;
onCancel: import("vue").PropType<(options: {
e: MouseEvent;
}) => void>;
onConfirm: import("vue").PropType<(options: {
e: MouseEvent;
}) => void>;
onVisibleChange: import("vue").PropType<(visible: boolean, context?: PopconfirmVisibleChangeContext) => void>;
}>>, {
visible: boolean;
modelValue: boolean;
theme: "default" | "warning" | "danger";
placement: "left" | "top" | "bottom" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom";
destroyOnClose: boolean;
showArrow: boolean;
defaultVisible: boolean;
cancelBtn: import("..").SlotReturnValue | import("..").TdButtonProps;
confirmBtn: import("..").SlotReturnValue | import("..").TdButtonProps;
}, {}>;
export default _default;