Latest updates from IceHrmPro
This commit is contained in:
42
web/node_modules/rc-select/es/TransBtn.js
generated
vendored
Normal file
42
web/node_modules/rc-select/es/TransBtn.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import * as React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
var TransBtn = function TransBtn(_ref) {
|
||||
var className = _ref.className,
|
||||
customizeIcon = _ref.customizeIcon,
|
||||
customizeIconProps = _ref.customizeIconProps,
|
||||
_onMouseDown = _ref.onMouseDown,
|
||||
onClick = _ref.onClick,
|
||||
children = _ref.children;
|
||||
var icon;
|
||||
|
||||
if (typeof customizeIcon === 'function') {
|
||||
icon = customizeIcon(customizeIconProps);
|
||||
} else {
|
||||
icon = customizeIcon;
|
||||
}
|
||||
|
||||
return React.createElement("span", {
|
||||
className: className,
|
||||
onMouseDown: function onMouseDown(event) {
|
||||
event.preventDefault();
|
||||
|
||||
if (_onMouseDown) {
|
||||
_onMouseDown(event);
|
||||
}
|
||||
},
|
||||
style: {
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none'
|
||||
},
|
||||
unselectable: "on",
|
||||
onClick: onClick,
|
||||
"aria-hidden": true
|
||||
}, icon !== undefined ? icon : React.createElement("span", {
|
||||
className: classNames(className.split(/\s+/).map(function (cls) {
|
||||
return "".concat(cls, "-icon");
|
||||
}))
|
||||
}, children));
|
||||
};
|
||||
|
||||
export default TransBtn;
|
||||
Reference in New Issue
Block a user