Latest updates from IceHrmPro
This commit is contained in:
21
web/node_modules/antd/lib/page-header/index.d.ts
generated
vendored
Normal file
21
web/node_modules/antd/lib/page-header/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import * as React from 'react';
|
||||
import Tag from '../tag';
|
||||
import { BreadcrumbProps } from '../breadcrumb';
|
||||
import { AvatarProps } from '../avatar';
|
||||
export interface PageHeaderProps {
|
||||
backIcon?: React.ReactNode;
|
||||
prefixCls?: string;
|
||||
title: React.ReactNode;
|
||||
subTitle?: React.ReactNode;
|
||||
style?: React.CSSProperties;
|
||||
breadcrumb?: BreadcrumbProps;
|
||||
tags?: React.ReactElement<Tag> | React.ReactElement<Tag>[];
|
||||
footer?: React.ReactNode;
|
||||
extra?: React.ReactNode;
|
||||
avatar?: AvatarProps;
|
||||
onBack?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
||||
className?: string;
|
||||
ghost?: boolean;
|
||||
}
|
||||
declare const PageHeader: React.FC<PageHeaderProps>;
|
||||
export default PageHeader;
|
||||
183
web/node_modules/antd/lib/page-header/index.js
generated
vendored
Normal file
183
web/node_modules/antd/lib/page-header/index.js
generated
vendored
Normal file
@@ -0,0 +1,183 @@
|
||||
"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 _classnames2 = _interopRequireDefault(require("classnames"));
|
||||
|
||||
var _ArrowLeftOutlined = _interopRequireDefault(require("@ant-design/icons/ArrowLeftOutlined"));
|
||||
|
||||
var _ArrowRightOutlined = _interopRequireDefault(require("@ant-design/icons/ArrowRightOutlined"));
|
||||
|
||||
var _rcResizeObserver = _interopRequireDefault(require("rc-resize-observer"));
|
||||
|
||||
var _configProvider = require("../config-provider");
|
||||
|
||||
var _breadcrumb = _interopRequireDefault(require("../breadcrumb"));
|
||||
|
||||
var _avatar = _interopRequireDefault(require("../avatar"));
|
||||
|
||||
var _transButton = _interopRequireDefault(require("../_util/transButton"));
|
||||
|
||||
var _LocaleReceiver = _interopRequireDefault(require("../locale-provider/LocaleReceiver"));
|
||||
|
||||
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; }
|
||||
|
||||
var renderBack = function renderBack(prefixCls, backIcon, onBack) {
|
||||
if (!backIcon || !onBack) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(_LocaleReceiver["default"], {
|
||||
componentName: "PageHeader"
|
||||
}, function (_ref) {
|
||||
var back = _ref.back;
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-back")
|
||||
}, /*#__PURE__*/React.createElement(_transButton["default"], {
|
||||
onClick: function onClick(e) {
|
||||
if (onBack) {
|
||||
onBack(e);
|
||||
}
|
||||
},
|
||||
className: "".concat(prefixCls, "-back-button"),
|
||||
"aria-label": back
|
||||
}, backIcon));
|
||||
});
|
||||
};
|
||||
|
||||
var renderBreadcrumb = function renderBreadcrumb(breadcrumb) {
|
||||
return /*#__PURE__*/React.createElement(_breadcrumb["default"], breadcrumb);
|
||||
};
|
||||
|
||||
var getBackIcon = function getBackIcon(props) {
|
||||
var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ltr';
|
||||
|
||||
if (props.backIcon !== undefined) {
|
||||
return props.backIcon;
|
||||
}
|
||||
|
||||
return direction === 'rtl' ? /*#__PURE__*/React.createElement(_ArrowRightOutlined["default"], null) : /*#__PURE__*/React.createElement(_ArrowLeftOutlined["default"], null);
|
||||
};
|
||||
|
||||
var renderTitle = function renderTitle(prefixCls, props) {
|
||||
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
|
||||
var title = props.title,
|
||||
avatar = props.avatar,
|
||||
subTitle = props.subTitle,
|
||||
tags = props.tags,
|
||||
extra = props.extra,
|
||||
onBack = props.onBack;
|
||||
var headingPrefixCls = "".concat(prefixCls, "-heading");
|
||||
|
||||
if (title || subTitle || tags || extra) {
|
||||
var backIcon = getBackIcon(props, direction);
|
||||
var backIconDom = renderBack(prefixCls, backIcon, onBack);
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
className: headingPrefixCls
|
||||
}, /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(headingPrefixCls, "-left")
|
||||
}, backIconDom, avatar && /*#__PURE__*/React.createElement(_avatar["default"], avatar), title && /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(headingPrefixCls, "-title"),
|
||||
title: typeof title === 'string' ? title : undefined
|
||||
}, title), subTitle && /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(headingPrefixCls, "-sub-title"),
|
||||
title: typeof subTitle === 'string' ? subTitle : undefined
|
||||
}, subTitle), tags && /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(headingPrefixCls, "-tags")
|
||||
}, tags)), extra && /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(headingPrefixCls, "-extra")
|
||||
}, extra));
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
var renderFooter = function renderFooter(prefixCls, footer) {
|
||||
if (footer) {
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-footer")
|
||||
}, footer);
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
var renderChildren = function renderChildren(prefixCls, children) {
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-content")
|
||||
}, children);
|
||||
};
|
||||
|
||||
var PageHeader = function PageHeader(props) {
|
||||
var _React$useState = React.useState(false),
|
||||
_React$useState2 = _slicedToArray(_React$useState, 2),
|
||||
compact = _React$useState2[0],
|
||||
updateCompact = _React$useState2[1];
|
||||
|
||||
var onResize = function onResize(_ref2) {
|
||||
var width = _ref2.width;
|
||||
updateCompact(width < 768);
|
||||
};
|
||||
|
||||
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, function (_ref3) {
|
||||
var _classnames;
|
||||
|
||||
var getPrefixCls = _ref3.getPrefixCls,
|
||||
pageHeader = _ref3.pageHeader,
|
||||
direction = _ref3.direction;
|
||||
var customizePrefixCls = props.prefixCls,
|
||||
style = props.style,
|
||||
footer = props.footer,
|
||||
children = props.children,
|
||||
breadcrumb = props.breadcrumb,
|
||||
customizeClassName = props.className;
|
||||
var ghost = true; // Use `ghost` from `props` or from `ConfigProvider` instead.
|
||||
|
||||
if ('ghost' in props) {
|
||||
ghost = props.ghost;
|
||||
} else if (pageHeader && 'ghost' in pageHeader) {
|
||||
ghost = pageHeader.ghost;
|
||||
}
|
||||
|
||||
var prefixCls = getPrefixCls('page-header', customizePrefixCls);
|
||||
var breadcrumbDom = breadcrumb && breadcrumb.routes ? renderBreadcrumb(breadcrumb) : null;
|
||||
var className = (0, _classnames2["default"])(prefixCls, customizeClassName, (_classnames = {
|
||||
'has-breadcrumb': breadcrumbDom,
|
||||
'has-footer': footer
|
||||
}, _defineProperty(_classnames, "".concat(prefixCls, "-ghost"), ghost), _defineProperty(_classnames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classnames, "".concat(prefixCls, "-compact"), compact), _classnames));
|
||||
return /*#__PURE__*/React.createElement(_rcResizeObserver["default"], {
|
||||
onResize: onResize
|
||||
}, /*#__PURE__*/React.createElement("div", {
|
||||
className: className,
|
||||
style: style
|
||||
}, breadcrumbDom, renderTitle(prefixCls, props, direction), children && renderChildren(prefixCls, children), renderFooter(prefixCls, footer)));
|
||||
});
|
||||
};
|
||||
|
||||
var _default = PageHeader;
|
||||
exports["default"] = _default;
|
||||
7
web/node_modules/antd/lib/page-header/style/css.js
generated
vendored
Normal file
7
web/node_modules/antd/lib/page-header/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
require("./index.css");
|
||||
|
||||
require("../../breadcrumb/style/css");
|
||||
|
||||
require("../../avatar/style/css");
|
||||
167
web/node_modules/antd/lib/page-header/style/index.css
generated
vendored
Normal file
167
web/node_modules/antd/lib/page-header/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
/* 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-page-header {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
list-style: none;
|
||||
-webkit-font-feature-settings: 'tnum';
|
||||
font-feature-settings: 'tnum';
|
||||
position: relative;
|
||||
padding: 16px 24px;
|
||||
background-color: #fff;
|
||||
}
|
||||
.ant-page-header-ghost {
|
||||
background-color: inherit;
|
||||
}
|
||||
.ant-page-header.has-breadcrumb {
|
||||
padding-top: 12px;
|
||||
}
|
||||
.ant-page-header.has-footer {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.ant-page-header-back {
|
||||
margin-right: 16px;
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
}
|
||||
.ant-page-header-back-button {
|
||||
color: #1890ff;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
-webkit-transition: color 0.3s;
|
||||
transition: color 0.3s;
|
||||
color: #000;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ant-page-header-back-button:focus,
|
||||
.ant-page-header-back-button:hover {
|
||||
color: #40a9ff;
|
||||
}
|
||||
.ant-page-header-back-button:active {
|
||||
color: #096dd9;
|
||||
}
|
||||
.ant-page-header .ant-divider-vertical {
|
||||
height: 14px;
|
||||
margin: 0 12px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.ant-breadcrumb + .ant-page-header-heading {
|
||||
margin-top: 8px;
|
||||
}
|
||||
.ant-page-header-heading {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.ant-page-header-heading-left {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
margin: 4px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.ant-page-header-heading-title {
|
||||
margin-right: 12px;
|
||||
margin-bottom: 0;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
font-weight: 600;
|
||||
font-size: 20px;
|
||||
line-height: 32px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-page-header-heading .ant-avatar {
|
||||
margin-right: 12px;
|
||||
}
|
||||
.ant-page-header-heading-sub-title {
|
||||
margin-right: 12px;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-page-header-heading-extra {
|
||||
margin: 4px 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ant-page-header-heading-extra > * {
|
||||
margin-left: 12px;
|
||||
white-space: unset;
|
||||
}
|
||||
.ant-page-header-heading-extra > *:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
.ant-page-header-content {
|
||||
padding-top: 12px;
|
||||
}
|
||||
.ant-page-header-footer {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.ant-page-header-footer .ant-tabs-bar {
|
||||
margin-bottom: 1px;
|
||||
border-bottom: 0;
|
||||
}
|
||||
.ant-page-header-footer .ant-tabs-bar .ant-tabs-nav .ant-tabs-tab {
|
||||
padding: 8px 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
.ant-page-header-compact .ant-page-header-heading {
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.ant-page-header-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-back {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-heading-title {
|
||||
float: right;
|
||||
padding-right: 0;
|
||||
padding-left: 12px;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-heading .ant-avatar {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-heading-sub-title {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-heading-tags {
|
||||
float: right;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-heading-extra {
|
||||
float: left;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-heading-extra > * {
|
||||
margin-right: 8px;
|
||||
margin-left: 0;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-heading-extra > *:first-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav {
|
||||
float: right;
|
||||
}
|
||||
3
web/node_modules/antd/lib/page-header/style/index.d.ts
generated
vendored
Normal file
3
web/node_modules/antd/lib/page-header/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import './index.less';
|
||||
import '../../breadcrumb/style';
|
||||
import '../../avatar/style';
|
||||
7
web/node_modules/antd/lib/page-header/style/index.js
generated
vendored
Normal file
7
web/node_modules/antd/lib/page-header/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
require("./index.less");
|
||||
|
||||
require("../../breadcrumb/style");
|
||||
|
||||
require("../../avatar/style");
|
||||
122
web/node_modules/antd/lib/page-header/style/index.less
generated
vendored
Normal file
122
web/node_modules/antd/lib/page-header/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@pageheader-prefix-cls: ~'@{ant-prefix}-page-header';
|
||||
|
||||
.@{pageheader-prefix-cls} {
|
||||
.reset-component;
|
||||
position: relative;
|
||||
padding: @page-header-padding-vertical @page-header-padding;
|
||||
background-color: @component-background;
|
||||
|
||||
&-ghost {
|
||||
background-color: @page-header-ghost-bg;
|
||||
}
|
||||
|
||||
&.has-breadcrumb {
|
||||
padding-top: @page-header-padding-breadcrumb;
|
||||
}
|
||||
|
||||
&.has-footer {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
&-back {
|
||||
margin-right: @margin-md;
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
|
||||
&-button {
|
||||
.operation-unit();
|
||||
color: @page-header-back-color;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-divider-vertical {
|
||||
height: 14px;
|
||||
margin: 0 @margin-sm;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.@{ant-prefix}-breadcrumb + &-heading {
|
||||
margin-top: @margin-xs;
|
||||
}
|
||||
|
||||
.text-overflow-ellipsis() {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&-heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
&-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: (@margin-xs / 2) 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&-title {
|
||||
margin-right: @margin-sm;
|
||||
margin-bottom: 0;
|
||||
color: @heading-color;
|
||||
font-weight: 600;
|
||||
font-size: @heading-4-size;
|
||||
line-height: 32px;
|
||||
.text-overflow-ellipsis;
|
||||
}
|
||||
|
||||
.@{ant-prefix}-avatar {
|
||||
margin-right: @margin-sm;
|
||||
}
|
||||
|
||||
&-sub-title {
|
||||
margin-right: @margin-sm;
|
||||
color: @text-color-secondary;
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
.text-overflow-ellipsis;
|
||||
}
|
||||
|
||||
&-extra {
|
||||
margin: (@margin-xs / 2) 0;
|
||||
white-space: nowrap;
|
||||
|
||||
> * {
|
||||
margin-left: @margin-sm;
|
||||
white-space: unset;
|
||||
}
|
||||
> *:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-content {
|
||||
padding-top: @page-header-content-padding-vertical;
|
||||
}
|
||||
|
||||
&-footer {
|
||||
margin-top: @margin-md;
|
||||
.@{ant-prefix}-tabs-bar {
|
||||
margin-bottom: 1px;
|
||||
border-bottom: 0;
|
||||
.@{ant-prefix}-tabs-nav {
|
||||
.@{ant-prefix}-tabs-tab {
|
||||
padding: @tabs-horizontal-padding-sm;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-compact &-heading {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
@import './rtl';
|
||||
78
web/node_modules/antd/lib/page-header/style/rtl.less
generated
vendored
Normal file
78
web/node_modules/antd/lib/page-header/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@pageheader-prefix-cls: ~'@{ant-prefix}-page-header';
|
||||
|
||||
.@{pageheader-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
&-back {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
&-heading {
|
||||
&-title {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
float: right;
|
||||
padding-right: 0;
|
||||
padding-left: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-avatar {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
&-sub-title {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
&-tags {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
&-extra {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
float: left;
|
||||
}
|
||||
|
||||
> * {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
margin-right: 8px;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
> *:first-child {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-footer {
|
||||
.@{ant-prefix}-tabs-bar {
|
||||
.@{ant-prefix}-tabs-nav {
|
||||
.@{pageheader-prefix-cls}-rtl & {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user