Latest updates from IceHrmPro
This commit is contained in:
11
web/node_modules/antd/es/tabs/TabBar.d.ts
generated
vendored
Normal file
11
web/node_modules/antd/es/tabs/TabBar.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as React from 'react';
|
||||
import { TabsProps } from './index';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
export default class TabBar extends React.Component<TabsProps> {
|
||||
static defaultProps: {
|
||||
animated: boolean;
|
||||
type: "line" | "card" | "editable-card" | undefined;
|
||||
};
|
||||
renderTabBar: ({ direction }: ConfigConsumerProps) => 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>)>;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
123
web/node_modules/antd/es/tabs/TabBar.js
generated
vendored
Normal file
123
web/node_modules/antd/es/tabs/TabBar.js
generated
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
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 _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 _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 ScrollableInkTabBar from "rc-tabs/es/ScrollableInkTabBar";
|
||||
import classNames from 'classnames';
|
||||
import UpOutlined from '@ant-design/icons/UpOutlined';
|
||||
import LeftOutlined from '@ant-design/icons/LeftOutlined';
|
||||
import DownOutlined from '@ant-design/icons/DownOutlined';
|
||||
import RightOutlined from '@ant-design/icons/RightOutlined';
|
||||
import { ConfigConsumer } from '../config-provider';
|
||||
|
||||
var TabBar = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(TabBar, _React$Component);
|
||||
|
||||
var _super = _createSuper(TabBar);
|
||||
|
||||
function TabBar() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, TabBar);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
|
||||
_this.renderTabBar = function (_ref) {
|
||||
var _classNames;
|
||||
|
||||
var direction = _ref.direction;
|
||||
var _this$props = _this.props,
|
||||
tabBarStyle = _this$props.tabBarStyle,
|
||||
animated = _this$props.animated,
|
||||
renderTabBar = _this$props.renderTabBar,
|
||||
tabBarExtraContent = _this$props.tabBarExtraContent,
|
||||
tabPosition = _this$props.tabPosition,
|
||||
prefixCls = _this$props.prefixCls,
|
||||
className = _this$props.className,
|
||||
size = _this$props.size,
|
||||
type = _this$props.type;
|
||||
var inkBarAnimated = _typeof(animated) === 'object' ? animated.inkBar : animated;
|
||||
var isVertical = tabPosition === 'left' || tabPosition === 'right';
|
||||
var prevIconComponent = isVertical ? UpOutlined : LeftOutlined;
|
||||
var nextIconComponent = isVertical ? DownOutlined : RightOutlined;
|
||||
|
||||
if (direction === 'rtl' && !isVertical) {
|
||||
prevIconComponent = RightOutlined;
|
||||
nextIconComponent = LeftOutlined;
|
||||
}
|
||||
|
||||
var prevIcon = /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(prefixCls, "-tab-prev-icon")
|
||||
}, React.createElement(prevIconComponent, {
|
||||
className: "".concat(prefixCls, "-tab-prev-icon-target")
|
||||
}));
|
||||
var nextIcon = /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(prefixCls, "-tab-next-icon")
|
||||
}, React.createElement(nextIconComponent, {
|
||||
className: "".concat(prefixCls, "-tab-next-icon-target")
|
||||
})); // Additional className for style usage
|
||||
|
||||
var cls = classNames("".concat(prefixCls, "-").concat(tabPosition, "-bar"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(size, "-bar"), !!size), _defineProperty(_classNames, "".concat(prefixCls, "-card-bar"), type && type.indexOf('card') >= 0), _classNames), className);
|
||||
|
||||
var renderProps = _extends(_extends({}, _this.props), {
|
||||
children: null,
|
||||
inkBarAnimated: inkBarAnimated,
|
||||
extraContent: tabBarExtraContent,
|
||||
style: tabBarStyle,
|
||||
prevIcon: prevIcon,
|
||||
nextIcon: nextIcon,
|
||||
className: cls
|
||||
});
|
||||
|
||||
var RenderTabBar;
|
||||
|
||||
if (renderTabBar) {
|
||||
RenderTabBar = renderTabBar(renderProps, ScrollableInkTabBar);
|
||||
} else {
|
||||
RenderTabBar = /*#__PURE__*/React.createElement(ScrollableInkTabBar, renderProps);
|
||||
}
|
||||
|
||||
return React.cloneElement(RenderTabBar);
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(TabBar, [{
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderTabBar);
|
||||
}
|
||||
}]);
|
||||
|
||||
return TabBar;
|
||||
}(React.Component);
|
||||
|
||||
export { TabBar as default };
|
||||
TabBar.defaultProps = {
|
||||
animated: true,
|
||||
type: 'line'
|
||||
};
|
||||
53
web/node_modules/antd/es/tabs/index.d.ts
generated
vendored
Normal file
53
web/node_modules/antd/es/tabs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import * as React from 'react';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
export declare type TabsType = 'line' | 'card' | 'editable-card';
|
||||
export declare type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
|
||||
export interface TabsProps {
|
||||
activeKey?: string;
|
||||
defaultActiveKey?: string;
|
||||
hideAdd?: boolean;
|
||||
onChange?: (activeKey: string) => void;
|
||||
onTabClick?: Function;
|
||||
onPrevClick?: React.MouseEventHandler<HTMLElement>;
|
||||
onNextClick?: React.MouseEventHandler<HTMLElement>;
|
||||
tabBarExtraContent?: React.ReactNode | null;
|
||||
tabBarStyle?: React.CSSProperties;
|
||||
type?: TabsType;
|
||||
tabPosition?: TabsPosition;
|
||||
onEdit?: (targetKey: string | React.MouseEvent<HTMLElement>, action: 'add' | 'remove') => void;
|
||||
size?: 'large' | 'default' | 'small';
|
||||
style?: React.CSSProperties;
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
animated?: boolean | {
|
||||
inkBar: boolean;
|
||||
tabPane: boolean;
|
||||
};
|
||||
tabBarGutter?: number;
|
||||
renderTabBar?: (props: TabsProps, DefaultTabBar: React.ComponentClass<any>) => React.ReactElement<any>;
|
||||
destroyInactiveTabPane?: boolean;
|
||||
keyboard?: boolean;
|
||||
}
|
||||
export interface TabPaneProps {
|
||||
/** 选项卡头显示文字 */
|
||||
tab?: React.ReactNode | string;
|
||||
style?: React.CSSProperties;
|
||||
closable?: boolean;
|
||||
className?: string;
|
||||
disabled?: boolean;
|
||||
forceRender?: boolean;
|
||||
key?: string;
|
||||
}
|
||||
export default class Tabs extends React.Component<TabsProps, any> {
|
||||
static TabPane: React.ClassicComponentClass<TabPaneProps>;
|
||||
static defaultProps: {
|
||||
hideAdd: boolean;
|
||||
tabPosition: TabsPosition;
|
||||
};
|
||||
componentDidMount(): void;
|
||||
removeTab: (targetKey: string, e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
||||
handleChange: (activeKey: string) => void;
|
||||
createNewTab: (targetKey: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
||||
renderTabs: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
207
web/node_modules/antd/es/tabs/index.js
generated
vendored
Normal file
207
web/node_modules/antd/es/tabs/index.js
generated
vendored
Normal file
@@ -0,0 +1,207 @@
|
||||
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 _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 _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 * as ReactDOM from 'react-dom';
|
||||
import RcTabs, { TabPane } from 'rc-tabs';
|
||||
import TabContent from "rc-tabs/es/TabContent";
|
||||
import classNames from 'classnames';
|
||||
import omit from 'omit.js';
|
||||
import CloseOutlined from '@ant-design/icons/CloseOutlined';
|
||||
import PlusOutlined from '@ant-design/icons/PlusOutlined';
|
||||
import TabBar from './TabBar';
|
||||
import { ConfigConsumer } from '../config-provider';
|
||||
import { isFlexSupported } from '../_util/styleChecker';
|
||||
|
||||
var Tabs = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(Tabs, _React$Component);
|
||||
|
||||
var _super = _createSuper(Tabs);
|
||||
|
||||
function Tabs() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, Tabs);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
|
||||
_this.removeTab = function (targetKey, e) {
|
||||
e.stopPropagation();
|
||||
|
||||
if (!targetKey) {
|
||||
return;
|
||||
}
|
||||
|
||||
var onEdit = _this.props.onEdit;
|
||||
|
||||
if (onEdit) {
|
||||
onEdit(targetKey, 'remove');
|
||||
}
|
||||
};
|
||||
|
||||
_this.handleChange = function (activeKey) {
|
||||
var onChange = _this.props.onChange;
|
||||
|
||||
if (onChange) {
|
||||
onChange(activeKey);
|
||||
}
|
||||
};
|
||||
|
||||
_this.createNewTab = function (targetKey) {
|
||||
var onEdit = _this.props.onEdit;
|
||||
|
||||
if (onEdit) {
|
||||
onEdit(targetKey, 'add');
|
||||
}
|
||||
};
|
||||
|
||||
_this.renderTabs = function (_ref) {
|
||||
var _classNames;
|
||||
|
||||
var getPrefixCls = _ref.getPrefixCls,
|
||||
direction = _ref.direction;
|
||||
var _this$props = _this.props,
|
||||
customizePrefixCls = _this$props.prefixCls,
|
||||
_this$props$className = _this$props.className,
|
||||
className = _this$props$className === void 0 ? '' : _this$props$className,
|
||||
size = _this$props.size,
|
||||
_this$props$type = _this$props.type,
|
||||
type = _this$props$type === void 0 ? 'line' : _this$props$type,
|
||||
tabPosition = _this$props.tabPosition,
|
||||
children = _this$props.children,
|
||||
_this$props$animated = _this$props.animated,
|
||||
animated = _this$props$animated === void 0 ? true : _this$props$animated,
|
||||
hideAdd = _this$props.hideAdd;
|
||||
var tabBarExtraContent = _this.props.tabBarExtraContent;
|
||||
var tabPaneAnimated = _typeof(animated) === 'object' ? animated.tabPane : animated; // card tabs should not have animation
|
||||
|
||||
if (type !== 'line') {
|
||||
tabPaneAnimated = 'animated' in _this.props ? tabPaneAnimated : false;
|
||||
}
|
||||
|
||||
var prefixCls = getPrefixCls('tabs', customizePrefixCls);
|
||||
var cls = classNames(className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-vertical"), tabPosition === 'left' || tabPosition === 'right'), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), !!size), _defineProperty(_classNames, "".concat(prefixCls, "-card"), type.indexOf('card') >= 0), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), true), _defineProperty(_classNames, "".concat(prefixCls, "-no-animation"), !tabPaneAnimated), _classNames)); // only card type tabs can be added and closed
|
||||
|
||||
var childrenWithClose = [];
|
||||
|
||||
if (type === 'editable-card') {
|
||||
childrenWithClose = [];
|
||||
React.Children.forEach(children, function (child, index) {
|
||||
if (!React.isValidElement(child)) return child;
|
||||
var closable = child.props.closable;
|
||||
closable = typeof closable === 'undefined' ? true : closable;
|
||||
var closeIcon = closable ? /*#__PURE__*/React.createElement(CloseOutlined, {
|
||||
className: "".concat(prefixCls, "-close-x"),
|
||||
onClick: function onClick(e) {
|
||||
return _this.removeTab(child.key, e);
|
||||
}
|
||||
}) : null;
|
||||
childrenWithClose.push(React.cloneElement(child, {
|
||||
tab: /*#__PURE__*/React.createElement("div", {
|
||||
className: closable ? undefined : "".concat(prefixCls, "-tab-unclosable")
|
||||
}, child.props.tab, closeIcon),
|
||||
key: child.key || index
|
||||
}));
|
||||
}); // Add new tab handler
|
||||
|
||||
if (!hideAdd) {
|
||||
tabBarExtraContent = /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlusOutlined, {
|
||||
className: "".concat(prefixCls, "-new-tab"),
|
||||
onClick: _this.createNewTab
|
||||
}), tabBarExtraContent);
|
||||
}
|
||||
}
|
||||
|
||||
tabBarExtraContent = tabBarExtraContent ? /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-extra-content")
|
||||
}, tabBarExtraContent) : null;
|
||||
|
||||
var tabBarProps = __rest(_this.props, []);
|
||||
|
||||
var contentCls = classNames("".concat(prefixCls, "-").concat(tabPosition, "-content"), type.indexOf('card') >= 0 && "".concat(prefixCls, "-card-content"));
|
||||
return /*#__PURE__*/React.createElement(RcTabs, _extends({}, _this.props, {
|
||||
prefixCls: prefixCls,
|
||||
className: cls,
|
||||
tabBarPosition: tabPosition,
|
||||
direction: direction,
|
||||
renderTabBar: function renderTabBar() {
|
||||
return /*#__PURE__*/React.createElement(TabBar, _extends({}, omit(tabBarProps, ['className']), {
|
||||
tabBarExtraContent: tabBarExtraContent
|
||||
}));
|
||||
},
|
||||
renderTabContent: function renderTabContent() {
|
||||
return /*#__PURE__*/React.createElement(TabContent, {
|
||||
className: contentCls,
|
||||
animated: tabPaneAnimated,
|
||||
animatedWithMargin: true
|
||||
});
|
||||
},
|
||||
onChange: _this.handleChange
|
||||
}), childrenWithClose.length > 0 ? childrenWithClose : children);
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(Tabs, [{
|
||||
key: "componentDidMount",
|
||||
value: function componentDidMount() {
|
||||
var NO_FLEX = ' no-flex';
|
||||
var tabNode = ReactDOM.findDOMNode(this);
|
||||
|
||||
if (tabNode && !isFlexSupported && tabNode.className.indexOf(NO_FLEX) === -1) {
|
||||
tabNode.className += NO_FLEX;
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderTabs);
|
||||
}
|
||||
}]);
|
||||
|
||||
return Tabs;
|
||||
}(React.Component);
|
||||
|
||||
export { Tabs as default };
|
||||
Tabs.TabPane = TabPane;
|
||||
Tabs.defaultProps = {
|
||||
hideAdd: false,
|
||||
tabPosition: 'top'
|
||||
};
|
||||
183
web/node_modules/antd/es/tabs/style/card-style.less
generated
vendored
Normal file
183
web/node_modules/antd/es/tabs/style/card-style.less
generated
vendored
Normal file
@@ -0,0 +1,183 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@tab-prefix-cls: ~'@{ant-prefix}-tabs';
|
||||
|
||||
// card style
|
||||
.@{tab-prefix-cls} {
|
||||
&&-card &-card-bar &-ink-bar {
|
||||
visibility: hidden;
|
||||
}
|
||||
&&-card &-card-bar &-tab {
|
||||
margin: 0;
|
||||
margin-right: @tabs-card-gutter;
|
||||
padding: @tabs-card-horizontal-padding;
|
||||
line-height: 22px;
|
||||
background: @tabs-card-head-background;
|
||||
border: @border-width-base @border-style-base @border-color-split;
|
||||
border-radius: @border-radius-base @border-radius-base 0 0;
|
||||
transition: all 0.3s @ease-in-out;
|
||||
}
|
||||
&&-card &-card-bar &-tab-active {
|
||||
color: @tabs-card-active-color;
|
||||
background: @component-background;
|
||||
border-color: @border-color-split;
|
||||
border-bottom: @border-width-base solid @component-background;
|
||||
|
||||
&::before {
|
||||
border-top: @tabs-card-tab-active-border-top;
|
||||
}
|
||||
}
|
||||
&&-small &-card-bar &-tab {
|
||||
padding: @tabs-card-horizontal-padding-sm;
|
||||
}
|
||||
&&-card &-card-bar &-tab-disabled {
|
||||
color: @disabled-color;
|
||||
}
|
||||
&&-card &-card-bar &-tab-inactive {
|
||||
padding: 0;
|
||||
}
|
||||
&&-card &-card-bar &-nav-wrap {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
&&-card &-card-bar &-tab &-close-x {
|
||||
width: 16px;
|
||||
height: @font-size-base;
|
||||
margin-right: -5px;
|
||||
margin-left: 3px;
|
||||
overflow: hidden;
|
||||
color: @text-color-secondary;
|
||||
font-size: @font-size-sm;
|
||||
vertical-align: middle;
|
||||
transition: all 0.3s;
|
||||
&:hover {
|
||||
color: @heading-color;
|
||||
}
|
||||
}
|
||||
|
||||
&&-card &-card-content > &-tabpane,
|
||||
&&-editable-card &-card-content > &-tabpane {
|
||||
transition: none !important;
|
||||
&-inactive {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
&&-card &-card-bar &-tab:hover .@{iconfont-css-prefix}-close {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&-extra-content {
|
||||
line-height: @tabs-title-font-size * @line-height-base + extract(@tabs-horizontal-padding, 1) *
|
||||
2;
|
||||
|
||||
.@{tab-prefix-cls}-new-tab {
|
||||
position: relative;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: @text-color;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
border: @border-width-base @border-style-base @border-color-split;
|
||||
border-radius: @border-radius-base;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
&:hover {
|
||||
color: @tabs-card-active-color;
|
||||
border-color: @tabs-card-active-color;
|
||||
}
|
||||
svg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/17865
|
||||
&&-large &-extra-content {
|
||||
line-height: @tabs-title-font-size-lg * @line-height-base +
|
||||
extract(@tabs-horizontal-padding-lg, 1) * 2;
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/17865
|
||||
&&-small &-extra-content {
|
||||
line-height: @tabs-title-font-size-sm * @line-height-base +
|
||||
extract(@tabs-horizontal-padding-sm, 1) * 2;
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/17865
|
||||
&&-card &-extra-content {
|
||||
line-height: @tabs-card-height;
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/4669
|
||||
&-vertical&-card &-card-bar&-left-bar,
|
||||
&-vertical&-card &-card-bar&-right-bar {
|
||||
.@{tab-prefix-cls}-nav-container {
|
||||
height: 100%;
|
||||
}
|
||||
.@{tab-prefix-cls}-tab {
|
||||
margin-bottom: @margin-sm;
|
||||
border-bottom: @border-width-base @border-style-base @border-color-split;
|
||||
&-active {
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
&:last-child {
|
||||
margin-bottom: @margin-sm;
|
||||
}
|
||||
}
|
||||
.@{tab-prefix-cls}-new-tab {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical&-card&-left &-card-bar&-left-bar {
|
||||
.@{tab-prefix-cls}-nav-wrap {
|
||||
margin-right: 0;
|
||||
}
|
||||
.@{tab-prefix-cls}-tab {
|
||||
margin-right: 1px;
|
||||
border-right: 0;
|
||||
border-radius: @border-radius-base 0 0 @border-radius-base;
|
||||
&-active {
|
||||
margin-right: -1px;
|
||||
padding-right: @padding-md + 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-vertical&-card&-right &-card-bar&-right-bar {
|
||||
.@{tab-prefix-cls}-nav-wrap {
|
||||
margin-left: 0;
|
||||
}
|
||||
.@{tab-prefix-cls}-tab {
|
||||
margin-left: 1px;
|
||||
border-left: 0;
|
||||
border-radius: 0 @border-radius-base @border-radius-base 0;
|
||||
&-active {
|
||||
margin-left: -1px;
|
||||
padding-left: @padding-md + 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/9104
|
||||
& &-card-bar&-bottom-bar &-tab {
|
||||
height: auto;
|
||||
border-top-color: @border-color-split;
|
||||
border-bottom: @border-width-base @border-style-base @border-color-split;
|
||||
border-radius: 0 0 @border-radius-base @border-radius-base;
|
||||
}
|
||||
|
||||
& &-card-bar&-bottom-bar &-tab-active {
|
||||
color: @primary-color;
|
||||
border-top-color: @component-background;
|
||||
}
|
||||
}
|
||||
|
||||
@import './card-style.rtl.less';
|
||||
20
web/node_modules/antd/es/tabs/style/card-style.rtl.less
generated
vendored
Normal file
20
web/node_modules/antd/es/tabs/style/card-style.rtl.less
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@tab-prefix-cls: ~'@{ant-prefix}-tabs';
|
||||
|
||||
// card style
|
||||
.@{tab-prefix-cls} {
|
||||
&&-card &-card-bar &-tab &-close-x {
|
||||
.@{tab-prefix-cls}-rtl& {
|
||||
margin-right: 3px;
|
||||
margin-left: -5px;
|
||||
}
|
||||
}
|
||||
|
||||
&-extra-content {
|
||||
.@{tab-prefix-cls}-rtl & {
|
||||
float: left !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
web/node_modules/antd/es/tabs/style/css.js
generated
vendored
Normal file
2
web/node_modules/antd/es/tabs/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import '../../style/index.css';
|
||||
import './index.css';
|
||||
643
web/node_modules/antd/es/tabs/style/index.css
generated
vendored
Normal file
643
web/node_modules/antd/es/tabs/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,643 @@
|
||||
/* 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-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-ink-bar {
|
||||
visibility: hidden;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {
|
||||
margin: 0;
|
||||
margin-right: 2px;
|
||||
padding: 8px 16px;
|
||||
line-height: 22px;
|
||||
background: #fafafa;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 2px 2px 0 0;
|
||||
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
|
||||
color: #1890ff;
|
||||
background: #fff;
|
||||
border-color: #f0f0f0;
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active::before {
|
||||
border-top: 2px solid transparent;
|
||||
}
|
||||
.ant-tabs.ant-tabs-small .ant-tabs-card-bar .ant-tabs-tab {
|
||||
padding: 6px 16px;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-disabled {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-inactive {
|
||||
padding: 0;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-wrap {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x {
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
margin-right: -5px;
|
||||
margin-left: 3px;
|
||||
overflow: hidden;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-size: 12px;
|
||||
vertical-align: middle;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x:hover {
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-content > .ant-tabs-tabpane,
|
||||
.ant-tabs.ant-tabs-editable-card .ant-tabs-card-content > .ant-tabs-tabpane {
|
||||
-webkit-transition: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-content > .ant-tabs-tabpane-inactive,
|
||||
.ant-tabs.ant-tabs-editable-card .ant-tabs-card-content > .ant-tabs-tabpane-inactive {
|
||||
overflow: hidden;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab:hover .anticon-close {
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-tabs-extra-content {
|
||||
line-height: 46.001px;
|
||||
}
|
||||
.ant-tabs-extra-content .ant-tabs-new-tab {
|
||||
position: relative;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-tabs-extra-content .ant-tabs-new-tab:hover {
|
||||
color: #1890ff;
|
||||
border-color: #1890ff;
|
||||
}
|
||||
.ant-tabs-extra-content .ant-tabs-new-tab svg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.ant-tabs.ant-tabs-large .ant-tabs-extra-content {
|
||||
line-height: 57.144px;
|
||||
}
|
||||
.ant-tabs.ant-tabs-small .ant-tabs-extra-content {
|
||||
line-height: 38.001px;
|
||||
}
|
||||
.ant-tabs.ant-tabs-card .ant-tabs-extra-content {
|
||||
line-height: 40px;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-nav-container,
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-nav-container {
|
||||
height: 100%;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab,
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab {
|
||||
margin-bottom: 12px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab-active,
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab-active {
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab:last-child,
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab:last-child {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-new-tab,
|
||||
.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-new-tab {
|
||||
width: 90%;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card.ant-tabs-left .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-nav-wrap {
|
||||
margin-right: 0;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card.ant-tabs-left .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab {
|
||||
margin-right: 1px;
|
||||
border-right: 0;
|
||||
border-radius: 2px 0 0 2px;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card.ant-tabs-left .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab-active {
|
||||
margin-right: -1px;
|
||||
padding-right: 18px;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card.ant-tabs-right .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-nav-wrap {
|
||||
margin-left: 0;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card.ant-tabs-right .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab {
|
||||
margin-left: 1px;
|
||||
border-left: 0;
|
||||
border-radius: 0 2px 2px 0;
|
||||
}
|
||||
.ant-tabs-vertical.ant-tabs-card.ant-tabs-right .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab-active {
|
||||
margin-left: -1px;
|
||||
padding-left: 18px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-card-bar.ant-tabs-bottom-bar .ant-tabs-tab {
|
||||
height: auto;
|
||||
border-top-color: #f0f0f0;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
border-radius: 0 0 2px 2px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-card-bar.ant-tabs-bottom-bar .ant-tabs-tab-active {
|
||||
color: #1890ff;
|
||||
border-top-color: #fff;
|
||||
}
|
||||
.ant-tabs-rtl.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x {
|
||||
margin-right: 3px;
|
||||
margin-left: -5px;
|
||||
}
|
||||
.ant-tabs-rtl .ant-tabs-extra-content {
|
||||
float: left !important;
|
||||
}
|
||||
.ant-tabs {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
list-style: none;
|
||||
-webkit-font-feature-settings: 'tnum';
|
||||
font-feature-settings: 'tnum';
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.ant-tabs::before {
|
||||
display: table;
|
||||
content: '';
|
||||
}
|
||||
.ant-tabs::after {
|
||||
display: table;
|
||||
clear: both;
|
||||
content: '';
|
||||
}
|
||||
.ant-tabs-ink-bar {
|
||||
position: absolute;
|
||||
bottom: 1px;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background-color: #1890ff;
|
||||
-webkit-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
.ant-tabs-bar {
|
||||
margin: 0 0 16px 0;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
outline: none;
|
||||
-webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-tabs-nav-container {
|
||||
position: relative;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: -1px;
|
||||
overflow: hidden;
|
||||
font-size: 14px;
|
||||
line-height: 1.5715;
|
||||
white-space: nowrap;
|
||||
-webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-tabs-nav-container::before {
|
||||
display: table;
|
||||
content: '';
|
||||
}
|
||||
.ant-tabs-nav-container::after {
|
||||
display: table;
|
||||
clear: both;
|
||||
content: '';
|
||||
}
|
||||
.ant-tabs-nav-container-scrolling {
|
||||
padding-right: 32px;
|
||||
padding-left: 32px;
|
||||
}
|
||||
.ant-tabs-bottom .ant-tabs-bottom-bar {
|
||||
margin-top: 16px;
|
||||
margin-bottom: 0;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
border-bottom: none;
|
||||
}
|
||||
.ant-tabs-bottom .ant-tabs-bottom-bar .ant-tabs-ink-bar {
|
||||
top: 1px;
|
||||
bottom: auto;
|
||||
}
|
||||
.ant-tabs-bottom .ant-tabs-bottom-bar .ant-tabs-nav-container {
|
||||
margin-top: -1px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.ant-tabs-tab-prev,
|
||||
.ant-tabs-tab-next {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
text-align: center;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
-webkit-transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
.ant-tabs-tab-prev.ant-tabs-tab-arrow-show,
|
||||
.ant-tabs-tab-next.ant-tabs-tab-arrow-show {
|
||||
width: 32px;
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.ant-tabs-tab-prev:hover,
|
||||
.ant-tabs-tab-next:hover {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
.ant-tabs-tab-prev-icon,
|
||||
.ant-tabs-tab-next-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
line-height: inherit;
|
||||
text-align: center;
|
||||
text-transform: none;
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.ant-tabs-tab-prev-icon-target,
|
||||
.ant-tabs-tab-next-icon-target {
|
||||
display: block;
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
}
|
||||
.ant-tabs-tab-btn-disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-tabs-tab-btn-disabled,
|
||||
.ant-tabs-tab-btn-disabled:hover {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.ant-tabs-tab-next {
|
||||
right: 2px;
|
||||
}
|
||||
.ant-tabs-tab-prev {
|
||||
left: 0;
|
||||
}
|
||||
:root .ant-tabs-tab-prev {
|
||||
-webkit-filter: none;
|
||||
filter: none;
|
||||
}
|
||||
.ant-tabs-nav-wrap {
|
||||
margin-bottom: -1px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.ant-tabs-nav-scroll {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ant-tabs-nav {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
-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-tabs-nav::before,
|
||||
.ant-tabs-nav::after {
|
||||
display: table;
|
||||
content: ' ';
|
||||
}
|
||||
.ant-tabs-nav::after {
|
||||
clear: both;
|
||||
}
|
||||
.ant-tabs-nav .ant-tabs-tab {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
margin: 0 32px 0 0;
|
||||
padding: 12px 0;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
-webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.ant-tabs-nav .ant-tabs-tab::before {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
border-top: 2px solid transparent;
|
||||
border-radius: 2px 2px 0 0;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
content: '';
|
||||
pointer-events: none;
|
||||
}
|
||||
.ant-tabs-nav .ant-tabs-tab:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.ant-tabs-nav .ant-tabs-tab:hover {
|
||||
color: #40a9ff;
|
||||
}
|
||||
.ant-tabs-nav .ant-tabs-tab:active {
|
||||
color: #096dd9;
|
||||
}
|
||||
.ant-tabs-nav .ant-tabs-tab .anticon {
|
||||
margin-right: 12px;
|
||||
}
|
||||
.ant-tabs-nav .ant-tabs-tab-active {
|
||||
color: #1890ff;
|
||||
font-weight: 500;
|
||||
outline: none;
|
||||
}
|
||||
.ant-tabs-nav .ant-tabs-tab-disabled,
|
||||
.ant-tabs-nav .ant-tabs-tab-disabled:hover {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-tabs .ant-tabs-large-bar .ant-tabs-nav-container {
|
||||
font-size: 16px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-large-bar .ant-tabs-tab {
|
||||
padding: 16px 0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-small-bar .ant-tabs-nav-container {
|
||||
font-size: 14px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-small-bar .ant-tabs-tab {
|
||||
padding: 8px 0;
|
||||
}
|
||||
.ant-tabs-content::before {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
content: '';
|
||||
}
|
||||
.ant-tabs .ant-tabs-tabpane {
|
||||
outline: none;
|
||||
}
|
||||
.ant-tabs .ant-tabs-top-content,
|
||||
.ant-tabs .ant-tabs-bottom-content {
|
||||
width: 100%;
|
||||
}
|
||||
.ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane,
|
||||
.ant-tabs .ant-tabs-bottom-content > .ant-tabs-tabpane {
|
||||
-ms-flex-negative: 0;
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
-webkit-backface-visibility: hidden;
|
||||
opacity: 1;
|
||||
-webkit-transition: opacity 0.45s;
|
||||
transition: opacity 0.45s;
|
||||
}
|
||||
.ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane-inactive,
|
||||
.ant-tabs .ant-tabs-bottom-content > .ant-tabs-tabpane-inactive {
|
||||
height: 0;
|
||||
padding: 0 !important;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane-inactive input,
|
||||
.ant-tabs .ant-tabs-bottom-content > .ant-tabs-tabpane-inactive input {
|
||||
visibility: hidden;
|
||||
}
|
||||
.ant-tabs .ant-tabs-top-content.ant-tabs-content-animated,
|
||||
.ant-tabs .ant-tabs-bottom-content.ant-tabs-content-animated {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: horizontal;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: row;
|
||||
flex-direction: row;
|
||||
-webkit-transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
will-change: margin-left;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar,
|
||||
.ant-tabs .ant-tabs-right-bar {
|
||||
height: 100%;
|
||||
border-bottom: 0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-tab-arrow-show,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-tab-arrow-show {
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-tab,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-tab {
|
||||
display: block;
|
||||
float: none;
|
||||
margin: 0 0 16px 0;
|
||||
padding: 8px 24px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-tab:last-child,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-tab:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-extra-content,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-extra-content {
|
||||
text-align: center;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav-scroll,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav-scroll {
|
||||
width: auto;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav-container,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav-container,
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav-wrap,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav-wrap {
|
||||
height: 100%;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav-container,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav-container {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav-container.ant-tabs-nav-container-scrolling,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav-container.ant-tabs-nav-container-scrolling {
|
||||
padding: 32px 0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav-wrap,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav-wrap {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav {
|
||||
width: 100%;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-ink-bar,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-ink-bar {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
left: auto;
|
||||
width: 2px;
|
||||
height: 0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-tab-next,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-tab-next {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-tab-prev,
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-tab-prev {
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-content,
|
||||
.ant-tabs .ant-tabs-right-content {
|
||||
width: auto;
|
||||
margin-top: 0 !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar {
|
||||
float: left;
|
||||
margin-right: -1px;
|
||||
margin-bottom: 0;
|
||||
border-right: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-tab {
|
||||
text-align: right;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav-container {
|
||||
margin-right: -1px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-nav-wrap {
|
||||
margin-right: -1px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-bar .ant-tabs-ink-bar {
|
||||
right: 1px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-left-content {
|
||||
padding-left: 24px;
|
||||
border-left: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-right-bar {
|
||||
float: right;
|
||||
margin-bottom: 0;
|
||||
margin-left: -1px;
|
||||
border-left: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav-container {
|
||||
margin-left: -1px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-nav-wrap {
|
||||
margin-left: -1px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-right-bar .ant-tabs-ink-bar {
|
||||
left: 1px;
|
||||
}
|
||||
.ant-tabs .ant-tabs-right-content {
|
||||
padding-right: 24px;
|
||||
border-right: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-tabs-top .ant-tabs-ink-bar-animated,
|
||||
.ant-tabs-bottom .ant-tabs-ink-bar-animated {
|
||||
-webkit-transition: width 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), left 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: width 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), left 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: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), left 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-tabs-left .ant-tabs-ink-bar-animated,
|
||||
.ant-tabs-right .ant-tabs-ink-bar-animated {
|
||||
-webkit-transition: height 0.2s 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: height 0.2s 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: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.2s 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);
|
||||
}
|
||||
.no-flex > .ant-tabs-content > .ant-tabs-content-animated,
|
||||
.ant-tabs-no-animation > .ant-tabs-content > .ant-tabs-content-animated {
|
||||
margin-left: 0 !important;
|
||||
-webkit-transform: none !important;
|
||||
transform: none !important;
|
||||
}
|
||||
.no-flex > .ant-tabs-content > .ant-tabs-tabpane-inactive,
|
||||
.ant-tabs-no-animation > .ant-tabs-content > .ant-tabs-tabpane-inactive {
|
||||
height: 0;
|
||||
padding: 0 !important;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.no-flex > .ant-tabs-content > .ant-tabs-tabpane-inactive input,
|
||||
.ant-tabs-no-animation > .ant-tabs-content > .ant-tabs-tabpane-inactive input {
|
||||
visibility: hidden;
|
||||
}
|
||||
.ant-tabs-left-content > .ant-tabs-content-animated,
|
||||
.ant-tabs-right-content > .ant-tabs-content-animated {
|
||||
margin-left: 0 !important;
|
||||
-webkit-transform: none !important;
|
||||
transform: none !important;
|
||||
}
|
||||
.ant-tabs-left-content > .ant-tabs-tabpane-inactive,
|
||||
.ant-tabs-right-content > .ant-tabs-tabpane-inactive {
|
||||
height: 0;
|
||||
padding: 0 !important;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.ant-tabs-left-content > .ant-tabs-tabpane-inactive input,
|
||||
.ant-tabs-right-content > .ant-tabs-tabpane-inactive input {
|
||||
visibility: hidden;
|
||||
}
|
||||
.ant-tabs-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-tabs-rtl .ant-tabs-ink-bar {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
.ant-tabs-rtl .ant-tabs-tab-next {
|
||||
right: auto;
|
||||
left: 2px;
|
||||
}
|
||||
.ant-tabs-rtl .ant-tabs-tab-prev {
|
||||
right: 2px;
|
||||
left: auto;
|
||||
}
|
||||
.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab {
|
||||
margin: 0 0 0 32px;
|
||||
}
|
||||
.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .anticon {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
2
web/node_modules/antd/es/tabs/style/index.d.ts
generated
vendored
Normal file
2
web/node_modules/antd/es/tabs/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
2
web/node_modules/antd/es/tabs/style/index.js
generated
vendored
Normal file
2
web/node_modules/antd/es/tabs/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
444
web/node_modules/antd/es/tabs/style/index.less
generated
vendored
Normal file
444
web/node_modules/antd/es/tabs/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,444 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
@import './card-style';
|
||||
|
||||
@tab-prefix-cls: ~'@{ant-prefix}-tabs';
|
||||
|
||||
// Hidden content
|
||||
.tabs-hidden-content() {
|
||||
height: 0;
|
||||
padding: 0 !important;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
input {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls} {
|
||||
.reset-component;
|
||||
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.clearfix;
|
||||
|
||||
&-ink-bar {
|
||||
position: absolute;
|
||||
bottom: 1px;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
box-sizing: border-box;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background-color: @tabs-ink-bar-color;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
|
||||
&-bar {
|
||||
margin: @tabs-bar-margin;
|
||||
border-bottom: @border-width-base @border-style-base @border-color-split;
|
||||
outline: none;
|
||||
transition: padding 0.3s @ease-in-out;
|
||||
}
|
||||
|
||||
&-nav-container {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: -1px;
|
||||
overflow: hidden;
|
||||
font-size: @tabs-title-font-size;
|
||||
line-height: @line-height-base;
|
||||
white-space: nowrap;
|
||||
transition: padding 0.3s @ease-in-out;
|
||||
.clearfix;
|
||||
|
||||
&-scrolling {
|
||||
padding-right: @tabs-scrolling-size;
|
||||
padding-left: @tabs-scrolling-size;
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/9104
|
||||
&-bottom &-bottom-bar {
|
||||
margin-top: @margin-md;
|
||||
margin-bottom: 0;
|
||||
border-top: @border-width-base @border-style-base @border-color-split;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&-bottom &-bottom-bar &-ink-bar {
|
||||
top: 1px;
|
||||
bottom: auto;
|
||||
}
|
||||
|
||||
&-bottom &-bottom-bar &-nav-container {
|
||||
margin-top: -1px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&-tab-prev,
|
||||
&-tab-next {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
color: @text-color-secondary;
|
||||
text-align: center;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: width 0.3s @ease-in-out, opacity 0.3s @ease-in-out, color 0.3s @ease-in-out;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
|
||||
&.@{tab-prefix-cls}-tab-arrow-show {
|
||||
width: @tabs-scrolling-size;
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: @text-color;
|
||||
}
|
||||
|
||||
&-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
line-height: inherit;
|
||||
text-align: center;
|
||||
text-transform: none;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
&-target {
|
||||
display: block;
|
||||
.iconfont-size-under-12px(10px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-tab-btn-disabled {
|
||||
cursor: not-allowed;
|
||||
&,
|
||||
&:hover {
|
||||
color: @disabled-color;
|
||||
}
|
||||
}
|
||||
|
||||
&-tab-next {
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
&-tab-prev {
|
||||
left: 0;
|
||||
|
||||
:root & {
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-nav-wrap {
|
||||
margin-bottom: -1px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&-nav-scroll {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&-nav {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
transition: transform 0.3s @ease-in-out;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
display: table;
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
&::after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-tab {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
margin: @tabs-horizontal-margin;
|
||||
padding: @tabs-horizontal-padding;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: color 0.3s @ease-in-out;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
border-top: 2px solid transparent;
|
||||
border-radius: @border-radius-base @border-radius-base 0 0;
|
||||
transition: all 0.3s;
|
||||
content: '';
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: @tabs-hover-color;
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: @tabs-active-color;
|
||||
}
|
||||
|
||||
.@{iconfont-css-prefix} {
|
||||
margin-right: @margin-sm;
|
||||
}
|
||||
|
||||
&-active {
|
||||
color: @tabs-highlight-color;
|
||||
font-weight: 500;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&-disabled {
|
||||
&,
|
||||
&:hover {
|
||||
color: @disabled-color;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-large-bar {
|
||||
.@{tab-prefix-cls}-nav-container {
|
||||
font-size: @tabs-title-font-size-lg;
|
||||
}
|
||||
.@{tab-prefix-cls}-tab {
|
||||
padding: @tabs-horizontal-padding-lg;
|
||||
}
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-small-bar {
|
||||
.@{tab-prefix-cls}-nav-container {
|
||||
font-size: @tabs-title-font-size-sm;
|
||||
}
|
||||
.@{tab-prefix-cls}-tab {
|
||||
padding: @tabs-horizontal-padding-sm;
|
||||
}
|
||||
}
|
||||
|
||||
// Create an empty element to avoid margin collapsing
|
||||
// https://github.com/ant-design/ant-design/issues/18103
|
||||
&-content::before {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-tabpane {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
// Horizontal Content
|
||||
.@{tab-prefix-cls}-top-content,
|
||||
.@{tab-prefix-cls}-bottom-content {
|
||||
width: 100%;
|
||||
> .@{tab-prefix-cls}-tabpane {
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
-webkit-backface-visibility: hidden;
|
||||
opacity: 1;
|
||||
transition: opacity 0.45s;
|
||||
}
|
||||
|
||||
> .@{tab-prefix-cls}-tabpane-inactive {
|
||||
.tabs-hidden-content();
|
||||
}
|
||||
|
||||
&.@{tab-prefix-cls}-content-animated {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
transition: margin-left 0.3s @ease-in-out;
|
||||
will-change: margin-left;
|
||||
}
|
||||
}
|
||||
|
||||
// Vertical Bar
|
||||
.@{tab-prefix-cls}-left-bar,
|
||||
.@{tab-prefix-cls}-right-bar {
|
||||
height: 100%;
|
||||
border-bottom: 0;
|
||||
|
||||
.@{tab-prefix-cls}-tab-arrow-show {
|
||||
width: 100%;
|
||||
height: @tabs-scrolling-size;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-tab {
|
||||
display: block;
|
||||
float: none;
|
||||
margin: @tabs-vertical-margin;
|
||||
padding: @tabs-vertical-padding;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-extra-content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-nav-scroll {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-nav-container,
|
||||
.@{tab-prefix-cls}-nav-wrap {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-nav-container {
|
||||
margin-bottom: 0;
|
||||
|
||||
&.@{tab-prefix-cls}-nav-container-scrolling {
|
||||
padding: @tabs-scrolling-size 0;
|
||||
}
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-nav-wrap {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-nav {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-ink-bar {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
left: auto;
|
||||
width: 2px;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-tab-next {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: @tabs-scrolling-size;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-tab-prev {
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: @tabs-scrolling-size;
|
||||
}
|
||||
}
|
||||
|
||||
// Vertical Content
|
||||
.@{tab-prefix-cls}-left-content,
|
||||
.@{tab-prefix-cls}-right-content {
|
||||
width: auto;
|
||||
margin-top: 0 !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
// Vertical - Left
|
||||
.@{tab-prefix-cls}-left-bar {
|
||||
float: left;
|
||||
margin-right: -1px;
|
||||
margin-bottom: 0;
|
||||
border-right: @border-width-base @border-style-base @border-color-split;
|
||||
.@{tab-prefix-cls}-tab {
|
||||
text-align: right;
|
||||
}
|
||||
.@{tab-prefix-cls}-nav-container {
|
||||
margin-right: -1px;
|
||||
}
|
||||
.@{tab-prefix-cls}-nav-wrap {
|
||||
margin-right: -1px;
|
||||
}
|
||||
.@{tab-prefix-cls}-ink-bar {
|
||||
right: 1px;
|
||||
}
|
||||
}
|
||||
.@{tab-prefix-cls}-left-content {
|
||||
padding-left: @padding-lg;
|
||||
border-left: @border-width-base @border-style-base @border-color-split;
|
||||
}
|
||||
|
||||
// Vertical - Right
|
||||
.@{tab-prefix-cls}-right-bar {
|
||||
float: right;
|
||||
margin-bottom: 0;
|
||||
margin-left: -1px;
|
||||
border-left: @border-width-base @border-style-base @border-color-split;
|
||||
.@{tab-prefix-cls}-nav-container {
|
||||
margin-left: -1px;
|
||||
}
|
||||
.@{tab-prefix-cls}-nav-wrap {
|
||||
margin-left: -1px;
|
||||
}
|
||||
.@{tab-prefix-cls}-ink-bar {
|
||||
left: 1px;
|
||||
}
|
||||
}
|
||||
.@{tab-prefix-cls}-right-content {
|
||||
padding-right: @padding-lg;
|
||||
border-right: @border-width-base @border-style-base @border-color-split;
|
||||
}
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-top .@{tab-prefix-cls}-ink-bar-animated,
|
||||
.@{tab-prefix-cls}-bottom .@{tab-prefix-cls}-ink-bar-animated {
|
||||
transition: transform 0.3s @ease-in-out, width 0.2s @ease-in-out, left 0.3s @ease-in-out;
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-left .@{tab-prefix-cls}-ink-bar-animated,
|
||||
.@{tab-prefix-cls}-right .@{tab-prefix-cls}-ink-bar-animated {
|
||||
transition: transform 0.3s @ease-in-out, height 0.2s @ease-in-out, top 0.3s @ease-in-out;
|
||||
}
|
||||
|
||||
// No animation
|
||||
.tabs-no-animation() {
|
||||
> .@{tab-prefix-cls}-content-animated {
|
||||
margin-left: 0 !important;
|
||||
transform: none !important;
|
||||
}
|
||||
> .@{tab-prefix-cls}-tabpane-inactive {
|
||||
.tabs-hidden-content();
|
||||
}
|
||||
}
|
||||
|
||||
.no-flex,
|
||||
.@{tab-prefix-cls}-no-animation {
|
||||
> .@{tab-prefix-cls}-content {
|
||||
.tabs-no-animation();
|
||||
}
|
||||
}
|
||||
|
||||
.@{tab-prefix-cls}-left-content,
|
||||
.@{tab-prefix-cls}-right-content {
|
||||
.tabs-no-animation();
|
||||
}
|
||||
|
||||
@import './rtl.less';
|
||||
47
web/node_modules/antd/es/tabs/style/rtl.less
generated
vendored
Normal file
47
web/node_modules/antd/es/tabs/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
@import './card-style';
|
||||
|
||||
@tab-prefix-cls: ~'@{ant-prefix}-tabs';
|
||||
|
||||
.@{tab-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
&-ink-bar {
|
||||
.@{tab-prefix-cls}-rtl & {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
&-tab-next {
|
||||
.@{tab-prefix-cls}-rtl & {
|
||||
right: auto;
|
||||
left: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&-tab-prev {
|
||||
.@{tab-prefix-cls}-rtl & {
|
||||
right: 2px;
|
||||
left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
&-nav {
|
||||
.@{tab-prefix-cls}-tab {
|
||||
.@{tab-prefix-cls}-rtl & {
|
||||
margin: @tabs-horizontal-margin-rtl;
|
||||
}
|
||||
|
||||
.@{iconfont-css-prefix} {
|
||||
.@{tab-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: @margin-xs;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user