first commit
This commit is contained in:
27
frontend/node_modules/@rc-component/trigger/es/Popup/Mask.js
generated
vendored
Normal file
27
frontend/node_modules/@rc-component/trigger/es/Popup/Mask.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import classNames from 'classnames';
|
||||
import CSSMotion from 'rc-motion';
|
||||
import * as React from 'react';
|
||||
export default function Mask(props) {
|
||||
var prefixCls = props.prefixCls,
|
||||
open = props.open,
|
||||
zIndex = props.zIndex,
|
||||
mask = props.mask,
|
||||
motion = props.motion;
|
||||
if (!mask) {
|
||||
return null;
|
||||
}
|
||||
return /*#__PURE__*/React.createElement(CSSMotion, _extends({}, motion, {
|
||||
motionAppear: true,
|
||||
visible: open,
|
||||
removeOnLeave: true
|
||||
}), function (_ref) {
|
||||
var className = _ref.className;
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
style: {
|
||||
zIndex: zIndex
|
||||
},
|
||||
className: classNames("".concat(prefixCls, "-mask"), className)
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user