amis-rpc-design/node_modules/rc-tooltip/es/Popup.js

19 lines
660 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import classNames from 'classnames';
import * as React from 'react';
export default function Popup(props) {
var children = props.children,
prefixCls = props.prefixCls,
id = props.id,
overlayInnerStyle = props.overlayInnerStyle,
className = props.className,
style = props.style;
return /*#__PURE__*/React.createElement("div", {
className: classNames("".concat(prefixCls, "-content"), className),
style: style
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-inner"),
id: id,
role: "tooltip",
style: overlayInnerStyle
}, typeof children === 'function' ? children() : children));
}