xdesign-vue-next
Version:
XDesign Component for vue-next
101 lines (100 loc) • 3.86 kB
TypeScript
import { PropType } from 'vue';
import type { TdStickyItemProps } from './type';
import type { TdPopupProps } from '../popup/type';
declare const _default: import("vue").DefineComponent<{
type: {
type: PropType<"normal" | "compact">;
default: "normal" | "compact";
validator(val: "normal" | "compact"): boolean;
};
shape: {
type: PropType<"square" | "round">;
default: "square" | "round";
validator(val: "square" | "round"): boolean;
};
placement: {
type: PropType<"left-top" | "left-bottom" | "right-top" | "right-bottom" | "right-center" | "left-center">;
default: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "right-center" | "left-center";
validator(val: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "right-center" | "left-center"): boolean;
};
basePopupProps: PropType<TdPopupProps>;
baseWidth: {
type: PropType<string | number>;
};
onClick: PropType<(context: {
e: MouseEvent;
item: TdStickyItemProps;
}) => void>;
onHover: PropType<(context: {
e: MouseEvent;
item: TdStickyItemProps;
}) => void>;
icon: {
type: PropType<(h: typeof import("vue").h) => import("../common").SlotReturnValue>;
};
label: {
type: PropType<string | ((h: typeof import("vue").h) => import("../common").SlotReturnValue)>;
};
popup: {
type: PropType<string | ((h: typeof import("vue").h) => import("../common").SlotReturnValue)>;
};
popupProps: {
type: PropType<TdPopupProps>;
};
trigger: {
type: PropType<"click" | "hover">;
default: "click" | "hover";
validator(val: "click" | "hover"): boolean;
};
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
type: {
type: PropType<"normal" | "compact">;
default: "normal" | "compact";
validator(val: "normal" | "compact"): boolean;
};
shape: {
type: PropType<"square" | "round">;
default: "square" | "round";
validator(val: "square" | "round"): boolean;
};
placement: {
type: PropType<"left-top" | "left-bottom" | "right-top" | "right-bottom" | "right-center" | "left-center">;
default: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "right-center" | "left-center";
validator(val: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "right-center" | "left-center"): boolean;
};
basePopupProps: PropType<TdPopupProps>;
baseWidth: {
type: PropType<string | number>;
};
onClick: PropType<(context: {
e: MouseEvent;
item: TdStickyItemProps;
}) => void>;
onHover: PropType<(context: {
e: MouseEvent;
item: TdStickyItemProps;
}) => void>;
icon: {
type: PropType<(h: typeof import("vue").h) => import("../common").SlotReturnValue>;
};
label: {
type: PropType<string | ((h: typeof import("vue").h) => import("../common").SlotReturnValue)>;
};
popup: {
type: PropType<string | ((h: typeof import("vue").h) => import("../common").SlotReturnValue)>;
};
popupProps: {
type: PropType<TdPopupProps>;
};
trigger: {
type: PropType<"click" | "hover">;
default: "click" | "hover";
validator(val: "click" | "hover"): boolean;
};
}>>, {
type: "normal" | "compact";
shape: "square" | "round";
trigger: "click" | "hover";
placement: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "right-center" | "left-center";
}, {}>;
export default _default;