yuang-framework-ui-pc
Version:
yuang-framework-ui-pc Library
37 lines (36 loc) • 812 B
JavaScript
import { useTooltipProps, tooltipEmits as tooltipEmits$1 } from "element-plus";
import { omit } from "../utils/core";
const normalizeProps = omit(useTooltipProps, [
"onUpdate:visible",
"style",
"onMouseenter",
"onMouseleave",
"onClick",
"onKeydown",
"onFocus",
"onBlur",
"onContextmenu"
]);
const tooltipProps = {
className: String,
popperClass: String,
popperStyle: Object,
...normalizeProps,
/** 自定义内容样式 */
bodyStyle: Object,
/** 自定义背景色 */
bg: String,
/** 自定义箭头颜色 */
arrowBg: String,
/** 宽度 */
width: [String, Number],
/** 是否是气泡卡片 */
isPopover: Boolean
};
const tooltipEmits = tooltipEmits$1;
const tooltipPropKeys = Object.keys(tooltipProps);
export {
tooltipEmits,
tooltipPropKeys,
tooltipProps
};