Latest updates from IceHrmPro
This commit is contained in:
43
web/node_modules/antd/es/descriptions/Cell.js
generated
vendored
Normal file
43
web/node_modules/antd/es/descriptions/Cell.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
import * as React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
function notEmpty(val) {
|
||||
return val !== undefined && val !== null;
|
||||
}
|
||||
|
||||
var Cell = function Cell(_ref) {
|
||||
var itemPrefixCls = _ref.itemPrefixCls,
|
||||
component = _ref.component,
|
||||
span = _ref.span,
|
||||
className = _ref.className,
|
||||
style = _ref.style,
|
||||
bordered = _ref.bordered,
|
||||
label = _ref.label,
|
||||
content = _ref.content,
|
||||
colon = _ref.colon;
|
||||
var Component = component;
|
||||
|
||||
if (bordered) {
|
||||
var _classNames;
|
||||
|
||||
return /*#__PURE__*/React.createElement(Component, {
|
||||
className: classNames((_classNames = {}, _defineProperty(_classNames, "".concat(itemPrefixCls, "-item-label"), notEmpty(label)), _defineProperty(_classNames, "".concat(itemPrefixCls, "-item-content"), notEmpty(content)), _classNames), className),
|
||||
style: style,
|
||||
colSpan: span
|
||||
}, notEmpty(label) ? label : content);
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(Component, {
|
||||
className: classNames("".concat(itemPrefixCls, "-item"), className),
|
||||
style: style,
|
||||
colSpan: span
|
||||
}, label && /*#__PURE__*/React.createElement("span", {
|
||||
className: classNames("".concat(itemPrefixCls, "-item-label"), _defineProperty({}, "".concat(itemPrefixCls, "-item-colon"), colon))
|
||||
}, label), content && /*#__PURE__*/React.createElement("span", {
|
||||
className: classNames("".concat(itemPrefixCls, "-item-content"))
|
||||
}, content));
|
||||
};
|
||||
|
||||
export default Cell;
|
||||
Reference in New Issue
Block a user