Latest updates from IceHrmPro
This commit is contained in:
28
web/node_modules/antd/es/dropdown/dropdown-button.d.ts
generated
vendored
Normal file
28
web/node_modules/antd/es/dropdown/dropdown-button.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import * as React from 'react';
|
||||
import { ButtonHTMLType } from '../button/button';
|
||||
import { ButtonGroupProps } from '../button/button-group';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
import { DropDownProps } from './dropdown';
|
||||
declare type DropdownButtonType = 'primary' | 'ghost' | 'dashed';
|
||||
export interface DropdownButtonProps extends ButtonGroupProps, DropDownProps {
|
||||
type?: DropdownButtonType;
|
||||
htmlType?: ButtonHTMLType;
|
||||
disabled?: boolean;
|
||||
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
||||
icon?: React.ReactNode;
|
||||
href?: string;
|
||||
children?: React.ReactNode;
|
||||
title?: string;
|
||||
buttonsRender?: (buttons: React.ReactNode[]) => React.ReactNode[];
|
||||
}
|
||||
export default class DropdownButton extends React.Component<DropdownButtonProps, any> {
|
||||
static __ANT_BUTTON: boolean;
|
||||
static defaultProps: {
|
||||
placement: "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight" | undefined;
|
||||
type: DropdownButtonType;
|
||||
buttonsRender: (buttons: React.ReactNode[]) => React.ReactNode[];
|
||||
};
|
||||
renderButton: ({ getPopupContainer: getContextPopupContainer, getPrefixCls, }: ConfigConsumerProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export {};
|
||||
154
web/node_modules/antd/es/dropdown/dropdown-button.js
generated
vendored
Normal file
154
web/node_modules/antd/es/dropdown/dropdown-button.js
generated
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
||||
|
||||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
||||
|
||||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
||||
|
||||
function _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 = this && this.__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;
|
||||
};
|
||||
|
||||
import * as React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import EllipsisOutlined from '@ant-design/icons/EllipsisOutlined';
|
||||
import Button from '../button';
|
||||
import { ConfigConsumer } from '../config-provider';
|
||||
import Dropdown from './dropdown';
|
||||
var ButtonGroup = Button.Group;
|
||||
|
||||
var DropdownButton = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(DropdownButton, _React$Component);
|
||||
|
||||
var _super = _createSuper(DropdownButton);
|
||||
|
||||
function DropdownButton() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, DropdownButton);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
|
||||
_this.renderButton = function (_ref) {
|
||||
var getContextPopupContainer = _ref.getPopupContainer,
|
||||
getPrefixCls = _ref.getPrefixCls;
|
||||
|
||||
var _a = _this.props,
|
||||
customizePrefixCls = _a.prefixCls,
|
||||
type = _a.type,
|
||||
disabled = _a.disabled,
|
||||
onClick = _a.onClick,
|
||||
htmlType = _a.htmlType,
|
||||
children = _a.children,
|
||||
className = _a.className,
|
||||
overlay = _a.overlay,
|
||||
trigger = _a.trigger,
|
||||
align = _a.align,
|
||||
visible = _a.visible,
|
||||
onVisibleChange = _a.onVisibleChange,
|
||||
placement = _a.placement,
|
||||
getPopupContainer = _a.getPopupContainer,
|
||||
href = _a.href,
|
||||
_a$icon = _a.icon,
|
||||
icon = _a$icon === void 0 ? /*#__PURE__*/React.createElement(EllipsisOutlined, null) : _a$icon,
|
||||
title = _a.title,
|
||||
buttonsRender = _a.buttonsRender,
|
||||
restProps = __rest(_a, ["prefixCls", "type", "disabled", "onClick", "htmlType", "children", "className", "overlay", "trigger", "align", "visible", "onVisibleChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender"]);
|
||||
|
||||
var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
|
||||
var dropdownProps = {
|
||||
align: align,
|
||||
overlay: overlay,
|
||||
disabled: disabled,
|
||||
trigger: disabled ? [] : trigger,
|
||||
onVisibleChange: onVisibleChange,
|
||||
placement: placement,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer
|
||||
};
|
||||
|
||||
if ('visible' in _this.props) {
|
||||
dropdownProps.visible = visible;
|
||||
}
|
||||
|
||||
var leftButton = /*#__PURE__*/React.createElement(Button, {
|
||||
type: type,
|
||||
disabled: disabled,
|
||||
onClick: onClick,
|
||||
htmlType: htmlType,
|
||||
href: href,
|
||||
title: title
|
||||
}, children);
|
||||
var rightButton = /*#__PURE__*/React.createElement(Button, {
|
||||
type: type
|
||||
}, icon);
|
||||
|
||||
var _buttonsRender = buttonsRender([leftButton, rightButton]),
|
||||
_buttonsRender2 = _slicedToArray(_buttonsRender, 2),
|
||||
leftButtonToRender = _buttonsRender2[0],
|
||||
rightButtonToRender = _buttonsRender2[1];
|
||||
|
||||
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, restProps, {
|
||||
className: classNames(prefixCls, className)
|
||||
}), leftButtonToRender, /*#__PURE__*/React.createElement(Dropdown, dropdownProps, rightButtonToRender));
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(DropdownButton, [{
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderButton);
|
||||
}
|
||||
}]);
|
||||
|
||||
return DropdownButton;
|
||||
}(React.Component);
|
||||
|
||||
export { DropdownButton as default };
|
||||
DropdownButton.__ANT_BUTTON = true;
|
||||
DropdownButton.defaultProps = {
|
||||
placement: 'bottomRight',
|
||||
type: 'default',
|
||||
buttonsRender: function buttonsRender(buttons) {
|
||||
return buttons;
|
||||
}
|
||||
};
|
||||
50
web/node_modules/antd/es/dropdown/dropdown.d.ts
generated
vendored
Normal file
50
web/node_modules/antd/es/dropdown/dropdown.d.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import * as React from 'react';
|
||||
import DropdownButton from './dropdown-button';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
declare const Placements: ["topLeft", "topCenter", "topRight", "bottomLeft", "bottomCenter", "bottomRight"];
|
||||
declare type Placement = typeof Placements[number];
|
||||
declare type OverlayFunc = () => React.ReactElement;
|
||||
declare type Align = {
|
||||
points?: [string, string];
|
||||
offset?: [number, number];
|
||||
targetOffset?: [number, number];
|
||||
overflow?: {
|
||||
adjustX?: boolean;
|
||||
adjustY?: boolean;
|
||||
};
|
||||
useCssRight?: boolean;
|
||||
useCssBottom?: boolean;
|
||||
useCssTransform?: boolean;
|
||||
};
|
||||
export interface DropDownProps {
|
||||
trigger?: ('click' | 'hover' | 'contextMenu')[];
|
||||
overlay: React.ReactElement | OverlayFunc;
|
||||
onVisibleChange?: (visible: boolean) => void;
|
||||
visible?: boolean;
|
||||
disabled?: boolean;
|
||||
align?: Align;
|
||||
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
transitionName?: string;
|
||||
placement?: Placement;
|
||||
overlayClassName?: string;
|
||||
overlayStyle?: React.CSSProperties;
|
||||
forceRender?: boolean;
|
||||
mouseEnterDelay?: number;
|
||||
mouseLeaveDelay?: number;
|
||||
openClassName?: string;
|
||||
}
|
||||
export default class Dropdown extends React.Component<DropDownProps, any> {
|
||||
static Button: typeof DropdownButton;
|
||||
static defaultProps: {
|
||||
mouseEnterDelay: number;
|
||||
mouseLeaveDelay: number;
|
||||
};
|
||||
getTransitionName(): string;
|
||||
renderOverlay: (prefixCls: string) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
||||
getPlacement(direction?: string): "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight";
|
||||
renderDropDown: ({ getPopupContainer: getContextPopupContainer, getPrefixCls, direction, }: ConfigConsumerProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export {};
|
||||
171
web/node_modules/antd/es/dropdown/dropdown.js
generated
vendored
Normal file
171
web/node_modules/antd/es/dropdown/dropdown.js
generated
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
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); }
|
||||
|
||||
import * as React from 'react';
|
||||
import RcDropdown from 'rc-dropdown';
|
||||
import classNames from 'classnames';
|
||||
import RightOutlined from '@ant-design/icons/RightOutlined';
|
||||
import { ConfigConsumer } from '../config-provider';
|
||||
import warning from '../_util/warning';
|
||||
import { tuple } from '../_util/type';
|
||||
var Placements = tuple('topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight');
|
||||
|
||||
var Dropdown = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(Dropdown, _React$Component);
|
||||
|
||||
var _super = _createSuper(Dropdown);
|
||||
|
||||
function Dropdown() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, Dropdown);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
|
||||
_this.renderOverlay = function (prefixCls) {
|
||||
// rc-dropdown already can process the function of overlay, but we have check logic here.
|
||||
// So we need render the element to check and pass back to rc-dropdown.
|
||||
var overlay = _this.props.overlay;
|
||||
var overlayNode;
|
||||
|
||||
if (typeof overlay === 'function') {
|
||||
overlayNode = overlay();
|
||||
} else {
|
||||
overlayNode = overlay;
|
||||
}
|
||||
|
||||
overlayNode = React.Children.only(overlayNode);
|
||||
var overlayProps = overlayNode.props; // Warning if use other mode
|
||||
|
||||
warning(!overlayProps.mode || overlayProps.mode === 'vertical', 'Dropdown', "mode=\"".concat(overlayProps.mode, "\" is not supported for Dropdown's Menu.")); // menu cannot be selectable in dropdown defaultly
|
||||
// menu should be focusable in dropdown defaultly
|
||||
|
||||
var _overlayProps$selecta = overlayProps.selectable,
|
||||
selectable = _overlayProps$selecta === void 0 ? false : _overlayProps$selecta,
|
||||
_overlayProps$focusab = overlayProps.focusable,
|
||||
focusable = _overlayProps$focusab === void 0 ? true : _overlayProps$focusab;
|
||||
var expandIcon = /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(prefixCls, "-menu-submenu-arrow")
|
||||
}, /*#__PURE__*/React.createElement(RightOutlined, {
|
||||
className: "".concat(prefixCls, "-menu-submenu-arrow-icon")
|
||||
}));
|
||||
var fixedModeOverlay = typeof overlayNode.type === 'string' ? overlay : React.cloneElement(overlayNode, {
|
||||
mode: 'vertical',
|
||||
selectable: selectable,
|
||||
focusable: focusable,
|
||||
expandIcon: expandIcon
|
||||
});
|
||||
return fixedModeOverlay;
|
||||
};
|
||||
|
||||
_this.renderDropDown = function (_ref) {
|
||||
var getContextPopupContainer = _ref.getPopupContainer,
|
||||
getPrefixCls = _ref.getPrefixCls,
|
||||
direction = _ref.direction;
|
||||
var _this$props = _this.props,
|
||||
customizePrefixCls = _this$props.prefixCls,
|
||||
children = _this$props.children,
|
||||
trigger = _this$props.trigger,
|
||||
disabled = _this$props.disabled,
|
||||
getPopupContainer = _this$props.getPopupContainer,
|
||||
overlayClassName = _this$props.overlayClassName;
|
||||
var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
||||
var child = React.Children.only(children);
|
||||
var dropdownTrigger = React.cloneElement(child, {
|
||||
className: classNames(child.props.className, "".concat(prefixCls, "-trigger"), _defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl')),
|
||||
disabled: disabled
|
||||
});
|
||||
var overlayClassNameCustomized = classNames(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
|
||||
var triggerActions = disabled ? [] : trigger;
|
||||
var alignPoint;
|
||||
|
||||
if (triggerActions && triggerActions.indexOf('contextMenu') !== -1) {
|
||||
alignPoint = true;
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(RcDropdown, _extends({
|
||||
alignPoint: alignPoint
|
||||
}, _this.props, {
|
||||
overlayClassName: overlayClassNameCustomized,
|
||||
prefixCls: prefixCls,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
transitionName: _this.getTransitionName(),
|
||||
trigger: triggerActions,
|
||||
overlay: function overlay() {
|
||||
return _this.renderOverlay(prefixCls);
|
||||
},
|
||||
placement: _this.getPlacement(direction)
|
||||
}), dropdownTrigger);
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(Dropdown, [{
|
||||
key: "getTransitionName",
|
||||
value: function getTransitionName() {
|
||||
var _this$props2 = this.props,
|
||||
_this$props2$placemen = _this$props2.placement,
|
||||
placement = _this$props2$placemen === void 0 ? '' : _this$props2$placemen,
|
||||
transitionName = _this$props2.transitionName;
|
||||
|
||||
if (transitionName !== undefined) {
|
||||
return transitionName;
|
||||
}
|
||||
|
||||
if (placement.indexOf('top') >= 0) {
|
||||
return 'slide-down';
|
||||
}
|
||||
|
||||
return 'slide-up';
|
||||
}
|
||||
}, {
|
||||
key: "getPlacement",
|
||||
value: function getPlacement() {
|
||||
var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'ltr';
|
||||
var placement = this.props.placement;
|
||||
|
||||
if (placement !== undefined) {
|
||||
return placement;
|
||||
}
|
||||
|
||||
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderDropDown);
|
||||
}
|
||||
}]);
|
||||
|
||||
return Dropdown;
|
||||
}(React.Component);
|
||||
|
||||
export { Dropdown as default };
|
||||
Dropdown.defaultProps = {
|
||||
mouseEnterDelay: 0.15,
|
||||
mouseLeaveDelay: 0.1
|
||||
};
|
||||
4
web/node_modules/antd/es/dropdown/index.d.ts
generated
vendored
Normal file
4
web/node_modules/antd/es/dropdown/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import Dropdown from './dropdown';
|
||||
export { DropDownProps } from './dropdown';
|
||||
export { DropdownButtonProps } from './dropdown-button';
|
||||
export default Dropdown;
|
||||
4
web/node_modules/antd/es/dropdown/index.js
generated
vendored
Normal file
4
web/node_modules/antd/es/dropdown/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import Dropdown from './dropdown';
|
||||
import DropdownButton from './dropdown-button';
|
||||
Dropdown.Button = DropdownButton;
|
||||
export default Dropdown;
|
||||
4
web/node_modules/antd/es/dropdown/style/css.js
generated
vendored
Normal file
4
web/node_modules/antd/es/dropdown/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import '../../style/index.css';
|
||||
import './index.css'; // style dependencies
|
||||
|
||||
import '../../button/style/css';
|
||||
314
web/node_modules/antd/es/dropdown/style/index.css
generated
vendored
Normal file
314
web/node_modules/antd/es/dropdown/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,314 @@
|
||||
/* 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-dropdown {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
list-style: none;
|
||||
-webkit-font-feature-settings: 'tnum';
|
||||
font-feature-settings: 'tnum';
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
left: -9999px;
|
||||
z-index: 1050;
|
||||
display: block;
|
||||
}
|
||||
.ant-dropdown::before {
|
||||
position: absolute;
|
||||
top: -7px;
|
||||
right: 0;
|
||||
bottom: -7px;
|
||||
left: -7px;
|
||||
z-index: -9999;
|
||||
opacity: 0.0001;
|
||||
content: ' ';
|
||||
}
|
||||
.ant-dropdown-wrap {
|
||||
position: relative;
|
||||
}
|
||||
.ant-dropdown-wrap .ant-btn > .anticon-down {
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
}
|
||||
.ant-dropdown-wrap .anticon-down::before {
|
||||
-webkit-transition: -webkit-transform 0.2s;
|
||||
transition: -webkit-transform 0.2s;
|
||||
transition: transform 0.2s;
|
||||
transition: transform 0.2s, -webkit-transform 0.2s;
|
||||
}
|
||||
.ant-dropdown-wrap-open .anticon-down::before {
|
||||
-webkit-transform: rotate(180deg);
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.ant-dropdown-hidden,
|
||||
.ant-dropdown-menu-hidden {
|
||||
display: none;
|
||||
}
|
||||
.ant-dropdown-menu {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding: 4px 0;
|
||||
text-align: left;
|
||||
list-style-type: none;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
border-radius: 2px;
|
||||
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-transform: translate3d(0, 0, 0);
|
||||
}
|
||||
.ant-dropdown-menu-item-group-title {
|
||||
padding: 5px 12px;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-dropdown-menu-submenu-popup {
|
||||
position: absolute;
|
||||
z-index: 1050;
|
||||
background: transparent;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.ant-dropdown-menu-submenu-popup > .ant-dropdown-menu {
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
.ant-dropdown-menu-submenu-popup ul,
|
||||
.ant-dropdown-menu-submenu-popup li {
|
||||
list-style: none;
|
||||
}
|
||||
.ant-dropdown-menu-submenu-popup ul {
|
||||
margin-right: 0.3em;
|
||||
margin-left: 0.3em;
|
||||
}
|
||||
.ant-dropdown-menu-item,
|
||||
.ant-dropdown-menu-submenu-title {
|
||||
clear: both;
|
||||
margin: 0;
|
||||
padding: 5px 12px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-dropdown-menu-item > .anticon:first-child,
|
||||
.ant-dropdown-menu-submenu-title > .anticon:first-child,
|
||||
.ant-dropdown-menu-item > span > .anticon:first-child,
|
||||
.ant-dropdown-menu-submenu-title > span > .anticon:first-child {
|
||||
min-width: 12px;
|
||||
margin-right: 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.ant-dropdown-menu-item > a,
|
||||
.ant-dropdown-menu-submenu-title > a {
|
||||
display: block;
|
||||
margin: -5px -12px;
|
||||
padding: 5px 12px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-dropdown-menu-item > a:hover,
|
||||
.ant-dropdown-menu-submenu-title > a:hover {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
.ant-dropdown-menu-item-selected,
|
||||
.ant-dropdown-menu-submenu-title-selected,
|
||||
.ant-dropdown-menu-item-selected > a,
|
||||
.ant-dropdown-menu-submenu-title-selected > a {
|
||||
color: #1890ff;
|
||||
background-color: #e6f7ff;
|
||||
}
|
||||
.ant-dropdown-menu-item:hover,
|
||||
.ant-dropdown-menu-submenu-title:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.ant-dropdown-menu-item-disabled,
|
||||
.ant-dropdown-menu-submenu-title-disabled {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-dropdown-menu-item-disabled:hover,
|
||||
.ant-dropdown-menu-submenu-title-disabled:hover {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background-color: #fff;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-dropdown-menu-item-divider,
|
||||
.ant-dropdown-menu-submenu-title-divider {
|
||||
height: 1px;
|
||||
margin: 4px 0;
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
.ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,
|
||||
.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
}
|
||||
.ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,
|
||||
.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {
|
||||
margin-right: 0 !important;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
}
|
||||
.ant-dropdown-menu-item-group-list {
|
||||
margin: 0 8px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.ant-dropdown-menu-submenu-title {
|
||||
padding-right: 24px;
|
||||
}
|
||||
.ant-dropdown-menu-submenu-vertical {
|
||||
position: relative;
|
||||
}
|
||||
.ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
min-width: 100%;
|
||||
margin-left: 4px;
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,
|
||||
.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background-color: #fff;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomLeft,
|
||||
.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomLeft,
|
||||
.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomCenter,
|
||||
.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomCenter,
|
||||
.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomRight,
|
||||
.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomRight {
|
||||
-webkit-animation-name: antSlideUpIn;
|
||||
animation-name: antSlideUpIn;
|
||||
}
|
||||
.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topLeft,
|
||||
.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topLeft,
|
||||
.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topCenter,
|
||||
.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topCenter,
|
||||
.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topRight,
|
||||
.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topRight {
|
||||
-webkit-animation-name: antSlideDownIn;
|
||||
animation-name: antSlideDownIn;
|
||||
}
|
||||
.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomLeft,
|
||||
.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomCenter,
|
||||
.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomRight {
|
||||
-webkit-animation-name: antSlideUpOut;
|
||||
animation-name: antSlideUpOut;
|
||||
}
|
||||
.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topLeft,
|
||||
.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topCenter,
|
||||
.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topRight {
|
||||
-webkit-animation-name: antSlideDownOut;
|
||||
animation-name: antSlideDownOut;
|
||||
}
|
||||
.ant-dropdown-trigger > .anticon.anticon-down,
|
||||
.ant-dropdown-link > .anticon.anticon-down {
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
}
|
||||
.ant-dropdown-button {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ant-dropdown-button.ant-btn-group > .ant-btn:last-child:not(:first-child) {
|
||||
padding-right: 8px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
.ant-dropdown-button .anticon.anticon-down {
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
}
|
||||
.ant-dropdown-menu-dark,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu {
|
||||
background: #001529;
|
||||
}
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item > a {
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
}
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow::after,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow::after,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow::after {
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
}
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item > a:hover {
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
}
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,
|
||||
.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected > a {
|
||||
color: #fff;
|
||||
background: #1890ff;
|
||||
}
|
||||
.ant-dropdown-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-dropdown-rtl.ant-dropdown::before {
|
||||
right: -7px;
|
||||
left: 0;
|
||||
}
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li {
|
||||
text-align: right;
|
||||
}
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-item,
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-title {
|
||||
text-align: right;
|
||||
}
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-item > .anticon:first-child,
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-title > .anticon:first-child,
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-item > span > .anticon:first-child,
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-title > span > .anticon:first-child {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow {
|
||||
right: auto;
|
||||
left: 8px;
|
||||
}
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {
|
||||
margin-left: 0 !important;
|
||||
-webkit-transform: scaleX(-1);
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-title {
|
||||
padding-right: 12px;
|
||||
padding-left: 24px;
|
||||
}
|
||||
.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {
|
||||
right: 100%;
|
||||
left: 0;
|
||||
margin-right: 4px;
|
||||
margin-left: 0;
|
||||
}
|
||||
3
web/node_modules/antd/es/dropdown/style/index.d.ts
generated
vendored
Normal file
3
web/node_modules/antd/es/dropdown/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
import '../../button/style';
|
||||
4
web/node_modules/antd/es/dropdown/style/index.js
generated
vendored
Normal file
4
web/node_modules/antd/es/dropdown/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less'; // style dependencies
|
||||
|
||||
import '../../button/style';
|
||||
290
web/node_modules/antd/es/dropdown/style/index.less
generated
vendored
Normal file
290
web/node_modules/antd/es/dropdown/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,290 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
||||
|
||||
.@{dropdown-prefix-cls} {
|
||||
.reset-component;
|
||||
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
left: -9999px;
|
||||
z-index: @zindex-dropdown;
|
||||
display: block;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -7px;
|
||||
right: 0;
|
||||
bottom: -7px;
|
||||
left: -7px;
|
||||
z-index: -9999;
|
||||
opacity: 0.0001;
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
&-wrap {
|
||||
position: relative;
|
||||
|
||||
.@{ant-prefix}-btn > .@{iconfont-css-prefix}-down {
|
||||
.iconfont-size-under-12px(10px);
|
||||
}
|
||||
|
||||
.@{iconfont-css-prefix}-down::before {
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
}
|
||||
|
||||
&-wrap-open {
|
||||
.@{iconfont-css-prefix}-down::before {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
&-hidden,
|
||||
&-menu-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-menu {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding: @dropdown-edge-child-vertical-padding 0;
|
||||
text-align: left;
|
||||
list-style-type: none;
|
||||
background-color: @dropdown-menu-bg;
|
||||
background-clip: padding-box;
|
||||
border-radius: @border-radius-base;
|
||||
outline: none;
|
||||
box-shadow: @box-shadow-base;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
|
||||
&-item-group-title {
|
||||
padding: 5px @control-padding-horizontal;
|
||||
color: @text-color-secondary;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
&-submenu-popup {
|
||||
position: absolute;
|
||||
z-index: @zindex-dropdown;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
|
||||
> .@{dropdown-prefix-cls}-menu {
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
|
||||
ul,
|
||||
li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-right: 0.3em;
|
||||
margin-left: 0.3em;
|
||||
}
|
||||
}
|
||||
|
||||
&-item,
|
||||
&-submenu-title {
|
||||
clear: both;
|
||||
margin: 0;
|
||||
padding: @dropdown-vertical-padding @control-padding-horizontal;
|
||||
color: @text-color;
|
||||
font-weight: normal;
|
||||
font-size: @dropdown-font-size;
|
||||
line-height: @dropdown-line-height;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
|
||||
> .anticon:first-child,
|
||||
> span > .anticon:first-child {
|
||||
min-width: 12px;
|
||||
margin-right: 8px;
|
||||
font-size: @font-size-sm;
|
||||
}
|
||||
|
||||
> a {
|
||||
display: block;
|
||||
margin: -5px -@control-padding-horizontal;
|
||||
padding: 5px @control-padding-horizontal;
|
||||
color: @text-color;
|
||||
transition: all 0.3s;
|
||||
&:hover {
|
||||
color: @text-color;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
& when (@dropdown-edge-child-vertical-padding = 0) {
|
||||
border-radius: @border-radius-base @border-radius-base 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
& when (@dropdown-edge-child-vertical-padding = 0) {
|
||||
border-radius: 0 0 @border-radius-base @border-radius-base;
|
||||
}
|
||||
}
|
||||
|
||||
&-selected,
|
||||
&-selected > a {
|
||||
color: @dropdown-selected-color;
|
||||
background-color: @item-active-bg;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: @item-hover-bg;
|
||||
}
|
||||
|
||||
&-disabled {
|
||||
color: @disabled-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&:hover {
|
||||
color: @disabled-color;
|
||||
background-color: @dropdown-menu-submenu-disabled-bg;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
&-divider {
|
||||
height: 1px;
|
||||
margin: 4px 0;
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
background-color: @border-color-split;
|
||||
}
|
||||
|
||||
.@{dropdown-prefix-cls}-menu-submenu-arrow {
|
||||
position: absolute;
|
||||
right: @padding-xs;
|
||||
|
||||
&-icon {
|
||||
margin-right: 0 !important;
|
||||
color: @text-color-secondary;
|
||||
font-style: normal;
|
||||
.iconfont-size-under-12px(10px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-item-group-list {
|
||||
margin: 0 8px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
&-submenu-title {
|
||||
padding-right: @control-padding-horizontal + @font-size-sm;
|
||||
}
|
||||
|
||||
&-submenu-vertical {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&-submenu-vertical > & {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
min-width: 100%;
|
||||
margin-left: 4px;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
|
||||
&-submenu&-submenu-disabled .@{dropdown-prefix-cls}-menu-submenu-title {
|
||||
&,
|
||||
.@{dropdown-prefix-cls}-menu-submenu-arrow-icon {
|
||||
color: @disabled-color;
|
||||
background-color: @dropdown-menu-submenu-disabled-bg;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/19264
|
||||
&-submenu-selected &-submenu-title {
|
||||
color: @primary-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.slide-down-enter.slide-down-enter-active&-placement-bottomLeft,
|
||||
&.slide-down-appear.slide-down-appear-active&-placement-bottomLeft,
|
||||
&.slide-down-enter.slide-down-enter-active&-placement-bottomCenter,
|
||||
&.slide-down-appear.slide-down-appear-active&-placement-bottomCenter,
|
||||
&.slide-down-enter.slide-down-enter-active&-placement-bottomRight,
|
||||
&.slide-down-appear.slide-down-appear-active&-placement-bottomRight {
|
||||
animation-name: antSlideUpIn;
|
||||
}
|
||||
|
||||
&.slide-up-enter.slide-up-enter-active&-placement-topLeft,
|
||||
&.slide-up-appear.slide-up-appear-active&-placement-topLeft,
|
||||
&.slide-up-enter.slide-up-enter-active&-placement-topCenter,
|
||||
&.slide-up-appear.slide-up-appear-active&-placement-topCenter,
|
||||
&.slide-up-enter.slide-up-enter-active&-placement-topRight,
|
||||
&.slide-up-appear.slide-up-appear-active&-placement-topRight {
|
||||
animation-name: antSlideDownIn;
|
||||
}
|
||||
|
||||
&.slide-down-leave.slide-down-leave-active&-placement-bottomLeft,
|
||||
&.slide-down-leave.slide-down-leave-active&-placement-bottomCenter,
|
||||
&.slide-down-leave.slide-down-leave-active&-placement-bottomRight {
|
||||
animation-name: antSlideUpOut;
|
||||
}
|
||||
|
||||
&.slide-up-leave.slide-up-leave-active&-placement-topLeft,
|
||||
&.slide-up-leave.slide-up-leave-active&-placement-topCenter,
|
||||
&.slide-up-leave.slide-up-leave-active&-placement-topRight {
|
||||
animation-name: antSlideDownOut;
|
||||
}
|
||||
}
|
||||
|
||||
.@{dropdown-prefix-cls}-trigger,
|
||||
.@{dropdown-prefix-cls}-link {
|
||||
> .@{iconfont-css-prefix}.@{iconfont-css-prefix}-down {
|
||||
.iconfont-size-under-12px(10px);
|
||||
}
|
||||
}
|
||||
|
||||
.@{dropdown-prefix-cls}-button {
|
||||
white-space: nowrap;
|
||||
|
||||
&.@{ant-prefix}-btn-group > .@{ant-prefix}-btn:last-child:not(:first-child) {
|
||||
padding-right: @padding-xs;
|
||||
padding-left: @padding-xs;
|
||||
}
|
||||
.@{iconfont-css-prefix}.@{iconfont-css-prefix}-down {
|
||||
.iconfont-size-under-12px(10px);
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/4903
|
||||
.@{dropdown-prefix-cls}-menu-dark {
|
||||
&,
|
||||
.@{dropdown-prefix-cls}-menu {
|
||||
background: @menu-dark-bg;
|
||||
}
|
||||
.@{dropdown-prefix-cls}-menu-item,
|
||||
.@{dropdown-prefix-cls}-menu-submenu-title,
|
||||
.@{dropdown-prefix-cls}-menu-item > a {
|
||||
color: @text-color-secondary-dark;
|
||||
.@{dropdown-prefix-cls}-menu-submenu-arrow::after {
|
||||
color: @text-color-secondary-dark;
|
||||
}
|
||||
&:hover {
|
||||
color: @text-color-inverse;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
.@{dropdown-prefix-cls}-menu-item-selected {
|
||||
&,
|
||||
&:hover,
|
||||
> a {
|
||||
color: @text-color-inverse;
|
||||
background: @primary-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import './rtl';
|
||||
73
web/node_modules/antd/es/dropdown/style/rtl.less
generated
vendored
Normal file
73
web/node_modules/antd/es/dropdown/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
||||
|
||||
.@{dropdown-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
&::before {
|
||||
.@{dropdown-prefix-cls}-rtl& {
|
||||
right: -7px;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&-menu {
|
||||
&-submenu-popup {
|
||||
ul,
|
||||
li {
|
||||
.@{dropdown-prefix-cls}-rtl & {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-item,
|
||||
&-submenu-title {
|
||||
.@{dropdown-prefix-cls}-rtl & {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
> .anticon:first-child,
|
||||
> span > .anticon:first-child {
|
||||
.@{dropdown-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.@{dropdown-prefix-cls}-menu-submenu-arrow {
|
||||
.@{dropdown-prefix-cls}-rtl & {
|
||||
right: auto;
|
||||
left: @padding-xs;
|
||||
}
|
||||
|
||||
&-icon {
|
||||
.@{dropdown-prefix-cls}-rtl & {
|
||||
margin-left: 0 !important;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-submenu-title {
|
||||
.@{dropdown-prefix-cls}-rtl & {
|
||||
padding-right: @control-padding-horizontal;
|
||||
padding-left: @control-padding-horizontal + @font-size-sm;
|
||||
}
|
||||
}
|
||||
|
||||
&-submenu-vertical > & {
|
||||
.@{dropdown-prefix-cls}-rtl & {
|
||||
right: 100%;
|
||||
left: 0;
|
||||
margin-right: 4px;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user