You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
925 B
33 lines
925 B
import React from 'react';
|
|
|
|
var PopupInner = function PopupInner(props, ref) {
|
|
var prefixCls = props.prefixCls,
|
|
className = props.className,
|
|
style = props.style,
|
|
children = props.children,
|
|
onMouseEnter = props.onMouseEnter,
|
|
onMouseLeave = props.onMouseLeave,
|
|
onMouseDown = props.onMouseDown,
|
|
onTouchStart = props.onTouchStart;
|
|
var childNode = children;
|
|
|
|
if (React.Children.count(children) > 1) {
|
|
childNode = React.createElement("div", {
|
|
className: "".concat(prefixCls, "-content")
|
|
}, children);
|
|
}
|
|
|
|
return React.createElement("div", {
|
|
ref: ref,
|
|
className: className,
|
|
onMouseEnter: onMouseEnter,
|
|
onMouseLeave: onMouseLeave,
|
|
onMouseDown: onMouseDown,
|
|
onTouchStart: onTouchStart,
|
|
style: style
|
|
}, childNode);
|
|
};
|
|
|
|
var RefPopupInner = React.forwardRef(PopupInner);
|
|
RefPopupInner.displayName = 'PopupInner';
|
|
export default RefPopupInner; |