Latest updates from IceHrmPro
This commit is contained in:
14
web/node_modules/antd/lib/descriptions/Cell.d.ts
generated
vendored
Normal file
14
web/node_modules/antd/lib/descriptions/Cell.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
export interface CellProps {
|
||||
itemPrefixCls: string;
|
||||
span: number;
|
||||
className?: string;
|
||||
component: string;
|
||||
style?: React.CSSProperties;
|
||||
bordered?: boolean;
|
||||
label?: React.ReactNode;
|
||||
content?: React.ReactNode;
|
||||
colon?: boolean;
|
||||
}
|
||||
declare const Cell: React.FC<CellProps>;
|
||||
export default Cell;
|
||||
60
web/node_modules/antd/lib/descriptions/Cell.js
generated
vendored
Normal file
60
web/node_modules/antd/lib/descriptions/Cell.js
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
"use strict";
|
||||
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _classnames = _interopRequireDefault(require("classnames"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
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; }
|
||||
|
||||
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: (0, _classnames["default"])((_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: (0, _classnames["default"])("".concat(itemPrefixCls, "-item"), className),
|
||||
style: style,
|
||||
colSpan: span
|
||||
}, label && /*#__PURE__*/React.createElement("span", {
|
||||
className: (0, _classnames["default"])("".concat(itemPrefixCls, "-item-label"), _defineProperty({}, "".concat(itemPrefixCls, "-item-colon"), colon))
|
||||
}, label), content && /*#__PURE__*/React.createElement("span", {
|
||||
className: (0, _classnames["default"])("".concat(itemPrefixCls, "-item-content"))
|
||||
}, content));
|
||||
};
|
||||
|
||||
var _default = Cell;
|
||||
exports["default"] = _default;
|
||||
11
web/node_modules/antd/lib/descriptions/Item.d.ts
generated
vendored
Normal file
11
web/node_modules/antd/lib/descriptions/Item.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as React from 'react';
|
||||
export interface DescriptionsItemProps {
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
label?: React.ReactNode;
|
||||
children: React.ReactNode;
|
||||
span?: number;
|
||||
}
|
||||
declare const DescriptionsItem: React.FC<DescriptionsItemProps>;
|
||||
export default DescriptionsItem;
|
||||
14
web/node_modules/antd/lib/descriptions/Item.js
generated
vendored
Normal file
14
web/node_modules/antd/lib/descriptions/Item.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var DescriptionsItem = function DescriptionsItem(_ref) {
|
||||
var children = _ref.children;
|
||||
return children;
|
||||
};
|
||||
|
||||
var _default = DescriptionsItem;
|
||||
exports["default"] = _default;
|
||||
12
web/node_modules/antd/lib/descriptions/Row.d.ts
generated
vendored
Normal file
12
web/node_modules/antd/lib/descriptions/Row.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import { DescriptionsItemProps } from './Item';
|
||||
export interface RowProps {
|
||||
prefixCls: string;
|
||||
vertical: boolean;
|
||||
row: React.ReactElement<DescriptionsItemProps>[];
|
||||
bordered?: boolean;
|
||||
colon: boolean;
|
||||
index: number;
|
||||
}
|
||||
declare const Row: React.FC<RowProps>;
|
||||
export default Row;
|
||||
115
web/node_modules/antd/lib/descriptions/Row.js
generated
vendored
Normal file
115
web/node_modules/antd/lib/descriptions/Row.js
generated
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
"use strict";
|
||||
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _Cell = _interopRequireDefault(require("./Cell"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
function renderCells(items, _ref, _ref2) {
|
||||
var colon = _ref.colon,
|
||||
prefixCls = _ref.prefixCls,
|
||||
bordered = _ref.bordered;
|
||||
var component = _ref2.component,
|
||||
type = _ref2.type,
|
||||
showLabel = _ref2.showLabel,
|
||||
showContent = _ref2.showContent;
|
||||
return items.map(function (_ref3, index) {
|
||||
var _ref3$props = _ref3.props,
|
||||
label = _ref3$props.label,
|
||||
children = _ref3$props.children,
|
||||
_ref3$props$prefixCls = _ref3$props.prefixCls,
|
||||
itemPrefixCls = _ref3$props$prefixCls === void 0 ? prefixCls : _ref3$props$prefixCls,
|
||||
className = _ref3$props.className,
|
||||
style = _ref3$props.style,
|
||||
_ref3$props$span = _ref3$props.span,
|
||||
span = _ref3$props$span === void 0 ? 1 : _ref3$props$span,
|
||||
key = _ref3.key;
|
||||
|
||||
if (typeof component === 'string') {
|
||||
return /*#__PURE__*/React.createElement(_Cell["default"], {
|
||||
key: "".concat(type, "-").concat(key || index),
|
||||
className: className,
|
||||
style: style,
|
||||
span: span,
|
||||
colon: colon,
|
||||
component: component,
|
||||
itemPrefixCls: itemPrefixCls,
|
||||
bordered: bordered,
|
||||
label: showLabel ? label : null,
|
||||
content: showContent ? children : null
|
||||
});
|
||||
}
|
||||
|
||||
return [/*#__PURE__*/React.createElement(_Cell["default"], {
|
||||
key: "label-".concat(key || index),
|
||||
className: className,
|
||||
style: style,
|
||||
span: 1,
|
||||
colon: colon,
|
||||
component: component[0],
|
||||
itemPrefixCls: itemPrefixCls,
|
||||
bordered: bordered,
|
||||
label: label
|
||||
}), /*#__PURE__*/React.createElement(_Cell["default"], {
|
||||
key: "content-".concat(key || index),
|
||||
className: className,
|
||||
style: style,
|
||||
span: span * 2 - 1,
|
||||
component: component[1],
|
||||
itemPrefixCls: itemPrefixCls,
|
||||
bordered: bordered,
|
||||
content: children
|
||||
})];
|
||||
});
|
||||
}
|
||||
|
||||
var Row = function Row(props) {
|
||||
var prefixCls = props.prefixCls,
|
||||
vertical = props.vertical,
|
||||
row = props.row,
|
||||
index = props.index,
|
||||
bordered = props.bordered;
|
||||
|
||||
if (vertical) {
|
||||
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tr", {
|
||||
key: "label-".concat(index),
|
||||
className: "".concat(prefixCls, "-row")
|
||||
}, renderCells(row, props, {
|
||||
component: 'th',
|
||||
type: 'label',
|
||||
showLabel: true
|
||||
})), /*#__PURE__*/React.createElement("tr", {
|
||||
key: "content-".concat(index),
|
||||
className: "".concat(prefixCls, "-row")
|
||||
}, renderCells(row, props, {
|
||||
component: 'td',
|
||||
type: 'content',
|
||||
showContent: true
|
||||
})));
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement("tr", {
|
||||
key: index,
|
||||
className: "".concat(prefixCls, "-row")
|
||||
}, renderCells(row, props, {
|
||||
component: bordered ? ['th', 'td'] : 'td',
|
||||
type: 'item',
|
||||
showLabel: true,
|
||||
showContent: true
|
||||
}));
|
||||
};
|
||||
|
||||
var _default = Row;
|
||||
exports["default"] = _default;
|
||||
19
web/node_modules/antd/lib/descriptions/index.d.ts
generated
vendored
Normal file
19
web/node_modules/antd/lib/descriptions/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import * as React from 'react';
|
||||
import { Breakpoint } from '../_util/responsiveObserve';
|
||||
export interface DescriptionsProps {
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
bordered?: boolean;
|
||||
size?: 'middle' | 'small' | 'default';
|
||||
children?: React.ReactNode;
|
||||
title?: React.ReactNode;
|
||||
column?: number | Partial<Record<Breakpoint, number>>;
|
||||
layout?: 'horizontal' | 'vertical';
|
||||
colon?: boolean;
|
||||
}
|
||||
declare function Descriptions({ prefixCls: customizePrefixCls, title, column, colon, bordered, layout, children, className, style, size, }: DescriptionsProps): JSX.Element;
|
||||
declare namespace Descriptions {
|
||||
var Item: React.FC<import("./Item").DescriptionsItemProps>;
|
||||
}
|
||||
export default Descriptions;
|
||||
184
web/node_modules/antd/lib/descriptions/index.js
generated
vendored
Normal file
184
web/node_modules/antd/lib/descriptions/index.js
generated
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _classnames = _interopRequireDefault(require("classnames"));
|
||||
|
||||
var _toArray = _interopRequireDefault(require("rc-util/lib/Children/toArray"));
|
||||
|
||||
var _responsiveObserve = _interopRequireWildcard(require("../_util/responsiveObserve"));
|
||||
|
||||
var _warning = _interopRequireDefault(require("../_util/warning"));
|
||||
|
||||
var _configProvider = require("../config-provider");
|
||||
|
||||
var _Row = _interopRequireDefault(require("./Row"));
|
||||
|
||||
var _Item = _interopRequireDefault(require("./Item"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
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; }
|
||||
|
||||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
||||
|
||||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
||||
|
||||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
||||
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
var DEFAULT_COLUMN_MAP = {
|
||||
xxl: 3,
|
||||
xl: 3,
|
||||
lg: 3,
|
||||
md: 3,
|
||||
sm: 2,
|
||||
xs: 1
|
||||
};
|
||||
|
||||
function getColumn(column, screens) {
|
||||
if (typeof column === 'number') {
|
||||
return column;
|
||||
}
|
||||
|
||||
if (_typeof(column) === 'object') {
|
||||
for (var i = 0; i < _responsiveObserve.responsiveArray.length; i++) {
|
||||
var breakpoint = _responsiveObserve.responsiveArray[i];
|
||||
|
||||
if (screens[breakpoint] && column[breakpoint] !== undefined) {
|
||||
return column[breakpoint] || DEFAULT_COLUMN_MAP[breakpoint];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
function getFilledItem(node, span, rowRestCol) {
|
||||
var clone = node;
|
||||
|
||||
if (span === undefined || span > rowRestCol) {
|
||||
clone = React.cloneElement(node, {
|
||||
span: rowRestCol
|
||||
});
|
||||
(0, _warning["default"])(span === undefined, 'Descriptions', 'Sum of column `span` in a line not match `column` of Descriptions.');
|
||||
}
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
function getRows(children, column) {
|
||||
var childNodes = (0, _toArray["default"])(children).filter(function (n) {
|
||||
return n;
|
||||
});
|
||||
var rows = [];
|
||||
var tmpRow = [];
|
||||
var rowRestCol = column;
|
||||
childNodes.forEach(function (node, index) {
|
||||
var _a;
|
||||
|
||||
var span = (_a = node.props) === null || _a === void 0 ? void 0 : _a.span;
|
||||
var mergedSpan = span || 1; // Additional handle last one
|
||||
|
||||
if (index === childNodes.length - 1) {
|
||||
tmpRow.push(getFilledItem(node, span, rowRestCol));
|
||||
rows.push(tmpRow);
|
||||
return;
|
||||
}
|
||||
|
||||
if (mergedSpan < rowRestCol) {
|
||||
rowRestCol -= mergedSpan;
|
||||
tmpRow.push(node);
|
||||
} else {
|
||||
tmpRow.push(getFilledItem(node, mergedSpan, rowRestCol));
|
||||
rows.push(tmpRow);
|
||||
rowRestCol = column;
|
||||
tmpRow = [];
|
||||
}
|
||||
});
|
||||
return rows;
|
||||
}
|
||||
|
||||
function Descriptions(_ref) {
|
||||
var _classNames;
|
||||
|
||||
var customizePrefixCls = _ref.prefixCls,
|
||||
title = _ref.title,
|
||||
_ref$column = _ref.column,
|
||||
column = _ref$column === void 0 ? DEFAULT_COLUMN_MAP : _ref$column,
|
||||
_ref$colon = _ref.colon,
|
||||
colon = _ref$colon === void 0 ? true : _ref$colon,
|
||||
bordered = _ref.bordered,
|
||||
layout = _ref.layout,
|
||||
children = _ref.children,
|
||||
className = _ref.className,
|
||||
style = _ref.style,
|
||||
size = _ref.size;
|
||||
|
||||
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
||||
getPrefixCls = _React$useContext.getPrefixCls,
|
||||
direction = _React$useContext.direction;
|
||||
|
||||
var prefixCls = getPrefixCls('descriptions', customizePrefixCls);
|
||||
|
||||
var _React$useState = React.useState({}),
|
||||
_React$useState2 = _slicedToArray(_React$useState, 2),
|
||||
screens = _React$useState2[0],
|
||||
setScreens = _React$useState2[1];
|
||||
|
||||
var mergedColumn = getColumn(column, screens); // Responsive
|
||||
|
||||
React.useEffect(function () {
|
||||
var token = _responsiveObserve["default"].subscribe(function (newScreens) {
|
||||
if (_typeof(column) !== 'object') {
|
||||
return;
|
||||
}
|
||||
|
||||
setScreens(newScreens);
|
||||
});
|
||||
|
||||
return function () {
|
||||
_responsiveObserve["default"].unsubscribe(token);
|
||||
};
|
||||
}, []); // Children
|
||||
|
||||
var rows = getRows(children, mergedColumn);
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
className: (0, _classnames["default"])(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), size && size !== 'default'), _defineProperty(_classNames, "".concat(prefixCls, "-bordered"), !!bordered), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames)),
|
||||
style: style
|
||||
}, title && /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-title")
|
||||
}, title), /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-view")
|
||||
}, /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("tbody", null, rows.map(function (row, index) {
|
||||
return /*#__PURE__*/React.createElement(_Row["default"], {
|
||||
key: index,
|
||||
index: index,
|
||||
colon: colon,
|
||||
prefixCls: prefixCls,
|
||||
vertical: layout === 'vertical',
|
||||
bordered: bordered,
|
||||
row: row
|
||||
});
|
||||
})))));
|
||||
}
|
||||
|
||||
Descriptions.Item = _Item["default"];
|
||||
var _default = Descriptions;
|
||||
exports["default"] = _default;
|
||||
5
web/node_modules/antd/lib/descriptions/style/css.js
generated
vendored
Normal file
5
web/node_modules/antd/lib/descriptions/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
require("../../style/index.css");
|
||||
|
||||
require("./index.css");
|
||||
107
web/node_modules/antd/lib/descriptions/style/index.css
generated
vendored
Normal file
107
web/node_modules/antd/lib/descriptions/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
||||
/* stylelint-disable no-duplicate-selectors */
|
||||
/* stylelint-disable */
|
||||
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
||||
.ant-descriptions-title {
|
||||
margin-bottom: 20px;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
line-height: 1.5715;
|
||||
}
|
||||
.ant-descriptions-view {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.ant-descriptions-view table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
.ant-descriptions-row > th,
|
||||
.ant-descriptions-row > td {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
.ant-descriptions-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.ant-descriptions-item-label {
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 1.5715;
|
||||
}
|
||||
.ant-descriptions-item-label::after {
|
||||
position: relative;
|
||||
top: -0.5px;
|
||||
margin: 0 8px 0 2px;
|
||||
content: ' ';
|
||||
}
|
||||
.ant-descriptions-item-colon::after {
|
||||
content: ':';
|
||||
}
|
||||
.ant-descriptions-item-no-label::after {
|
||||
margin: 0;
|
||||
content: '';
|
||||
}
|
||||
.ant-descriptions-item-content {
|
||||
display: table-cell;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
line-height: 1.5715;
|
||||
}
|
||||
.ant-descriptions-item {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.ant-descriptions-item > span {
|
||||
display: inline-block;
|
||||
}
|
||||
.ant-descriptions-middle .ant-descriptions-row > th,
|
||||
.ant-descriptions-middle .ant-descriptions-row > td {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.ant-descriptions-small .ant-descriptions-row > th,
|
||||
.ant-descriptions-small .ant-descriptions-row > td {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
.ant-descriptions-bordered .ant-descriptions-view {
|
||||
border: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-descriptions-bordered .ant-descriptions-view > table {
|
||||
table-layout: auto;
|
||||
}
|
||||
.ant-descriptions-bordered .ant-descriptions-item-label,
|
||||
.ant-descriptions-bordered .ant-descriptions-item-content {
|
||||
padding: 16px 24px;
|
||||
border-right: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-descriptions-bordered .ant-descriptions-item-label:last-child,
|
||||
.ant-descriptions-bordered .ant-descriptions-item-content:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
.ant-descriptions-bordered .ant-descriptions-item-label {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
.ant-descriptions-bordered .ant-descriptions-item-label::after {
|
||||
display: none;
|
||||
}
|
||||
.ant-descriptions-bordered .ant-descriptions-row {
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-descriptions-bordered .ant-descriptions-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.ant-descriptions-bordered.ant-descriptions-middle .ant-descriptions-item-label,
|
||||
.ant-descriptions-bordered.ant-descriptions-middle .ant-descriptions-item-content {
|
||||
padding: 12px 24px;
|
||||
}
|
||||
.ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-label,
|
||||
.ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-content {
|
||||
padding: 8px 16px;
|
||||
}
|
||||
.ant-descriptions-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-descriptions-rtl .ant-descriptions-item-label::after {
|
||||
margin: 0 2px 0 8px;
|
||||
}
|
||||
2
web/node_modules/antd/lib/descriptions/style/index.d.ts
generated
vendored
Normal file
2
web/node_modules/antd/lib/descriptions/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
5
web/node_modules/antd/lib/descriptions/style/index.js
generated
vendored
Normal file
5
web/node_modules/antd/lib/descriptions/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
require("../../style/index.less");
|
||||
|
||||
require("./index.less");
|
||||
142
web/node_modules/antd/lib/descriptions/style/index.less
generated
vendored
Normal file
142
web/node_modules/antd/lib/descriptions/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
@import '../../style/themes/default';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@descriptions-prefix-cls: ~'@{ant-prefix}-descriptions';
|
||||
|
||||
.@{descriptions-prefix-cls} {
|
||||
&-title {
|
||||
margin-bottom: @descriptions-title-margin-bottom;
|
||||
color: @heading-color;
|
||||
font-weight: bold;
|
||||
font-size: @font-size-lg;
|
||||
line-height: @line-height-base;
|
||||
}
|
||||
|
||||
&-view {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: @border-radius-base;
|
||||
table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
&-row {
|
||||
> th,
|
||||
> td {
|
||||
padding-bottom: @padding-md;
|
||||
}
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-item-label {
|
||||
color: @heading-color;
|
||||
font-weight: normal;
|
||||
font-size: @font-size-base;
|
||||
line-height: @line-height-base;
|
||||
|
||||
&::after {
|
||||
position: relative;
|
||||
top: -0.5px;
|
||||
margin: 0 8px 0 2px;
|
||||
content: ' ';
|
||||
}
|
||||
}
|
||||
|
||||
&-item-colon {
|
||||
&::after {
|
||||
content: ':';
|
||||
}
|
||||
}
|
||||
|
||||
&-item-no-label {
|
||||
&::after {
|
||||
margin: 0;
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
|
||||
&-item-content {
|
||||
display: table-cell;
|
||||
color: @text-color;
|
||||
font-size: @font-size-base;
|
||||
line-height: @line-height-base;
|
||||
}
|
||||
|
||||
&-item {
|
||||
padding-bottom: 0;
|
||||
> span {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
&-middle {
|
||||
.@{descriptions-prefix-cls}-row {
|
||||
> th,
|
||||
> td {
|
||||
padding-bottom: @padding-sm;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-small {
|
||||
.@{descriptions-prefix-cls}-row {
|
||||
> th,
|
||||
> td {
|
||||
padding-bottom: @padding-xs;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-bordered {
|
||||
.@{descriptions-prefix-cls}-view {
|
||||
border: 1px solid @border-color-split;
|
||||
> table {
|
||||
table-layout: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.@{descriptions-prefix-cls}-item-label,
|
||||
.@{descriptions-prefix-cls}-item-content {
|
||||
padding: @descriptions-default-padding;
|
||||
border-right: 1px solid @border-color-split;
|
||||
|
||||
&:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
}
|
||||
|
||||
.@{descriptions-prefix-cls}-item-label {
|
||||
background-color: @descriptions-bg;
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.@{descriptions-prefix-cls}-row {
|
||||
border-bottom: 1px solid @border-color-split;
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.@{descriptions-prefix-cls}-middle {
|
||||
.@{descriptions-prefix-cls}-item-label,
|
||||
.@{descriptions-prefix-cls}-item-content {
|
||||
padding: @descriptions-middle-padding;
|
||||
}
|
||||
}
|
||||
|
||||
&.@{descriptions-prefix-cls}-small {
|
||||
.@{descriptions-prefix-cls}-item-label,
|
||||
.@{descriptions-prefix-cls}-item-content {
|
||||
padding: @descriptions-small-padding;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import './rtl';
|
||||
18
web/node_modules/antd/lib/descriptions/style/rtl.less
generated
vendored
Normal file
18
web/node_modules/antd/lib/descriptions/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
@import '../../style/themes/default';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@descriptions-prefix-cls: ~'@{ant-prefix}-descriptions';
|
||||
|
||||
.@{descriptions-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
&-item-label {
|
||||
&::after {
|
||||
.@{descriptions-prefix-cls}-rtl & {
|
||||
margin: 0 2px 0 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user