Latest updates from IceHrmPro
This commit is contained in:
9
web/node_modules/antd/lib/menu/MenuContext.d.ts
generated
vendored
Normal file
9
web/node_modules/antd/lib/menu/MenuContext.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/// <reference types="react" />
|
||||
export declare type MenuTheme = 'light' | 'dark';
|
||||
export interface MenuContextProps {
|
||||
inlineCollapsed: boolean;
|
||||
antdMenuTheme?: MenuTheme;
|
||||
direction?: 'ltr' | 'rtl';
|
||||
}
|
||||
declare const MenuContext: import("react").Context<MenuContextProps>;
|
||||
export default MenuContext;
|
||||
14
web/node_modules/antd/lib/menu/MenuContext.js
generated
vendored
Normal file
14
web/node_modules/antd/lib/menu/MenuContext.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _react = require("react");
|
||||
|
||||
var MenuContext = (0, _react.createContext)({
|
||||
inlineCollapsed: false
|
||||
});
|
||||
var _default = MenuContext;
|
||||
exports["default"] = _default;
|
||||
29
web/node_modules/antd/lib/menu/MenuItem.d.ts
generated
vendored
Normal file
29
web/node_modules/antd/lib/menu/MenuItem.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import * as React from 'react';
|
||||
import { ClickParam } from '.';
|
||||
import { SiderContextProps } from '../layout/Sider';
|
||||
export interface MenuItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>, 'title' | 'onClick' | 'onMouseEnter' | 'onMouseLeave'> {
|
||||
rootPrefixCls?: string;
|
||||
disabled?: boolean;
|
||||
level?: number;
|
||||
title?: React.ReactNode;
|
||||
children?: React.ReactNode;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
onClick?: (param: ClickParam) => void;
|
||||
onMouseEnter?: (e: {
|
||||
key: string;
|
||||
domEvent: MouseEvent;
|
||||
}) => void;
|
||||
onMouseLeave?: (e: {
|
||||
key: string;
|
||||
domEvent: MouseEvent;
|
||||
}) => void;
|
||||
}
|
||||
export default class MenuItem extends React.Component<MenuItemProps> {
|
||||
static isMenuItem: boolean;
|
||||
private menuItem;
|
||||
onKeyDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
||||
saveMenuItem: (menuItem: this) => void;
|
||||
renderItem: ({ siderCollapsed }: SiderContextProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
146
web/node_modules/antd/lib/menu/MenuItem.js
generated
vendored
Normal file
146
web/node_modules/antd/lib/menu/MenuItem.js
generated
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _rcMenu = require("rc-menu");
|
||||
|
||||
var _toArray = _interopRequireDefault(require("rc-util/lib/Children/toArray"));
|
||||
|
||||
var _classnames = _interopRequireDefault(require("classnames"));
|
||||
|
||||
var _MenuContext = _interopRequireDefault(require("./MenuContext"));
|
||||
|
||||
var _tooltip = _interopRequireDefault(require("../tooltip"));
|
||||
|
||||
var _Sider = require("../layout/Sider");
|
||||
|
||||
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 _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); }
|
||||
|
||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||||
|
||||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||
|
||||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
||||
|
||||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||
|
||||
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||||
var t = {};
|
||||
|
||||
for (var p in s) {
|
||||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
}
|
||||
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
var MenuItem = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(MenuItem, _React$Component);
|
||||
|
||||
var _super = _createSuper(MenuItem);
|
||||
|
||||
function MenuItem() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, MenuItem);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
|
||||
_this.onKeyDown = function (e) {
|
||||
_this.menuItem.onKeyDown(e);
|
||||
};
|
||||
|
||||
_this.saveMenuItem = function (menuItem) {
|
||||
_this.menuItem = menuItem;
|
||||
};
|
||||
|
||||
_this.renderItem = function (_ref) {
|
||||
var siderCollapsed = _ref.siderCollapsed;
|
||||
var _this$props = _this.props,
|
||||
level = _this$props.level,
|
||||
className = _this$props.className,
|
||||
children = _this$props.children,
|
||||
rootPrefixCls = _this$props.rootPrefixCls;
|
||||
|
||||
var _a = _this.props,
|
||||
title = _a.title,
|
||||
rest = __rest(_a, ["title"]);
|
||||
|
||||
return /*#__PURE__*/React.createElement(_MenuContext["default"].Consumer, null, function (_ref2) {
|
||||
var inlineCollapsed = _ref2.inlineCollapsed,
|
||||
direction = _ref2.direction;
|
||||
var tooltipTitle = title;
|
||||
|
||||
if (typeof title === 'undefined') {
|
||||
tooltipTitle = level === 1 ? children : '';
|
||||
} else if (title === false) {
|
||||
tooltipTitle = '';
|
||||
}
|
||||
|
||||
var tooltipProps = {
|
||||
title: tooltipTitle
|
||||
};
|
||||
|
||||
if (!siderCollapsed && !inlineCollapsed) {
|
||||
tooltipProps.title = null; // Reset `visible` to fix control mode tooltip display not correct
|
||||
// ref: https://github.com/ant-design/ant-design/issues/16742
|
||||
|
||||
tooltipProps.visible = false;
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(_tooltip["default"], _extends({}, tooltipProps, {
|
||||
placement: direction === 'rtl' ? 'left' : 'right',
|
||||
overlayClassName: "".concat(rootPrefixCls, "-inline-collapsed-tooltip")
|
||||
}), /*#__PURE__*/React.createElement(_rcMenu.Item, _extends({}, rest, {
|
||||
className: (0, _classnames["default"])(className, _defineProperty({}, "".concat(rootPrefixCls, "-item-only-child"), (0, _toArray["default"])(children).length === 1)),
|
||||
title: title,
|
||||
ref: _this.saveMenuItem
|
||||
})));
|
||||
});
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(MenuItem, [{
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(_Sider.SiderContext.Consumer, null, this.renderItem);
|
||||
}
|
||||
}]);
|
||||
|
||||
return MenuItem;
|
||||
}(React.Component);
|
||||
|
||||
exports["default"] = MenuItem;
|
||||
MenuItem.isMenuItem = true;
|
||||
29
web/node_modules/antd/lib/menu/SubMenu.d.ts
generated
vendored
Normal file
29
web/node_modules/antd/lib/menu/SubMenu.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import * as React from 'react';
|
||||
import * as PropTypes from 'prop-types';
|
||||
interface TitleEventEntity {
|
||||
key: string;
|
||||
domEvent: Event;
|
||||
}
|
||||
export interface SubMenuProps {
|
||||
rootPrefixCls?: string;
|
||||
className?: string;
|
||||
disabled?: boolean;
|
||||
title?: React.ReactNode;
|
||||
style?: React.CSSProperties;
|
||||
onTitleClick?: (e: TitleEventEntity) => void;
|
||||
onTitleMouseEnter?: (e: TitleEventEntity) => void;
|
||||
onTitleMouseLeave?: (e: TitleEventEntity) => void;
|
||||
popupOffset?: [number, number];
|
||||
popupClassName?: string;
|
||||
}
|
||||
declare class SubMenu extends React.Component<SubMenuProps, any> {
|
||||
static contextTypes: {
|
||||
antdMenuTheme: PropTypes.Requireable<string>;
|
||||
};
|
||||
static isSubMenu: number;
|
||||
private subMenu;
|
||||
onKeyDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
||||
saveSubMenu: (subMenu: any) => void;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export default SubMenu;
|
||||
98
web/node_modules/antd/lib/menu/SubMenu.js
generated
vendored
Normal file
98
web/node_modules/antd/lib/menu/SubMenu.js
generated
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
||||
|
||||
var _rcMenu = require("rc-menu");
|
||||
|
||||
var _classnames = _interopRequireDefault(require("classnames"));
|
||||
|
||||
var _MenuContext = _interopRequireDefault(require("./MenuContext"));
|
||||
|
||||
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 _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); }
|
||||
|
||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||||
|
||||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||
|
||||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
||||
|
||||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||
|
||||
var SubMenu = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(SubMenu, _React$Component);
|
||||
|
||||
var _super = _createSuper(SubMenu);
|
||||
|
||||
function SubMenu() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, SubMenu);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
|
||||
_this.onKeyDown = function (e) {
|
||||
_this.subMenu.onKeyDown(e);
|
||||
};
|
||||
|
||||
_this.saveSubMenu = function (subMenu) {
|
||||
_this.subMenu = subMenu;
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(SubMenu, [{
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _this2 = this;
|
||||
|
||||
var _this$props = this.props,
|
||||
rootPrefixCls = _this$props.rootPrefixCls,
|
||||
popupClassName = _this$props.popupClassName;
|
||||
return /*#__PURE__*/React.createElement(_MenuContext["default"].Consumer, null, function (_ref) {
|
||||
var antdMenuTheme = _ref.antdMenuTheme;
|
||||
return /*#__PURE__*/React.createElement(_rcMenu.SubMenu, _extends({}, _this2.props, {
|
||||
ref: _this2.saveSubMenu,
|
||||
popupClassName: (0, _classnames["default"])(rootPrefixCls, "".concat(rootPrefixCls, "-").concat(antdMenuTheme), popupClassName)
|
||||
}));
|
||||
});
|
||||
}
|
||||
}]);
|
||||
|
||||
return SubMenu;
|
||||
}(React.Component);
|
||||
|
||||
SubMenu.contextTypes = {
|
||||
antdMenuTheme: PropTypes.string
|
||||
}; // fix issue:https://github.com/ant-design/ant-design/issues/8666
|
||||
|
||||
SubMenu.isSubMenu = 1;
|
||||
var _default = SubMenu;
|
||||
exports["default"] = _default;
|
||||
65
web/node_modules/antd/lib/menu/index.d.ts
generated
vendored
Normal file
65
web/node_modules/antd/lib/menu/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
import * as React from 'react';
|
||||
import { ItemGroup } from 'rc-menu';
|
||||
import SubMenu from './SubMenu';
|
||||
import Item from './MenuItem';
|
||||
import { SiderContextProps } from '../layout/Sider';
|
||||
import { MenuTheme } from './MenuContext';
|
||||
export { MenuItemGroupProps } from 'rc-menu/es/MenuItemGroup';
|
||||
export interface SelectParam {
|
||||
key: string;
|
||||
keyPath: Array<string>;
|
||||
item: any;
|
||||
domEvent: Event;
|
||||
selectedKeys: Array<string>;
|
||||
}
|
||||
export interface ClickParam {
|
||||
key: string;
|
||||
keyPath: Array<string>;
|
||||
item: any;
|
||||
domEvent: Event;
|
||||
}
|
||||
export declare type MenuMode = 'vertical' | 'vertical-left' | 'vertical-right' | 'horizontal' | 'inline';
|
||||
export interface MenuProps {
|
||||
id?: string;
|
||||
theme?: MenuTheme;
|
||||
mode?: MenuMode;
|
||||
selectable?: boolean;
|
||||
selectedKeys?: Array<string>;
|
||||
defaultSelectedKeys?: Array<string>;
|
||||
openKeys?: Array<string>;
|
||||
defaultOpenKeys?: Array<string>;
|
||||
onOpenChange?: (openKeys: string[]) => void;
|
||||
onSelect?: (param: SelectParam) => void;
|
||||
onDeselect?: (param: SelectParam) => void;
|
||||
onClick?: (param: ClickParam) => void;
|
||||
style?: React.CSSProperties;
|
||||
openAnimation?: string;
|
||||
openTransitionName?: string;
|
||||
motion?: Object;
|
||||
className?: string;
|
||||
prefixCls?: string;
|
||||
multiple?: boolean;
|
||||
inlineIndent?: number;
|
||||
inlineCollapsed?: boolean;
|
||||
subMenuCloseDelay?: number;
|
||||
subMenuOpenDelay?: number;
|
||||
focusable?: boolean;
|
||||
onMouseEnter?: (e: MouseEvent) => void;
|
||||
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
||||
overflowedIndicator?: React.ReactNode;
|
||||
forceSubMenuRender?: boolean;
|
||||
}
|
||||
declare type InternalMenuProps = MenuProps & SiderContextProps;
|
||||
export interface MenuState {
|
||||
openKeys: string[];
|
||||
switchingModeFromInline: boolean;
|
||||
inlineOpenKeys: string[];
|
||||
prevProps: InternalMenuProps;
|
||||
}
|
||||
export default class Menu extends React.Component<MenuProps, {}> {
|
||||
static Divider: React.FC<import("rc-menu/lib/Divider").DividerProps>;
|
||||
static Item: typeof Item;
|
||||
static SubMenu: typeof SubMenu;
|
||||
static ItemGroup: typeof ItemGroup;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
372
web/node_modules/antd/lib/menu/index.js
generated
vendored
Normal file
372
web/node_modules/antd/lib/menu/index.js
generated
vendored
Normal file
@@ -0,0 +1,372 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _rcMenu = _interopRequireWildcard(require("rc-menu"));
|
||||
|
||||
var _classnames = _interopRequireDefault(require("classnames"));
|
||||
|
||||
var _omit = _interopRequireDefault(require("omit.js"));
|
||||
|
||||
var _SubMenu = _interopRequireDefault(require("./SubMenu"));
|
||||
|
||||
var _MenuItem = _interopRequireDefault(require("./MenuItem"));
|
||||
|
||||
var _configProvider = require("../config-provider");
|
||||
|
||||
var _warning = _interopRequireDefault(require("../_util/warning"));
|
||||
|
||||
var _Sider = require("../layout/Sider");
|
||||
|
||||
var _raf = _interopRequireDefault(require("../_util/raf"));
|
||||
|
||||
var _motion = _interopRequireDefault(require("../_util/motion"));
|
||||
|
||||
var _MenuContext = _interopRequireDefault(require("./MenuContext"));
|
||||
|
||||
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 _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); }
|
||||
|
||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||||
|
||||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||
|
||||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
||||
|
||||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||
|
||||
var InternalMenu = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(InternalMenu, _React$Component);
|
||||
|
||||
var _super = _createSuper(InternalMenu);
|
||||
|
||||
function InternalMenu(props) {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, InternalMenu);
|
||||
|
||||
_this = _super.call(this, props); // Restore vertical mode when menu is collapsed responsively when mounted
|
||||
// https://github.com/ant-design/ant-design/issues/13104
|
||||
// TODO: not a perfect solution, looking a new way to avoid setting switchingModeFromInline in this situation
|
||||
|
||||
_this.handleMouseEnter = function (e) {
|
||||
_this.restoreModeVerticalFromInline();
|
||||
|
||||
var onMouseEnter = _this.props.onMouseEnter;
|
||||
|
||||
if (onMouseEnter) {
|
||||
onMouseEnter(e);
|
||||
}
|
||||
};
|
||||
|
||||
_this.handleTransitionEnd = function (e) {
|
||||
// when inlineCollapsed menu width animation finished
|
||||
// https://github.com/ant-design/ant-design/issues/12864
|
||||
var widthCollapsed = e.propertyName === 'width' && e.target === e.currentTarget; // Fix SVGElement e.target.className.indexOf is not a function
|
||||
// https://github.com/ant-design/ant-design/issues/15699
|
||||
|
||||
var className = e.target.className; // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during an animation.
|
||||
|
||||
var classNameValue = Object.prototype.toString.call(className) === '[object SVGAnimatedString]' ? className.animVal : className; // Fix for <Menu style={{ width: '100%' }} />, the width transition won't trigger when menu is collapsed
|
||||
// https://github.com/ant-design/ant-design-pro/issues/2783
|
||||
|
||||
var iconScaled = e.propertyName === 'font-size' && classNameValue.indexOf('anticon') >= 0;
|
||||
|
||||
if (widthCollapsed || iconScaled) {
|
||||
_this.restoreModeVerticalFromInline();
|
||||
}
|
||||
};
|
||||
|
||||
_this.handleClick = function (e) {
|
||||
_this.handleOpenChange([]);
|
||||
|
||||
var onClick = _this.props.onClick;
|
||||
|
||||
if (onClick) {
|
||||
onClick(e);
|
||||
}
|
||||
};
|
||||
|
||||
_this.handleOpenChange = function (openKeys) {
|
||||
_this.setOpenKeys(openKeys);
|
||||
|
||||
var onOpenChange = _this.props.onOpenChange;
|
||||
|
||||
if (onOpenChange) {
|
||||
onOpenChange(openKeys);
|
||||
}
|
||||
};
|
||||
|
||||
_this.renderMenu = function (_ref) {
|
||||
var getPopupContainer = _ref.getPopupContainer,
|
||||
getPrefixCls = _ref.getPrefixCls,
|
||||
direction = _ref.direction;
|
||||
var _this$props = _this.props,
|
||||
customizePrefixCls = _this$props.prefixCls,
|
||||
className = _this$props.className,
|
||||
theme = _this$props.theme,
|
||||
collapsedWidth = _this$props.collapsedWidth;
|
||||
var passProps = (0, _omit["default"])(_this.props, ['collapsedWidth', 'siderCollapsed']);
|
||||
|
||||
var menuMode = _this.getRealMenuMode();
|
||||
|
||||
var menuOpenMotion = _this.getOpenMotionProps(menuMode);
|
||||
|
||||
var prefixCls = getPrefixCls('menu', customizePrefixCls);
|
||||
var menuClassName = (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme), _defineProperty({}, "".concat(prefixCls, "-inline-collapsed"), _this.getInlineCollapsed()));
|
||||
|
||||
var menuProps = _extends({
|
||||
openKeys: _this.state.openKeys,
|
||||
onOpenChange: _this.handleOpenChange,
|
||||
className: menuClassName,
|
||||
mode: menuMode
|
||||
}, menuOpenMotion);
|
||||
|
||||
if (menuMode !== 'inline') {
|
||||
// closing vertical popup submenu after click it
|
||||
menuProps.onClick = _this.handleClick;
|
||||
} // https://github.com/ant-design/ant-design/issues/8587
|
||||
|
||||
|
||||
var hideMenu = _this.getInlineCollapsed() && (collapsedWidth === 0 || collapsedWidth === '0' || collapsedWidth === '0px');
|
||||
|
||||
if (hideMenu) {
|
||||
menuProps.openKeys = [];
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(_MenuContext["default"].Provider, {
|
||||
value: {
|
||||
inlineCollapsed: _this.getInlineCollapsed() || false,
|
||||
antdMenuTheme: _this.props.theme,
|
||||
direction: direction
|
||||
}
|
||||
}, /*#__PURE__*/React.createElement(_rcMenu["default"], _extends({
|
||||
getPopupContainer: getPopupContainer
|
||||
}, passProps, menuProps, {
|
||||
prefixCls: prefixCls,
|
||||
onTransitionEnd: _this.handleTransitionEnd,
|
||||
onMouseEnter: _this.handleMouseEnter,
|
||||
direction: direction
|
||||
})));
|
||||
};
|
||||
|
||||
(0, _warning["default"])(!('inlineCollapsed' in props && props.mode !== 'inline'), 'Menu', '`inlineCollapsed` should only be used when `mode` is inline.');
|
||||
(0, _warning["default"])(!(props.siderCollapsed !== undefined && 'inlineCollapsed' in props), 'Menu', '`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.');
|
||||
var openKeys;
|
||||
|
||||
if ('openKeys' in props) {
|
||||
openKeys = props.openKeys;
|
||||
} else if ('defaultOpenKeys' in props) {
|
||||
openKeys = props.defaultOpenKeys;
|
||||
}
|
||||
|
||||
_this.state = {
|
||||
openKeys: openKeys || [],
|
||||
switchingModeFromInline: false,
|
||||
inlineOpenKeys: [],
|
||||
prevProps: props
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(InternalMenu, [{
|
||||
key: "componentWillUnmount",
|
||||
value: function componentWillUnmount() {
|
||||
_raf["default"].cancel(this.mountRafId);
|
||||
}
|
||||
}, {
|
||||
key: "setOpenKeys",
|
||||
value: function setOpenKeys(openKeys) {
|
||||
if (!('openKeys' in this.props)) {
|
||||
this.setState({
|
||||
openKeys: openKeys
|
||||
});
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "getRealMenuMode",
|
||||
value: function getRealMenuMode() {
|
||||
var inlineCollapsed = this.getInlineCollapsed();
|
||||
|
||||
if (this.state.switchingModeFromInline && inlineCollapsed) {
|
||||
return 'inline';
|
||||
}
|
||||
|
||||
var mode = this.props.mode;
|
||||
return inlineCollapsed ? 'vertical' : mode;
|
||||
}
|
||||
}, {
|
||||
key: "getInlineCollapsed",
|
||||
value: function getInlineCollapsed() {
|
||||
var inlineCollapsed = this.props.inlineCollapsed;
|
||||
|
||||
if (this.props.siderCollapsed !== undefined) {
|
||||
return this.props.siderCollapsed;
|
||||
}
|
||||
|
||||
return inlineCollapsed;
|
||||
}
|
||||
}, {
|
||||
key: "getOpenMotionProps",
|
||||
value: function getOpenMotionProps(menuMode) {
|
||||
var _this$props2 = this.props,
|
||||
openTransitionName = _this$props2.openTransitionName,
|
||||
openAnimation = _this$props2.openAnimation,
|
||||
motion = _this$props2.motion; // Provides by user
|
||||
|
||||
if (motion) {
|
||||
return {
|
||||
motion: motion
|
||||
};
|
||||
}
|
||||
|
||||
if (openAnimation) {
|
||||
(0, _warning["default"])(typeof openAnimation === 'string', 'Menu', '`openAnimation` do not support object. Please use `motion` instead.');
|
||||
return {
|
||||
openAnimation: openAnimation
|
||||
};
|
||||
}
|
||||
|
||||
if (openTransitionName) {
|
||||
return {
|
||||
openTransitionName: openTransitionName
|
||||
};
|
||||
} // Default logic
|
||||
|
||||
|
||||
if (menuMode === 'horizontal') {
|
||||
return {
|
||||
motion: {
|
||||
motionName: 'slide-up'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
if (menuMode === 'inline') {
|
||||
return {
|
||||
motion: _motion["default"]
|
||||
};
|
||||
} // When mode switch from inline
|
||||
// submenu should hide without animation
|
||||
|
||||
|
||||
return {
|
||||
motion: {
|
||||
motionName: this.state.switchingModeFromInline ? '' : 'zoom-big'
|
||||
}
|
||||
};
|
||||
}
|
||||
}, {
|
||||
key: "restoreModeVerticalFromInline",
|
||||
value: function restoreModeVerticalFromInline() {
|
||||
var switchingModeFromInline = this.state.switchingModeFromInline;
|
||||
|
||||
if (switchingModeFromInline) {
|
||||
this.setState({
|
||||
switchingModeFromInline: false
|
||||
});
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, this.renderMenu);
|
||||
}
|
||||
}], [{
|
||||
key: "getDerivedStateFromProps",
|
||||
value: function getDerivedStateFromProps(nextProps, prevState) {
|
||||
var prevProps = prevState.prevProps;
|
||||
var newState = {
|
||||
prevProps: nextProps
|
||||
};
|
||||
|
||||
if (prevProps.mode === 'inline' && nextProps.mode !== 'inline') {
|
||||
newState.switchingModeFromInline = true;
|
||||
}
|
||||
|
||||
if ('openKeys' in nextProps) {
|
||||
newState.openKeys = nextProps.openKeys;
|
||||
} else {
|
||||
// [Legacy] Old code will return after `openKeys` changed.
|
||||
// Not sure the reason, we should keep this logic still.
|
||||
if (nextProps.inlineCollapsed && !prevProps.inlineCollapsed || nextProps.siderCollapsed && !prevProps.siderCollapsed) {
|
||||
newState.switchingModeFromInline = true;
|
||||
newState.inlineOpenKeys = prevState.openKeys;
|
||||
newState.openKeys = [];
|
||||
}
|
||||
|
||||
if (!nextProps.inlineCollapsed && prevProps.inlineCollapsed || !nextProps.siderCollapsed && prevProps.siderCollapsed) {
|
||||
newState.openKeys = prevState.inlineOpenKeys;
|
||||
newState.inlineOpenKeys = [];
|
||||
}
|
||||
}
|
||||
|
||||
return newState;
|
||||
}
|
||||
}]);
|
||||
|
||||
return InternalMenu;
|
||||
}(React.Component);
|
||||
|
||||
InternalMenu.defaultProps = {
|
||||
className: '',
|
||||
theme: 'light',
|
||||
focusable: false
|
||||
}; // We should keep this as ref-able
|
||||
|
||||
var Menu = /*#__PURE__*/function (_React$Component2) {
|
||||
_inherits(Menu, _React$Component2);
|
||||
|
||||
var _super2 = _createSuper(Menu);
|
||||
|
||||
function Menu() {
|
||||
_classCallCheck(this, Menu);
|
||||
|
||||
return _super2.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(Menu, [{
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _this2 = this;
|
||||
|
||||
return /*#__PURE__*/React.createElement(_Sider.SiderContext.Consumer, null, function (context) {
|
||||
return /*#__PURE__*/React.createElement(InternalMenu, _extends({}, _this2.props, context));
|
||||
});
|
||||
}
|
||||
}]);
|
||||
|
||||
return Menu;
|
||||
}(React.Component);
|
||||
|
||||
exports["default"] = Menu;
|
||||
Menu.Divider = _rcMenu.Divider;
|
||||
Menu.Item = _MenuItem["default"];
|
||||
Menu.SubMenu = _SubMenu["default"];
|
||||
Menu.ItemGroup = _rcMenu.ItemGroup;
|
||||
7
web/node_modules/antd/lib/menu/style/css.js
generated
vendored
Normal file
7
web/node_modules/antd/lib/menu/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
require("../../style/index.css");
|
||||
|
||||
require("./index.css");
|
||||
|
||||
require("../../tooltip/style/css");
|
||||
142
web/node_modules/antd/lib/menu/style/dark.less
generated
vendored
Normal file
142
web/node_modules/antd/lib/menu/style/dark.less
generated
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
.@{menu-prefix-cls} {
|
||||
// dark theme
|
||||
&&-dark,
|
||||
&-dark &-sub {
|
||||
color: @menu-dark-color;
|
||||
background: @menu-dark-bg;
|
||||
.@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
||||
opacity: 0.45;
|
||||
transition: all 0.3s;
|
||||
&::after,
|
||||
&::before {
|
||||
background: @menu-dark-arrow-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-dark&-submenu-popup {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&-dark &-inline&-sub {
|
||||
background: @menu-dark-submenu-bg;
|
||||
}
|
||||
|
||||
&-dark&-horizontal {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
&-dark&-horizontal > &-item,
|
||||
&-dark&-horizontal > &-submenu {
|
||||
top: 0;
|
||||
margin-top: 0;
|
||||
border-color: @menu-dark-bg;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
&-dark&-horizontal > &-item > a::before {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
&-dark &-item,
|
||||
&-dark &-item-group-title,
|
||||
&-dark &-item > a {
|
||||
color: @menu-dark-color;
|
||||
}
|
||||
|
||||
&-dark&-inline,
|
||||
&-dark&-vertical,
|
||||
&-dark&-vertical-left,
|
||||
&-dark&-vertical-right {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
&-dark&-inline &-item,
|
||||
&-dark&-vertical &-item,
|
||||
&-dark&-vertical-left &-item,
|
||||
&-dark&-vertical-right &-item {
|
||||
left: 0;
|
||||
margin-left: 0;
|
||||
border-right: 0;
|
||||
&::after {
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&-dark&-inline &-item,
|
||||
&-dark&-inline &-submenu-title {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&-dark &-item:hover,
|
||||
&-dark &-item-active,
|
||||
&-dark &-submenu-active,
|
||||
&-dark &-submenu-open,
|
||||
&-dark &-submenu-selected,
|
||||
&-dark &-submenu-title:hover {
|
||||
color: @menu-dark-highlight-color;
|
||||
background-color: transparent;
|
||||
> a {
|
||||
color: @menu-dark-highlight-color;
|
||||
}
|
||||
> .@{menu-prefix-cls}-submenu-title,
|
||||
> .@{menu-prefix-cls}-submenu-title:hover {
|
||||
> .@{menu-prefix-cls}-submenu-arrow {
|
||||
opacity: 1;
|
||||
&::after,
|
||||
&::before {
|
||||
background: @menu-dark-highlight-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-dark &-item:hover {
|
||||
background-color: @menu-dark-item-hover-bg;
|
||||
}
|
||||
|
||||
&-dark&-dark:not(&-horizontal) &-item-selected {
|
||||
background-color: @menu-dark-item-active-bg;
|
||||
}
|
||||
|
||||
&-dark &-item-selected {
|
||||
color: @menu-dark-highlight-color;
|
||||
border-right: 0;
|
||||
&::after {
|
||||
border-right: 0;
|
||||
}
|
||||
> a,
|
||||
> a:hover {
|
||||
color: @menu-dark-highlight-color;
|
||||
}
|
||||
.@{iconfont-css-prefix} {
|
||||
color: @menu-dark-selected-item-icon-color;
|
||||
}
|
||||
.@{iconfont-css-prefix} + span {
|
||||
color: @menu-dark-selected-item-text-color;
|
||||
}
|
||||
}
|
||||
|
||||
&&-dark &-item-selected,
|
||||
&-submenu-popup&-dark &-item-selected {
|
||||
background-color: @menu-dark-item-active-bg;
|
||||
}
|
||||
|
||||
// Disabled state sets text to dark gray and nukes hover/tab effects
|
||||
&-dark &-item-disabled,
|
||||
&-dark &-submenu-disabled {
|
||||
&,
|
||||
> a {
|
||||
color: @disabled-color-dark !important;
|
||||
opacity: 0.8;
|
||||
}
|
||||
> .@{menu-prefix-cls}-submenu-title {
|
||||
color: @disabled-color-dark !important;
|
||||
> .@{menu-prefix-cls}-submenu-arrow {
|
||||
&::before,
|
||||
&::after {
|
||||
background: @disabled-color-dark !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
844
web/node_modules/antd/lib/menu/style/index.css
generated
vendored
Normal file
844
web/node_modules/antd/lib/menu/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,844 @@
|
||||
/* 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-menu {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
-webkit-font-feature-settings: 'tnum';
|
||||
font-feature-settings: 'tnum';
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
line-height: 0;
|
||||
list-style: none;
|
||||
background: #fff;
|
||||
outline: none;
|
||||
-webkit-box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
||||
-webkit-transition: background 0.3s, width 0.2s;
|
||||
transition: background 0.3s, width 0.2s;
|
||||
}
|
||||
.ant-menu::before {
|
||||
display: table;
|
||||
content: '';
|
||||
}
|
||||
.ant-menu::after {
|
||||
display: table;
|
||||
clear: both;
|
||||
content: '';
|
||||
}
|
||||
.ant-menu ul,
|
||||
.ant-menu ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.ant-menu-hidden {
|
||||
display: none;
|
||||
}
|
||||
.ant-menu-item-group-title {
|
||||
height: 1.5715;
|
||||
padding: 8px 16px;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-size: 14px;
|
||||
line-height: 1.5715;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-menu-submenu,
|
||||
.ant-menu-submenu-inline {
|
||||
-webkit-transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-menu-submenu-selected {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-item:active,
|
||||
.ant-menu-submenu-title:active {
|
||||
background: #e6f7ff;
|
||||
}
|
||||
.ant-menu-submenu .ant-menu-sub {
|
||||
cursor: initial;
|
||||
-webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-menu-item > a {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
.ant-menu-item > a:only-child {
|
||||
display: block;
|
||||
}
|
||||
.ant-menu-item > a:hover {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-item > a::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: transparent;
|
||||
content: '';
|
||||
}
|
||||
.ant-menu-item > .ant-badge > a {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
.ant-menu-item > .ant-badge > a:hover {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-item-divider {
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
.ant-menu-item:hover,
|
||||
.ant-menu-item-active,
|
||||
.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,
|
||||
.ant-menu-submenu-active,
|
||||
.ant-menu-submenu-title:hover {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-horizontal .ant-menu-item,
|
||||
.ant-menu-horizontal .ant-menu-submenu {
|
||||
margin-top: -1px;
|
||||
}
|
||||
.ant-menu-horizontal > .ant-menu-item:hover,
|
||||
.ant-menu-horizontal > .ant-menu-item-active,
|
||||
.ant-menu-horizontal > .ant-menu-submenu .ant-menu-submenu-title:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
.ant-menu-item-selected {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-item-selected > a,
|
||||
.ant-menu-item-selected > a:hover {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
|
||||
background-color: #e6f7ff;
|
||||
}
|
||||
.ant-menu-inline,
|
||||
.ant-menu-vertical,
|
||||
.ant-menu-vertical-left {
|
||||
border-right: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-menu-vertical-right {
|
||||
border-left: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-menu-vertical.ant-menu-sub,
|
||||
.ant-menu-vertical-left.ant-menu-sub,
|
||||
.ant-menu-vertical-right.ant-menu-sub {
|
||||
min-width: 160px;
|
||||
max-height: calc(100vh - 100px);
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
border-right: 0;
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
.ant-menu-vertical.ant-menu-sub:not(.zoom-big-enter-active):not(.zoom-big-leave-active),
|
||||
.ant-menu-vertical-left.ant-menu-sub:not(.zoom-big-enter-active):not(.zoom-big-leave-active),
|
||||
.ant-menu-vertical-right.ant-menu-sub:not(.zoom-big-enter-active):not(.zoom-big-leave-active) {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.ant-menu-vertical.ant-menu-sub .ant-menu-item,
|
||||
.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,
|
||||
.ant-menu-vertical-right.ant-menu-sub .ant-menu-item {
|
||||
left: 0;
|
||||
margin-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
.ant-menu-vertical.ant-menu-sub .ant-menu-item::after,
|
||||
.ant-menu-vertical-left.ant-menu-sub .ant-menu-item::after,
|
||||
.ant-menu-vertical-right.ant-menu-sub .ant-menu-item::after {
|
||||
border-right: 0;
|
||||
}
|
||||
.ant-menu-vertical.ant-menu-sub > .ant-menu-item,
|
||||
.ant-menu-vertical-left.ant-menu-sub > .ant-menu-item,
|
||||
.ant-menu-vertical-right.ant-menu-sub > .ant-menu-item,
|
||||
.ant-menu-vertical.ant-menu-sub > .ant-menu-submenu,
|
||||
.ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu,
|
||||
.ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu {
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
.ant-menu-horizontal.ant-menu-sub {
|
||||
min-width: 114px;
|
||||
}
|
||||
.ant-menu-item,
|
||||
.ant-menu-submenu-title {
|
||||
position: relative;
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0 20px;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
-webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-menu-item .anticon,
|
||||
.ant-menu-submenu-title .anticon {
|
||||
min-width: 14px;
|
||||
margin-right: 10px;
|
||||
font-size: 14px;
|
||||
-webkit-transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-menu-item .anticon + span,
|
||||
.ant-menu-submenu-title .anticon + span {
|
||||
opacity: 1;
|
||||
-webkit-transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-menu-item.ant-menu-item-only-child > .anticon,
|
||||
.ant-menu-submenu-title.ant-menu-item-only-child > .anticon {
|
||||
margin-right: 0;
|
||||
}
|
||||
.ant-menu > .ant-menu-item-divider {
|
||||
height: 1px;
|
||||
margin: 1px 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
.ant-menu-submenu-popup {
|
||||
position: absolute;
|
||||
z-index: 1050;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.ant-menu-submenu-popup::before {
|
||||
position: absolute;
|
||||
top: -7px;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0.0001;
|
||||
content: ' ';
|
||||
}
|
||||
.ant-menu-submenu > .ant-menu {
|
||||
background-color: #fff;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.ant-menu-submenu > .ant-menu-submenu-title::after {
|
||||
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-menu-submenu-popup > .ant-menu {
|
||||
background-color: #fff;
|
||||
}
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow,
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 16px;
|
||||
width: 10px;
|
||||
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
|
||||
position: absolute;
|
||||
width: 6px;
|
||||
height: 1.5px;
|
||||
background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.65)), to(rgba(0, 0, 0, 0.65)));
|
||||
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
|
||||
border-radius: 2px;
|
||||
-webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
content: '';
|
||||
}
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {
|
||||
-webkit-transform: rotate(45deg) translateY(-2px);
|
||||
transform: rotate(45deg) translateY(-2px);
|
||||
}
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
|
||||
-webkit-transform: rotate(-45deg) translateY(2px);
|
||||
transform: rotate(-45deg) translateY(2px);
|
||||
}
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before {
|
||||
background: -webkit-gradient(linear, left top, right top, from(#1890ff), to(#1890ff));
|
||||
background: linear-gradient(to right, #1890ff, #1890ff);
|
||||
}
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {
|
||||
-webkit-transform: rotate(45deg) translateY(-2px);
|
||||
transform: rotate(45deg) translateY(-2px);
|
||||
}
|
||||
.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
|
||||
-webkit-transform: rotate(-45deg) translateY(2px);
|
||||
transform: rotate(-45deg) translateY(2px);
|
||||
}
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {
|
||||
-webkit-transform: rotate(-45deg) translateX(2px);
|
||||
transform: rotate(-45deg) translateX(2px);
|
||||
}
|
||||
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
|
||||
-webkit-transform: rotate(45deg) translateX(-2px);
|
||||
transform: rotate(45deg) translateX(-2px);
|
||||
}
|
||||
.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow {
|
||||
-webkit-transform: translateY(-2px);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
|
||||
-webkit-transform: rotate(-45deg) translateX(-2px);
|
||||
transform: rotate(-45deg) translateX(-2px);
|
||||
}
|
||||
.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {
|
||||
-webkit-transform: rotate(45deg) translateX(2px);
|
||||
transform: rotate(45deg) translateX(2px);
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-submenu-selected,
|
||||
.ant-menu-vertical-left .ant-menu-submenu-selected,
|
||||
.ant-menu-vertical-right .ant-menu-submenu-selected {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-submenu-selected > a,
|
||||
.ant-menu-vertical-left .ant-menu-submenu-selected > a,
|
||||
.ant-menu-vertical-right .ant-menu-submenu-selected > a {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-horizontal {
|
||||
line-height: 46px;
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.ant-menu-horizontal > .ant-menu-item,
|
||||
.ant-menu-horizontal > .ant-menu-submenu {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
.ant-menu-horizontal > .ant-menu-item:hover,
|
||||
.ant-menu-horizontal > .ant-menu-submenu:hover,
|
||||
.ant-menu-horizontal > .ant-menu-item-active,
|
||||
.ant-menu-horizontal > .ant-menu-submenu-active,
|
||||
.ant-menu-horizontal > .ant-menu-item-open,
|
||||
.ant-menu-horizontal > .ant-menu-submenu-open,
|
||||
.ant-menu-horizontal > .ant-menu-item-selected,
|
||||
.ant-menu-horizontal > .ant-menu-submenu-selected {
|
||||
color: #1890ff;
|
||||
border-bottom: 2px solid #1890ff;
|
||||
}
|
||||
.ant-menu-horizontal > .ant-menu-item > a {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
.ant-menu-horizontal > .ant-menu-item > a:only-child {
|
||||
display: block;
|
||||
}
|
||||
.ant-menu-horizontal > .ant-menu-item > a:hover {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-horizontal > .ant-menu-item > a::before {
|
||||
bottom: -2px;
|
||||
}
|
||||
.ant-menu-horizontal > .ant-menu-item-selected > a {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-menu-horizontal::after {
|
||||
display: block;
|
||||
clear: both;
|
||||
height: 0;
|
||||
content: '\20';
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-item,
|
||||
.ant-menu-vertical-left .ant-menu-item,
|
||||
.ant-menu-vertical-right .ant-menu-item,
|
||||
.ant-menu-inline .ant-menu-item {
|
||||
position: relative;
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-item::after,
|
||||
.ant-menu-vertical-left .ant-menu-item::after,
|
||||
.ant-menu-vertical-right .ant-menu-item::after,
|
||||
.ant-menu-inline .ant-menu-item::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border-right: 3px solid #1890ff;
|
||||
-webkit-transform: scaleY(0.0001);
|
||||
transform: scaleY(0.0001);
|
||||
opacity: 0;
|
||||
-webkit-transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
content: '';
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-item,
|
||||
.ant-menu-vertical-left .ant-menu-item,
|
||||
.ant-menu-vertical-right .ant-menu-item,
|
||||
.ant-menu-inline .ant-menu-item,
|
||||
.ant-menu-vertical .ant-menu-submenu-title,
|
||||
.ant-menu-vertical-left .ant-menu-submenu-title,
|
||||
.ant-menu-vertical-right .ant-menu-submenu-title,
|
||||
.ant-menu-inline .ant-menu-submenu-title {
|
||||
height: 40px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
padding: 0 16px;
|
||||
overflow: hidden;
|
||||
font-size: 14px;
|
||||
line-height: 40px;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-submenu,
|
||||
.ant-menu-vertical-left .ant-menu-submenu,
|
||||
.ant-menu-vertical-right .ant-menu-submenu,
|
||||
.ant-menu-inline .ant-menu-submenu {
|
||||
padding-bottom: 0.02px;
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-item:not(:last-child),
|
||||
.ant-menu-vertical-left .ant-menu-item:not(:last-child),
|
||||
.ant-menu-vertical-right .ant-menu-item:not(:last-child),
|
||||
.ant-menu-inline .ant-menu-item:not(:last-child) {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.ant-menu-vertical > .ant-menu-item,
|
||||
.ant-menu-vertical-left > .ant-menu-item,
|
||||
.ant-menu-vertical-right > .ant-menu-item,
|
||||
.ant-menu-inline > .ant-menu-item,
|
||||
.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title,
|
||||
.ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title,
|
||||
.ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title,
|
||||
.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
}
|
||||
.ant-menu-vertical .ant-menu-submenu-title {
|
||||
padding-right: 34px;
|
||||
}
|
||||
.ant-menu-inline {
|
||||
width: 100%;
|
||||
}
|
||||
.ant-menu-inline .ant-menu-selected::after,
|
||||
.ant-menu-inline .ant-menu-item-selected::after {
|
||||
-webkit-transform: scaleY(1);
|
||||
transform: scaleY(1);
|
||||
opacity: 1;
|
||||
-webkit-transition: opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-menu-inline .ant-menu-item,
|
||||
.ant-menu-inline .ant-menu-submenu-title {
|
||||
width: calc(100% + 1px);
|
||||
}
|
||||
.ant-menu-inline .ant-menu-submenu-title {
|
||||
padding-right: 34px;
|
||||
}
|
||||
.ant-menu-inline-collapsed {
|
||||
width: 80px;
|
||||
}
|
||||
.ant-menu-inline-collapsed > .ant-menu-item,
|
||||
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item,
|
||||
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title,
|
||||
.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
|
||||
left: 0;
|
||||
padding: 0 32px;
|
||||
text-overflow: clip;
|
||||
}
|
||||
.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-submenu-arrow,
|
||||
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-submenu-arrow,
|
||||
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow,
|
||||
.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow {
|
||||
display: none;
|
||||
}
|
||||
.ant-menu-inline-collapsed > .ant-menu-item .anticon,
|
||||
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon,
|
||||
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon,
|
||||
.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
line-height: 40px;
|
||||
}
|
||||
.ant-menu-inline-collapsed > .ant-menu-item .anticon + span,
|
||||
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon + span,
|
||||
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span,
|
||||
.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span {
|
||||
display: inline-block;
|
||||
max-width: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
.ant-menu-inline-collapsed .anticon {
|
||||
display: inline-block;
|
||||
}
|
||||
.ant-menu-inline-collapsed-tooltip {
|
||||
pointer-events: none;
|
||||
}
|
||||
.ant-menu-inline-collapsed-tooltip .anticon {
|
||||
display: none;
|
||||
}
|
||||
.ant-menu-inline-collapsed-tooltip a {
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
}
|
||||
.ant-menu-inline-collapsed .ant-menu-item-group-title {
|
||||
padding-right: 4px;
|
||||
padding-left: 4px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-menu-item-group-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.ant-menu-item-group-list .ant-menu-item,
|
||||
.ant-menu-item-group-list .ant-menu-submenu-title {
|
||||
padding: 0 16px 0 28px;
|
||||
}
|
||||
.ant-menu-root.ant-menu-vertical,
|
||||
.ant-menu-root.ant-menu-vertical-left,
|
||||
.ant-menu-root.ant-menu-vertical-right,
|
||||
.ant-menu-root.ant-menu-inline {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.ant-menu-sub.ant-menu-inline {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.ant-menu-sub.ant-menu-inline > .ant-menu-item,
|
||||
.ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
list-style-position: inside;
|
||||
list-style-type: disc;
|
||||
}
|
||||
.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title {
|
||||
padding-left: 32px;
|
||||
}
|
||||
.ant-menu-item-disabled,
|
||||
.ant-menu-submenu-disabled {
|
||||
color: rgba(0, 0, 0, 0.25) !important;
|
||||
background: none;
|
||||
border-color: transparent !important;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-menu-item-disabled > a,
|
||||
.ant-menu-submenu-disabled > a {
|
||||
color: rgba(0, 0, 0, 0.25) !important;
|
||||
pointer-events: none;
|
||||
}
|
||||
.ant-menu-item-disabled > .ant-menu-submenu-title,
|
||||
.ant-menu-submenu-disabled > .ant-menu-submenu-title {
|
||||
color: rgba(0, 0, 0, 0.25) !important;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {
|
||||
background: rgba(0, 0, 0, 0.25) !important;
|
||||
}
|
||||
.ant-layout-header .ant-menu {
|
||||
line-height: inherit;
|
||||
}
|
||||
.ant-menu.ant-menu-dark,
|
||||
.ant-menu-dark .ant-menu-sub {
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
background: #001529;
|
||||
}
|
||||
.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow {
|
||||
opacity: 0.45;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before {
|
||||
background: #fff;
|
||||
}
|
||||
.ant-menu-dark.ant-menu-submenu-popup {
|
||||
background: transparent;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-inline.ant-menu-sub {
|
||||
background: #000c17;
|
||||
}
|
||||
.ant-menu-dark.ant-menu-horizontal {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.ant-menu-dark.ant-menu-horizontal > .ant-menu-item,
|
||||
.ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu {
|
||||
top: 0;
|
||||
margin-top: 0;
|
||||
border-color: #001529;
|
||||
border-bottom: 0;
|
||||
}
|
||||
.ant-menu-dark.ant-menu-horizontal > .ant-menu-item > a::before {
|
||||
bottom: 0;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item,
|
||||
.ant-menu-dark .ant-menu-item-group-title,
|
||||
.ant-menu-dark .ant-menu-item > a {
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
}
|
||||
.ant-menu-dark.ant-menu-inline,
|
||||
.ant-menu-dark.ant-menu-vertical,
|
||||
.ant-menu-dark.ant-menu-vertical-left,
|
||||
.ant-menu-dark.ant-menu-vertical-right {
|
||||
border-right: 0;
|
||||
}
|
||||
.ant-menu-dark.ant-menu-inline .ant-menu-item,
|
||||
.ant-menu-dark.ant-menu-vertical .ant-menu-item,
|
||||
.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,
|
||||
.ant-menu-dark.ant-menu-vertical-right .ant-menu-item {
|
||||
left: 0;
|
||||
margin-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
.ant-menu-dark.ant-menu-inline .ant-menu-item::after,
|
||||
.ant-menu-dark.ant-menu-vertical .ant-menu-item::after,
|
||||
.ant-menu-dark.ant-menu-vertical-left .ant-menu-item::after,
|
||||
.ant-menu-dark.ant-menu-vertical-right .ant-menu-item::after {
|
||||
border-right: 0;
|
||||
}
|
||||
.ant-menu-dark.ant-menu-inline .ant-menu-item,
|
||||
.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title {
|
||||
width: 100%;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item:hover,
|
||||
.ant-menu-dark .ant-menu-item-active,
|
||||
.ant-menu-dark .ant-menu-submenu-active,
|
||||
.ant-menu-dark .ant-menu-submenu-open,
|
||||
.ant-menu-dark .ant-menu-submenu-selected,
|
||||
.ant-menu-dark .ant-menu-submenu-title:hover {
|
||||
color: #fff;
|
||||
background-color: transparent;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item:hover > a,
|
||||
.ant-menu-dark .ant-menu-item-active > a,
|
||||
.ant-menu-dark .ant-menu-submenu-active > a,
|
||||
.ant-menu-dark .ant-menu-submenu-open > a,
|
||||
.ant-menu-dark .ant-menu-submenu-selected > a,
|
||||
.ant-menu-dark .ant-menu-submenu-title:hover > a {
|
||||
color: #fff;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,
|
||||
.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow {
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before {
|
||||
background: #fff;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
|
||||
background-color: #1890ff;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item-selected {
|
||||
color: #fff;
|
||||
border-right: 0;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item-selected::after {
|
||||
border-right: 0;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item-selected > a,
|
||||
.ant-menu-dark .ant-menu-item-selected > a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item-selected .anticon {
|
||||
color: #fff;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item-selected .anticon + span {
|
||||
color: #fff;
|
||||
}
|
||||
.ant-menu.ant-menu-dark .ant-menu-item-selected,
|
||||
.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {
|
||||
background-color: #1890ff;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item-disabled,
|
||||
.ant-menu-dark .ant-menu-submenu-disabled,
|
||||
.ant-menu-dark .ant-menu-item-disabled > a,
|
||||
.ant-menu-dark .ant-menu-submenu-disabled > a {
|
||||
color: rgba(255, 255, 255, 0.35) !important;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title,
|
||||
.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title {
|
||||
color: rgba(255, 255, 255, 0.35) !important;
|
||||
}
|
||||
.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {
|
||||
background: rgba(255, 255, 255, 0.35) !important;
|
||||
}
|
||||
.ant-menu-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-menu-rtl .ant-menu-item-group-title {
|
||||
text-align: right;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-inline,
|
||||
.ant-menu-rtl.ant-menu-vertical {
|
||||
border-right: none;
|
||||
border-left: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-dark .ant-menu-inline,
|
||||
.ant-menu-rtl.ant-menu-dark .ant-menu-vertical {
|
||||
border-left: none;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-vertical.ant-menu-sub,
|
||||
.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub,
|
||||
.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub {
|
||||
-webkit-transform-origin: top right;
|
||||
transform-origin: top right;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-vertical.ant-menu-sub > .ant-menu-item,
|
||||
.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub > .ant-menu-item,
|
||||
.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub > .ant-menu-item,
|
||||
.ant-menu-rtl.ant-menu-vertical.ant-menu-sub > .ant-menu-submenu,
|
||||
.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu,
|
||||
.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu {
|
||||
-webkit-transform-origin: top right;
|
||||
transform-origin: top right;
|
||||
}
|
||||
.ant-menu-rtl .ant-menu-item .anticon,
|
||||
.ant-menu-rtl .ant-menu-submenu-title .anticon {
|
||||
margin-right: auto;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child > .anticon,
|
||||
.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child > .anticon {
|
||||
margin-left: 0;
|
||||
}
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow,
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow,
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow,
|
||||
.ant-menu-rtl .ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow {
|
||||
right: auto;
|
||||
left: 16px;
|
||||
}
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {
|
||||
-webkit-transform: rotate(-45deg) translateY(-2px);
|
||||
transform: rotate(-45deg) translateY(-2px);
|
||||
}
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,
|
||||
.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
|
||||
-webkit-transform: rotate(45deg) translateY(2px);
|
||||
transform: rotate(45deg) translateY(2px);
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-vertical .ant-menu-item::after,
|
||||
.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item::after,
|
||||
.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item::after,
|
||||
.ant-menu-rtl.ant-menu-inline .ant-menu-item::after {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-vertical .ant-menu-item,
|
||||
.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item,
|
||||
.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item,
|
||||
.ant-menu-rtl.ant-menu-inline .ant-menu-item,
|
||||
.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title,
|
||||
.ant-menu-rtl.ant-menu-vertical-left .ant-menu-submenu-title,
|
||||
.ant-menu-rtl.ant-menu-vertical-right .ant-menu-submenu-title,
|
||||
.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title {
|
||||
text-align: right;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title {
|
||||
padding-right: 0;
|
||||
padding-left: 34px;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title {
|
||||
padding-right: 16px;
|
||||
padding-left: 34px;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-inline-collapsed.ant-menu-vertical .ant-menu-submenu-title {
|
||||
padding: 0 32px;
|
||||
}
|
||||
.ant-menu-rtl .ant-menu-item-group-list .ant-menu-item,
|
||||
.ant-menu-rtl .ant-menu-item-group-list .ant-menu-submenu-title {
|
||||
padding: 0 28px 0 16px;
|
||||
}
|
||||
.ant-menu-rtl.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title {
|
||||
padding-right: 32px;
|
||||
padding-left: 0;
|
||||
}
|
||||
3
web/node_modules/antd/lib/menu/style/index.d.ts
generated
vendored
Normal file
3
web/node_modules/antd/lib/menu/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
import '../../tooltip/style';
|
||||
7
web/node_modules/antd/lib/menu/style/index.js
generated
vendored
Normal file
7
web/node_modules/antd/lib/menu/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
require("../../style/index.less");
|
||||
|
||||
require("./index.less");
|
||||
|
||||
require("../../tooltip/style");
|
||||
563
web/node_modules/antd/lib/menu/style/index.less
generated
vendored
Normal file
563
web/node_modules/antd/lib/menu/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,563 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@menu-prefix-cls: ~'@{ant-prefix}-menu';
|
||||
|
||||
// default theme
|
||||
.@{menu-prefix-cls} {
|
||||
.reset-component;
|
||||
|
||||
margin-bottom: 0;
|
||||
padding-left: 0; // Override default ul/ol
|
||||
color: @menu-item-color;
|
||||
line-height: 0; // Fix display inline-block gap
|
||||
list-style: none;
|
||||
background: @menu-bg;
|
||||
outline: none;
|
||||
box-shadow: @box-shadow-base;
|
||||
transition: background 0.3s, width 0.2s;
|
||||
.clearfix;
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
&-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-item-group-title {
|
||||
height: @menu-item-group-height;
|
||||
padding: 8px 16px;
|
||||
color: @menu-item-group-title-color;
|
||||
font-size: @font-size-base;
|
||||
line-height: @menu-item-group-height;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
&-submenu,
|
||||
&-submenu-inline {
|
||||
transition: border-color 0.3s @ease-in-out, background 0.3s @ease-in-out,
|
||||
padding 0.15s @ease-in-out;
|
||||
}
|
||||
|
||||
&-submenu-selected {
|
||||
color: @menu-highlight-color;
|
||||
}
|
||||
|
||||
&-item:active,
|
||||
&-submenu-title:active {
|
||||
background: @menu-item-active-bg;
|
||||
}
|
||||
|
||||
&-submenu &-sub {
|
||||
cursor: initial;
|
||||
transition: background 0.3s @ease-in-out, padding 0.3s @ease-in-out;
|
||||
}
|
||||
|
||||
&-item > a {
|
||||
&:only-child {
|
||||
display: block;
|
||||
}
|
||||
color: @menu-item-color;
|
||||
&:hover {
|
||||
color: @menu-highlight-color;
|
||||
}
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: transparent;
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/19809
|
||||
&-item > .@{ant-prefix}-badge > a {
|
||||
color: @menu-item-color;
|
||||
&:hover {
|
||||
color: @menu-highlight-color;
|
||||
}
|
||||
}
|
||||
|
||||
&-item-divider {
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
background-color: @border-color-split;
|
||||
}
|
||||
|
||||
&-item:hover,
|
||||
&-item-active,
|
||||
&:not(&-inline) &-submenu-open,
|
||||
&-submenu-active,
|
||||
&-submenu-title:hover {
|
||||
color: @menu-highlight-color;
|
||||
}
|
||||
|
||||
&-horizontal &-item,
|
||||
&-horizontal &-submenu {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
&-horizontal > &-item:hover,
|
||||
&-horizontal > &-item-active,
|
||||
&-horizontal > &-submenu &-submenu-title:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&-item-selected {
|
||||
color: @menu-highlight-color;
|
||||
> a,
|
||||
> a:hover {
|
||||
color: @menu-highlight-color;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(&-horizontal) &-item-selected {
|
||||
background-color: @menu-item-active-bg;
|
||||
}
|
||||
|
||||
&-inline,
|
||||
&-vertical,
|
||||
&-vertical-left {
|
||||
border-right: @border-width-base @border-style-base @border-color-split;
|
||||
}
|
||||
|
||||
&-vertical-right {
|
||||
border-left: @border-width-base @border-style-base @border-color-split;
|
||||
}
|
||||
|
||||
&-vertical&-sub,
|
||||
&-vertical-left&-sub,
|
||||
&-vertical-right&-sub {
|
||||
min-width: 160px;
|
||||
max-height: calc(100vh - 100px);
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
border-right: 0;
|
||||
transform-origin: 0 0;
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/22244
|
||||
&:not(.zoom-big-enter-active):not(.zoom-big-leave-active) {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls}-item {
|
||||
left: 0;
|
||||
margin-left: 0;
|
||||
border-right: 0;
|
||||
&::after {
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
> .@{menu-prefix-cls}-item,
|
||||
> .@{menu-prefix-cls}-submenu {
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
&-horizontal&-sub {
|
||||
min-width: 114px; // in case of submenu width is too big: https://codesandbox.io/s/qvpwm6mk66
|
||||
}
|
||||
|
||||
&-item,
|
||||
&-submenu-title {
|
||||
position: relative;
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0 20px;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition: color 0.3s @ease-in-out, border-color 0.3s @ease-in-out,
|
||||
background 0.3s @ease-in-out, padding 0.15s @ease-in-out;
|
||||
.@{iconfont-css-prefix} {
|
||||
min-width: 14px;
|
||||
margin-right: 10px;
|
||||
font-size: @menu-icon-size;
|
||||
transition: font-size 0.15s @ease-out, margin 0.3s @ease-in-out;
|
||||
+ span {
|
||||
opacity: 1;
|
||||
transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
&.@{menu-prefix-cls}-item-only-child {
|
||||
> .@{iconfont-css-prefix} {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& > &-item-divider {
|
||||
height: 1px;
|
||||
margin: 1px 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
background-color: @border-color-split;
|
||||
}
|
||||
|
||||
&-submenu {
|
||||
&-popup {
|
||||
position: absolute;
|
||||
z-index: @zindex-dropdown;
|
||||
border-radius: @border-radius-base;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -7px;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0.0001;
|
||||
content: ' ';
|
||||
}
|
||||
}
|
||||
|
||||
> .@{menu-prefix-cls} {
|
||||
background-color: @menu-bg;
|
||||
border-radius: @border-radius-base;
|
||||
&-submenu-title::after {
|
||||
transition: transform 0.3s @ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
&-popup > .@{menu-prefix-cls} {
|
||||
background-color: @menu-popup-bg;
|
||||
}
|
||||
|
||||
&-vertical,
|
||||
&-vertical-left,
|
||||
&-vertical-right,
|
||||
&-inline {
|
||||
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 16px;
|
||||
width: 10px;
|
||||
transition: transform 0.3s @ease-in-out;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
position: absolute;
|
||||
width: 6px;
|
||||
height: 1.5px;
|
||||
// background + background-image to makes before & after cross have same color.
|
||||
// ref: https://github.com/ant-design/ant-design/issues/15910
|
||||
background-image: linear-gradient(to right, @menu-item-color, @menu-item-color);
|
||||
border-radius: 2px;
|
||||
transition: background 0.3s @ease-in-out, transform 0.3s @ease-in-out,
|
||||
top 0.3s @ease-in-out;
|
||||
content: '';
|
||||
}
|
||||
&::before {
|
||||
transform: rotate(45deg) translateY(-2px);
|
||||
}
|
||||
&::after {
|
||||
transform: rotate(-45deg) translateY(2px);
|
||||
}
|
||||
}
|
||||
> .@{menu-prefix-cls}-submenu-title:hover .@{menu-prefix-cls}-submenu-arrow {
|
||||
&::after,
|
||||
&::before {
|
||||
background: linear-gradient(to right, @menu-highlight-color, @menu-highlight-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical,
|
||||
&-vertical-left,
|
||||
&-vertical-right {
|
||||
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
||||
&::before {
|
||||
transform: rotate(45deg) translateY(-2px);
|
||||
}
|
||||
&::after {
|
||||
transform: rotate(-45deg) translateY(2px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-inline > .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
||||
&::before {
|
||||
transform: rotate(-45deg) translateX(2px);
|
||||
}
|
||||
&::after {
|
||||
transform: rotate(45deg) translateX(-2px);
|
||||
}
|
||||
}
|
||||
|
||||
&-open {
|
||||
&.@{menu-prefix-cls}-submenu-inline
|
||||
> .@{menu-prefix-cls}-submenu-title
|
||||
.@{menu-prefix-cls}-submenu-arrow {
|
||||
transform: translateY(-2px);
|
||||
&::after {
|
||||
transform: rotate(-45deg) translateX(-2px);
|
||||
}
|
||||
&::before {
|
||||
transform: rotate(45deg) translateX(2px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical &-submenu-selected,
|
||||
&-vertical-left &-submenu-selected,
|
||||
&-vertical-right &-submenu-selected {
|
||||
color: @menu-highlight-color;
|
||||
> a {
|
||||
color: @menu-highlight-color;
|
||||
}
|
||||
}
|
||||
|
||||
&-horizontal {
|
||||
line-height: 46px;
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
border-bottom: @border-width-base @border-style-base @border-color-split;
|
||||
box-shadow: none;
|
||||
|
||||
> .@{menu-prefix-cls}-item,
|
||||
> .@{menu-prefix-cls}-submenu {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
border-bottom: 2px solid transparent;
|
||||
|
||||
&:hover,
|
||||
&-active,
|
||||
&-open,
|
||||
&-selected {
|
||||
color: @menu-highlight-color;
|
||||
border-bottom: 2px solid @menu-highlight-color;
|
||||
}
|
||||
}
|
||||
|
||||
> .@{menu-prefix-cls}-item {
|
||||
> a {
|
||||
&:only-child {
|
||||
display: block;
|
||||
}
|
||||
color: @menu-item-color;
|
||||
&:hover {
|
||||
color: @menu-highlight-color;
|
||||
}
|
||||
&::before {
|
||||
bottom: -2px;
|
||||
}
|
||||
}
|
||||
&-selected > a {
|
||||
color: @menu-highlight-color;
|
||||
}
|
||||
}
|
||||
|
||||
&::after {
|
||||
display: block;
|
||||
clear: both;
|
||||
height: 0;
|
||||
content: '\20';
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical,
|
||||
&-vertical-left,
|
||||
&-vertical-right,
|
||||
&-inline {
|
||||
.@{menu-prefix-cls}-item {
|
||||
position: relative;
|
||||
&::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border-right: @menu-item-active-border-width solid @menu-highlight-color;
|
||||
transform: scaleY(0.0001);
|
||||
opacity: 0;
|
||||
transition: transform 0.15s @ease-out, opacity 0.15s @ease-out;
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls}-item,
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
height: @menu-item-height;
|
||||
margin-top: @menu-item-vertical-margin;
|
||||
margin-bottom: @menu-item-vertical-margin;
|
||||
padding: 0 16px;
|
||||
overflow: hidden;
|
||||
font-size: @menu-item-font-size;
|
||||
line-height: @menu-item-height;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
// disable margin collapsed
|
||||
.@{menu-prefix-cls}-submenu {
|
||||
padding-bottom: 0.02px;
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls}-item:not(:last-child) {
|
||||
margin-bottom: @menu-item-boundary-margin;
|
||||
}
|
||||
|
||||
> .@{menu-prefix-cls}-item,
|
||||
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
||||
height: @menu-inline-toplevel-item-height;
|
||||
line-height: @menu-inline-toplevel-item-height;
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical {
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
padding-right: 34px;
|
||||
}
|
||||
}
|
||||
|
||||
&-inline {
|
||||
width: 100%;
|
||||
.@{menu-prefix-cls}-selected,
|
||||
.@{menu-prefix-cls}-item-selected {
|
||||
&::after {
|
||||
transform: scaleY(1);
|
||||
opacity: 1;
|
||||
transition: transform 0.15s @ease-in-out, opacity 0.15s @ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls}-item,
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
width: ~'calc(100% + 1px)';
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
padding-right: 34px;
|
||||
}
|
||||
}
|
||||
|
||||
&-inline-collapsed {
|
||||
width: @menu-collapsed-width;
|
||||
> .@{menu-prefix-cls}-item,
|
||||
> .@{menu-prefix-cls}-item-group
|
||||
> .@{menu-prefix-cls}-item-group-list
|
||||
> .@{menu-prefix-cls}-item,
|
||||
> .@{menu-prefix-cls}-item-group
|
||||
> .@{menu-prefix-cls}-item-group-list
|
||||
> .@{menu-prefix-cls}-submenu
|
||||
> .@{menu-prefix-cls}-submenu-title,
|
||||
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
||||
left: 0;
|
||||
padding: 0 (@menu-collapsed-width - @menu-icon-size-lg) / 2;
|
||||
text-overflow: clip;
|
||||
.@{menu-prefix-cls}-submenu-arrow {
|
||||
display: none;
|
||||
}
|
||||
.@{iconfont-css-prefix} {
|
||||
margin: 0;
|
||||
font-size: @menu-icon-size-lg;
|
||||
line-height: @menu-item-height;
|
||||
+ span {
|
||||
display: inline-block;
|
||||
max-width: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{iconfont-css-prefix} {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&-tooltip {
|
||||
pointer-events: none;
|
||||
.@{iconfont-css-prefix} {
|
||||
display: none;
|
||||
}
|
||||
a {
|
||||
color: @text-color-dark;
|
||||
}
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls}-item-group-title {
|
||||
padding-right: 4px;
|
||||
padding-left: 4px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
&-item-group-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
.@{menu-prefix-cls}-item,
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
padding: 0 16px 0 28px;
|
||||
}
|
||||
}
|
||||
|
||||
&-root&-vertical,
|
||||
&-root&-vertical-left,
|
||||
&-root&-vertical-right,
|
||||
&-root&-inline {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&-sub&-inline {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
& > .@{menu-prefix-cls}-item,
|
||||
& > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
||||
height: @menu-item-height;
|
||||
line-height: @menu-item-height;
|
||||
list-style-position: inside;
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
& .@{menu-prefix-cls}-item-group-title {
|
||||
padding-left: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
// Disabled state sets text to gray and nukes hover/tab effects
|
||||
&-item-disabled,
|
||||
&-submenu-disabled {
|
||||
color: @disabled-color !important;
|
||||
background: none;
|
||||
border-color: transparent !important;
|
||||
cursor: not-allowed;
|
||||
> a {
|
||||
color: @disabled-color !important;
|
||||
pointer-events: none;
|
||||
}
|
||||
> .@{menu-prefix-cls}-submenu-title {
|
||||
color: @disabled-color !important;
|
||||
cursor: not-allowed;
|
||||
> .@{menu-prefix-cls}-submenu-arrow {
|
||||
&::before,
|
||||
&::after {
|
||||
background: @disabled-color !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Integration with header element so menu items have the same height
|
||||
.@{ant-prefix}-layout-header {
|
||||
.@{menu-prefix-cls} {
|
||||
line-height: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
@import './dark';
|
||||
@import './rtl';
|
||||
162
web/node_modules/antd/lib/menu/style/rtl.less
generated
vendored
Normal file
162
web/node_modules/antd/lib/menu/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@menu-prefix-cls: ~'@{ant-prefix}-menu';
|
||||
|
||||
.@{menu-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
&-item-group-title {
|
||||
.@{menu-prefix-cls}-rtl & {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
&-inline,
|
||||
&-vertical {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
border-right: none;
|
||||
border-left: @border-width-base @border-style-base @border-color-split;
|
||||
}
|
||||
}
|
||||
|
||||
&-dark {
|
||||
.@{menu-prefix-cls}-inline,
|
||||
.@{menu-prefix-cls}-vertical {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
border-left: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical&-sub,
|
||||
&-vertical-left&-sub,
|
||||
&-vertical-right&-sub {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
transform-origin: top right;
|
||||
}
|
||||
|
||||
> .@{menu-prefix-cls}-item,
|
||||
> .@{menu-prefix-cls}-submenu {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
transform-origin: top right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-item,
|
||||
&-submenu-title {
|
||||
.@{iconfont-css-prefix} {
|
||||
.@{menu-prefix-cls}-rtl & {
|
||||
margin-right: auto;
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&.@{menu-prefix-cls}-item-only-child {
|
||||
> .@{iconfont-css-prefix} {
|
||||
.@{menu-prefix-cls}-rtl & {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-submenu {
|
||||
&-vertical,
|
||||
&-vertical-left,
|
||||
&-vertical-right,
|
||||
&-inline {
|
||||
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
||||
.@{menu-prefix-cls}-rtl & {
|
||||
right: auto;
|
||||
left: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical,
|
||||
&-vertical-left,
|
||||
&-vertical-right {
|
||||
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
||||
&::before {
|
||||
.@{menu-prefix-cls}-rtl & {
|
||||
transform: rotate(-45deg) translateY(-2px);
|
||||
}
|
||||
}
|
||||
&::after {
|
||||
.@{menu-prefix-cls}-rtl & {
|
||||
transform: rotate(45deg) translateY(2px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical,
|
||||
&-vertical-left,
|
||||
&-vertical-right,
|
||||
&-inline {
|
||||
.@{menu-prefix-cls}-item {
|
||||
&::after {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls}-item,
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-inline {
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
padding-right: 0;
|
||||
padding-left: 34px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical {
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
padding-right: 16px;
|
||||
padding-left: 34px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-inline-collapsed&-vertical {
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
padding: 0 (@menu-collapsed-width - @menu-icon-size-lg) / 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-item-group-list {
|
||||
.@{menu-prefix-cls}-item,
|
||||
.@{menu-prefix-cls}-submenu-title {
|
||||
.@{menu-prefix-cls}-rtl & {
|
||||
padding: 0 28px 0 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-sub&-inline {
|
||||
& .@{menu-prefix-cls}-item-group-title {
|
||||
.@{menu-prefix-cls}-rtl& {
|
||||
padding-right: 32px;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user