Latest updates from IceHrmPro
This commit is contained in:
5
web/node_modules/antd/es/pagination/MiniSelect.d.ts
generated
vendored
Normal file
5
web/node_modules/antd/es/pagination/MiniSelect.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as React from 'react';
|
||||
export default class MiniSelect extends React.Component<any, any> {
|
||||
static Option: import("rc-select/lib/Option").OptionFC;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
52
web/node_modules/antd/es/pagination/MiniSelect.js
generated
vendored
Normal file
52
web/node_modules/antd/es/pagination/MiniSelect.js
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||||
|
||||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||
|
||||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
||||
|
||||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||
|
||||
import * as React from 'react';
|
||||
import Select from '../select';
|
||||
|
||||
var MiniSelect = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(MiniSelect, _React$Component);
|
||||
|
||||
var _super = _createSuper(MiniSelect);
|
||||
|
||||
function MiniSelect() {
|
||||
_classCallCheck(this, MiniSelect);
|
||||
|
||||
return _super.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(MiniSelect, [{
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(Select, _extends({
|
||||
size: "small"
|
||||
}, this.props));
|
||||
}
|
||||
}]);
|
||||
|
||||
return MiniSelect;
|
||||
}(React.Component);
|
||||
|
||||
export { MiniSelect as default };
|
||||
MiniSelect.Option = Select.Option;
|
||||
49
web/node_modules/antd/es/pagination/Pagination.d.ts
generated
vendored
Normal file
49
web/node_modules/antd/es/pagination/Pagination.d.ts
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import * as React from 'react';
|
||||
export interface PaginationProps {
|
||||
total?: number;
|
||||
defaultCurrent?: number;
|
||||
disabled?: boolean;
|
||||
current?: number;
|
||||
defaultPageSize?: number;
|
||||
pageSize?: number;
|
||||
onChange?: (page: number, pageSize?: number) => void;
|
||||
hideOnSinglePage?: boolean;
|
||||
showSizeChanger?: boolean;
|
||||
pageSizeOptions?: string[];
|
||||
onShowSizeChange?: (current: number, size: number) => void;
|
||||
showQuickJumper?: boolean | {
|
||||
goButton?: React.ReactNode;
|
||||
};
|
||||
showTitle?: boolean;
|
||||
showTotal?: (total: number, range: [number, number]) => React.ReactNode;
|
||||
size?: 'default' | 'small';
|
||||
responsive?: boolean;
|
||||
simple?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
locale?: Object;
|
||||
className?: string;
|
||||
prefixCls?: string;
|
||||
selectPrefixCls?: string;
|
||||
itemRender?: (page: number, type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next', originalElement: React.ReactElement<HTMLElement>) => React.ReactNode;
|
||||
role?: string;
|
||||
showLessItems?: boolean;
|
||||
}
|
||||
export declare type PaginationPosition = 'top' | 'bottom' | 'both' | 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
||||
export interface PaginationConfig extends PaginationProps {
|
||||
position?: PaginationPosition[] | PaginationPosition;
|
||||
}
|
||||
export declare type PaginationLocale = any;
|
||||
export default class Pagination extends React.Component<PaginationProps, {}> {
|
||||
private token;
|
||||
private inferredSmall;
|
||||
componentDidMount(): void;
|
||||
componentWillUnmount(): void;
|
||||
getIconsProps: (prefixCls: string, direction: "ltr" | "rtl" | undefined) => {
|
||||
prevIcon: JSX.Element;
|
||||
nextIcon: JSX.Element;
|
||||
jumpPrevIcon: JSX.Element;
|
||||
jumpNextIcon: JSX.Element;
|
||||
};
|
||||
renderPagination: (contextLocale: any) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
182
web/node_modules/antd/es/pagination/Pagination.js
generated
vendored
Normal file
182
web/node_modules/antd/es/pagination/Pagination.js
generated
vendored
Normal file
@@ -0,0 +1,182 @@
|
||||
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 _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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||||
|
||||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||
|
||||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
||||
|
||||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||
|
||||
var __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 RcPagination from 'rc-pagination';
|
||||
import enUS from "rc-pagination/es/locale/en_US";
|
||||
import classNames from 'classnames';
|
||||
import LeftOutlined from '@ant-design/icons/LeftOutlined';
|
||||
import RightOutlined from '@ant-design/icons/RightOutlined';
|
||||
import DoubleLeftOutlined from '@ant-design/icons/DoubleLeftOutlined';
|
||||
import DoubleRightOutlined from '@ant-design/icons/DoubleRightOutlined';
|
||||
import ResponsiveObserve from '../_util/responsiveObserve';
|
||||
import MiniSelect from './MiniSelect';
|
||||
import Select from '../select';
|
||||
import LocaleReceiver from '../locale-provider/LocaleReceiver';
|
||||
import { ConfigConsumer } from '../config-provider';
|
||||
|
||||
var Pagination = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(Pagination, _React$Component);
|
||||
|
||||
var _super = _createSuper(Pagination);
|
||||
|
||||
function Pagination() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, Pagination);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
_this.inferredSmall = false;
|
||||
|
||||
_this.getIconsProps = function (prefixCls, direction) {
|
||||
var prevIcon = /*#__PURE__*/React.createElement("a", {
|
||||
className: "".concat(prefixCls, "-item-link")
|
||||
}, /*#__PURE__*/React.createElement(LeftOutlined, null));
|
||||
var nextIcon = /*#__PURE__*/React.createElement("a", {
|
||||
className: "".concat(prefixCls, "-item-link")
|
||||
}, /*#__PURE__*/React.createElement(RightOutlined, null));
|
||||
var jumpPrevIcon = /*#__PURE__*/React.createElement("a", {
|
||||
className: "".concat(prefixCls, "-item-link")
|
||||
}, /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-item-container")
|
||||
}, /*#__PURE__*/React.createElement(DoubleLeftOutlined, {
|
||||
className: "".concat(prefixCls, "-item-link-icon")
|
||||
}), /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(prefixCls, "-item-ellipsis")
|
||||
}, "\u2022\u2022\u2022")));
|
||||
var jumpNextIcon = /*#__PURE__*/React.createElement("a", {
|
||||
className: "".concat(prefixCls, "-item-link")
|
||||
}, /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-item-container")
|
||||
}, /*#__PURE__*/React.createElement(DoubleRightOutlined, {
|
||||
className: "".concat(prefixCls, "-item-link-icon")
|
||||
}), /*#__PURE__*/React.createElement("span", {
|
||||
className: "".concat(prefixCls, "-item-ellipsis")
|
||||
}, "\u2022\u2022\u2022"))); // change arrows direction in right-to-left direction
|
||||
|
||||
if (direction === 'rtl') {
|
||||
var temp;
|
||||
temp = prevIcon;
|
||||
prevIcon = nextIcon;
|
||||
nextIcon = temp;
|
||||
temp = jumpPrevIcon;
|
||||
jumpPrevIcon = jumpNextIcon;
|
||||
jumpNextIcon = temp;
|
||||
}
|
||||
|
||||
return {
|
||||
prevIcon: prevIcon,
|
||||
nextIcon: nextIcon,
|
||||
jumpPrevIcon: jumpPrevIcon,
|
||||
jumpNextIcon: jumpNextIcon
|
||||
};
|
||||
};
|
||||
|
||||
_this.renderPagination = function (contextLocale) {
|
||||
var _a = _this.props,
|
||||
customizePrefixCls = _a.prefixCls,
|
||||
customizeSelectPrefixCls = _a.selectPrefixCls,
|
||||
className = _a.className,
|
||||
size = _a.size,
|
||||
customLocale = _a.locale,
|
||||
restProps = __rest(_a, ["prefixCls", "selectPrefixCls", "className", "size", "locale"]);
|
||||
|
||||
var locale = _extends(_extends({}, contextLocale), customLocale);
|
||||
|
||||
var isSmall = size === 'small' || _this.inferredSmall;
|
||||
return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {
|
||||
var getPrefixCls = _ref.getPrefixCls,
|
||||
direction = _ref.direction;
|
||||
var prefixCls = getPrefixCls('pagination', customizePrefixCls);
|
||||
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
||||
var extendedClassName = classNames(className, _defineProperty({
|
||||
mini: isSmall
|
||||
}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
|
||||
return /*#__PURE__*/React.createElement(RcPagination, _extends({}, restProps, {
|
||||
prefixCls: prefixCls,
|
||||
selectPrefixCls: selectPrefixCls
|
||||
}, _this.getIconsProps(prefixCls, direction), {
|
||||
className: extendedClassName,
|
||||
selectComponentClass: isSmall ? MiniSelect : Select,
|
||||
locale: locale
|
||||
}));
|
||||
});
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(Pagination, [{
|
||||
key: "componentDidMount",
|
||||
value: function componentDidMount() {
|
||||
var _this2 = this;
|
||||
|
||||
this.token = ResponsiveObserve.subscribe(function (screens) {
|
||||
var xs = screens.xs;
|
||||
var _this2$props = _this2.props,
|
||||
size = _this2$props.size,
|
||||
responsive = _this2$props.responsive;
|
||||
var inferredSmall = !!(xs && !size && responsive);
|
||||
|
||||
if (_this2.inferredSmall !== inferredSmall) {
|
||||
_this2.inferredSmall = inferredSmall;
|
||||
|
||||
_this2.forceUpdate();
|
||||
}
|
||||
});
|
||||
}
|
||||
}, {
|
||||
key: "componentWillUnmount",
|
||||
value: function componentWillUnmount() {
|
||||
ResponsiveObserve.unsubscribe(this.token);
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(LocaleReceiver, {
|
||||
componentName: "Pagination",
|
||||
defaultLocale: enUS
|
||||
}, this.renderPagination);
|
||||
}
|
||||
}]);
|
||||
|
||||
return Pagination;
|
||||
}(React.Component);
|
||||
|
||||
export { Pagination as default };
|
||||
3
web/node_modules/antd/es/pagination/index.d.ts
generated
vendored
Normal file
3
web/node_modules/antd/es/pagination/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import Pagination from './Pagination';
|
||||
export { PaginationProps, PaginationConfig } from './Pagination';
|
||||
export default Pagination;
|
||||
2
web/node_modules/antd/es/pagination/index.js
generated
vendored
Normal file
2
web/node_modules/antd/es/pagination/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import Pagination from './Pagination';
|
||||
export default Pagination;
|
||||
4
web/node_modules/antd/es/pagination/style/css.js
generated
vendored
Normal file
4
web/node_modules/antd/es/pagination/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import '../../style/index.css';
|
||||
import './index.css'; // style dependencies
|
||||
|
||||
import '../../select/style/css';
|
||||
510
web/node_modules/antd/es/pagination/style/index.css
generated
vendored
Normal file
510
web/node_modules/antd/es/pagination/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,510 @@
|
||||
/* 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-pagination {
|
||||
-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';
|
||||
}
|
||||
.ant-pagination ul,
|
||||
.ant-pagination ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.ant-pagination::after {
|
||||
display: block;
|
||||
clear: both;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
content: ' ';
|
||||
}
|
||||
.ant-pagination-total-text {
|
||||
display: inline-block;
|
||||
height: 32px;
|
||||
margin-right: 8px;
|
||||
line-height: 30px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.ant-pagination-item {
|
||||
display: inline-block;
|
||||
min-width: 32px;
|
||||
height: 32px;
|
||||
margin-right: 8px;
|
||||
font-family: Arial;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
list-style: none;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
outline: 0;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.ant-pagination-item a {
|
||||
display: block;
|
||||
padding: 0 6px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
.ant-pagination-item a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.ant-pagination-item:focus,
|
||||
.ant-pagination-item:hover {
|
||||
border-color: #1890ff;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-pagination-item:focus a,
|
||||
.ant-pagination-item:hover a {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-pagination-item-active {
|
||||
font-weight: 500;
|
||||
background: #fff;
|
||||
border-color: #1890ff;
|
||||
}
|
||||
.ant-pagination-item-active a {
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-pagination-item-active:focus,
|
||||
.ant-pagination-item-active:hover {
|
||||
border-color: #40a9ff;
|
||||
}
|
||||
.ant-pagination-item-active:focus a,
|
||||
.ant-pagination-item-active:hover a {
|
||||
color: #40a9ff;
|
||||
}
|
||||
.ant-pagination-jump-prev,
|
||||
.ant-pagination-jump-next {
|
||||
outline: 0;
|
||||
}
|
||||
.ant-pagination-jump-prev .ant-pagination-item-container,
|
||||
.ant-pagination-jump-next .ant-pagination-item-container {
|
||||
position: relative;
|
||||
}
|
||||
.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,
|
||||
.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {
|
||||
color: #1890ff;
|
||||
font-size: 12px;
|
||||
letter-spacing: -1px;
|
||||
opacity: 0;
|
||||
-webkit-transition: all 0.2s;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg,
|
||||
.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg {
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis,
|
||||
.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
margin: auto;
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
letter-spacing: 2px;
|
||||
text-align: center;
|
||||
text-indent: 0.13em;
|
||||
opacity: 1;
|
||||
-webkit-transition: all 0.2s;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,
|
||||
.ant-pagination-jump-next:focus .ant-pagination-item-link-icon,
|
||||
.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,
|
||||
.ant-pagination-jump-next:hover .ant-pagination-item-link-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,
|
||||
.ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,
|
||||
.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,
|
||||
.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {
|
||||
opacity: 0;
|
||||
}
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-jump-prev,
|
||||
.ant-pagination-jump-next {
|
||||
margin-right: 8px;
|
||||
}
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next,
|
||||
.ant-pagination-jump-prev,
|
||||
.ant-pagination-jump-next {
|
||||
display: inline-block;
|
||||
min-width: 32px;
|
||||
height: 32px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-family: Arial;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
list-style: none;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next {
|
||||
outline: 0;
|
||||
}
|
||||
.ant-pagination-prev a,
|
||||
.ant-pagination-next a {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.ant-pagination-prev:hover a,
|
||||
.ant-pagination-next:hover a {
|
||||
border-color: #40a9ff;
|
||||
}
|
||||
.ant-pagination-prev .ant-pagination-item-link,
|
||||
.ant-pagination-next .ant-pagination-item-link {
|
||||
display: block;
|
||||
height: 100%;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
outline: none;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-pagination-prev:focus .ant-pagination-item-link,
|
||||
.ant-pagination-next:focus .ant-pagination-item-link,
|
||||
.ant-pagination-prev:hover .ant-pagination-item-link,
|
||||
.ant-pagination-next:hover .ant-pagination-item-link {
|
||||
color: #1890ff;
|
||||
border-color: #1890ff;
|
||||
}
|
||||
.ant-pagination-disabled,
|
||||
.ant-pagination-disabled:hover,
|
||||
.ant-pagination-disabled:focus {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-pagination-disabled a,
|
||||
.ant-pagination-disabled:hover a,
|
||||
.ant-pagination-disabled:focus a,
|
||||
.ant-pagination-disabled .ant-pagination-item-link,
|
||||
.ant-pagination-disabled:hover .ant-pagination-item-link,
|
||||
.ant-pagination-disabled:focus .ant-pagination-item-link {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
border-color: #d9d9d9;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-pagination-slash {
|
||||
margin: 0 10px 0 5px;
|
||||
}
|
||||
.ant-pagination-options {
|
||||
display: inline-block;
|
||||
margin-left: 16px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@media all and (-ms-high-contrast: none) {
|
||||
.ant-pagination-options *::-ms-backdrop,
|
||||
.ant-pagination-options {
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
.ant-pagination-options-size-changer.ant-select {
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper {
|
||||
display: inline-block;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
padding: 4px 11px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
line-height: 1.5715;
|
||||
background-color: #fff;
|
||||
background-image: none;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
width: 50px;
|
||||
margin: 0 8px;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input::-moz-placeholder {
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input::-webkit-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input:-ms-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input::-ms-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input::placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input:placeholder-shown {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input:hover {
|
||||
border-color: #40a9ff;
|
||||
border-right-width: 1px !important;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input:focus,
|
||||
.ant-pagination-options-quick-jumper input-focused {
|
||||
border-color: #40a9ff;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input-disabled {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background-color: #f5f5f5;
|
||||
cursor: not-allowed;
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input-disabled:hover {
|
||||
border-color: #d9d9d9;
|
||||
border-right-width: 1px !important;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input[disabled] {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background-color: #f5f5f5;
|
||||
cursor: not-allowed;
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input[disabled]:hover {
|
||||
border-color: #d9d9d9;
|
||||
border-right-width: 1px !important;
|
||||
}
|
||||
textarea.ant-pagination-options-quick-jumper input {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
min-height: 32px;
|
||||
line-height: 1.5715;
|
||||
vertical-align: bottom;
|
||||
-webkit-transition: all 0.3s, height 0s;
|
||||
transition: all 0.3s, height 0s;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input-lg {
|
||||
padding: 6.5px 11px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.ant-pagination-options-quick-jumper input-sm {
|
||||
padding: 0px 7px;
|
||||
}
|
||||
.ant-pagination-simple .ant-pagination-prev,
|
||||
.ant-pagination-simple .ant-pagination-next {
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link,
|
||||
.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link {
|
||||
height: 24px;
|
||||
border: 0;
|
||||
}
|
||||
.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after,
|
||||
.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after {
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.ant-pagination-simple .ant-pagination-simple-pager {
|
||||
display: inline-block;
|
||||
height: 24px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.ant-pagination-simple .ant-pagination-simple-pager input {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
margin-right: 8px;
|
||||
padding: 0 6px;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
outline: none;
|
||||
-webkit-transition: border-color 0.3s;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
.ant-pagination-simple .ant-pagination-simple-pager input:hover {
|
||||
border-color: #1890ff;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-total-text,
|
||||
.ant-pagination.mini .ant-pagination-simple-pager {
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-item {
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
margin: 0;
|
||||
line-height: 22px;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-prev,
|
||||
.ant-pagination.mini .ant-pagination-next {
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
margin: 0;
|
||||
line-height: 24px;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link,
|
||||
.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link::after,
|
||||
.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link::after {
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-jump-prev,
|
||||
.ant-pagination.mini .ant-pagination-jump-next {
|
||||
height: 24px;
|
||||
margin-right: 0;
|
||||
line-height: 24px;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-options {
|
||||
margin-left: 2px;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-options-size-changer {
|
||||
top: 0px;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-options-quick-jumper {
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.ant-pagination.mini .ant-pagination-options-quick-jumper input {
|
||||
padding: 0px 7px;
|
||||
width: 44px;
|
||||
}
|
||||
.ant-pagination.ant-pagination-disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-item {
|
||||
background: #f5f5f5;
|
||||
border-color: #d9d9d9;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-item a {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-item-active {
|
||||
background: #dbdbdb;
|
||||
border-color: transparent;
|
||||
}
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a {
|
||||
color: #fff;
|
||||
}
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-item-link,
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:hover,
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:focus {
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
background: #f5f5f5;
|
||||
border-color: #d9d9d9;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-link-icon,
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-link-icon {
|
||||
opacity: 0;
|
||||
}
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,
|
||||
.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {
|
||||
opacity: 1;
|
||||
}
|
||||
@media only screen and (max-width: 992px) {
|
||||
.ant-pagination-item-after-jump-prev,
|
||||
.ant-pagination-item-before-jump-next {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 576px) {
|
||||
.ant-pagination-options {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.ant-pagination-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-pagination-rtl .ant-pagination-total-text {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-pagination-rtl .ant-pagination-item {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-pagination-rtl .ant-pagination-prev,
|
||||
.ant-pagination-rtl .ant-pagination-jump-prev,
|
||||
.ant-pagination-rtl .ant-pagination-jump-next {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-pagination-rtl .ant-pagination-options {
|
||||
margin-right: 16px;
|
||||
margin-left: 0;
|
||||
}
|
||||
.ant-pagination-rtl .ant-pagination-options-size-changer.ant-select {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager input {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-pagination-rtl.ant-pagination.mini .ant-pagination-options {
|
||||
margin-right: 2px;
|
||||
margin-left: 0;
|
||||
}
|
||||
3
web/node_modules/antd/es/pagination/style/index.d.ts
generated
vendored
Normal file
3
web/node_modules/antd/es/pagination/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
import '../../select/style';
|
||||
4
web/node_modules/antd/es/pagination/style/index.js
generated
vendored
Normal file
4
web/node_modules/antd/es/pagination/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less'; // style dependencies
|
||||
|
||||
import '../../select/style';
|
||||
414
web/node_modules/antd/es/pagination/style/index.less
generated
vendored
Normal file
414
web/node_modules/antd/es/pagination/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,414 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
@import '../../input/style/mixin';
|
||||
|
||||
@pagination-prefix-cls: ~'@{ant-prefix}-pagination';
|
||||
|
||||
.@{pagination-prefix-cls} {
|
||||
.reset-component;
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
&::after {
|
||||
display: block;
|
||||
clear: both;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
&-total-text {
|
||||
display: inline-block;
|
||||
height: @pagination-item-size;
|
||||
margin-right: 8px;
|
||||
line-height: @pagination-item-size - 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&-item {
|
||||
display: inline-block;
|
||||
min-width: @pagination-item-size;
|
||||
height: @pagination-item-size;
|
||||
margin-right: 8px;
|
||||
font-family: @pagination-font-family;
|
||||
line-height: @pagination-item-size - 2px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
list-style: none;
|
||||
background-color: @pagination-item-bg;
|
||||
border: @border-width-base @border-style-base @border-color-base;
|
||||
border-radius: @border-radius-base;
|
||||
outline: 0;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 0 6px;
|
||||
color: @text-color;
|
||||
transition: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
border-color: @primary-color;
|
||||
transition: all 0.3s;
|
||||
a {
|
||||
color: @primary-color;
|
||||
}
|
||||
}
|
||||
|
||||
&-active {
|
||||
font-weight: @pagination-font-weight-active;
|
||||
background: @pagination-item-bg-active;
|
||||
border-color: @primary-color;
|
||||
|
||||
a {
|
||||
color: @primary-color;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
border-color: @primary-5;
|
||||
}
|
||||
|
||||
&:focus a,
|
||||
&:hover a {
|
||||
color: @primary-5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-jump-prev,
|
||||
&-jump-next {
|
||||
outline: 0;
|
||||
.@{pagination-prefix-cls}-item-container {
|
||||
position: relative;
|
||||
|
||||
.@{pagination-prefix-cls}-item-link-icon {
|
||||
color: @primary-color;
|
||||
font-size: @font-size-sm;
|
||||
letter-spacing: -1px;
|
||||
opacity: 0;
|
||||
transition: all 0.2s;
|
||||
&-svg {
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.@{pagination-prefix-cls}-item-ellipsis {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
margin: auto;
|
||||
color: @disabled-color;
|
||||
letter-spacing: 2px;
|
||||
text-align: center;
|
||||
text-indent: 0.13em;
|
||||
opacity: 1;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
.@{pagination-prefix-cls}-item-link-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
.@{pagination-prefix-cls}-item-ellipsis {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-prev,
|
||||
&-jump-prev,
|
||||
&-jump-next {
|
||||
margin-right: 8px;
|
||||
}
|
||||
&-prev,
|
||||
&-next,
|
||||
&-jump-prev,
|
||||
&-jump-next {
|
||||
display: inline-block;
|
||||
min-width: @pagination-item-size;
|
||||
height: @pagination-item-size;
|
||||
color: @text-color;
|
||||
font-family: @pagination-font-family;
|
||||
line-height: @pagination-item-size;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
list-style: none;
|
||||
border-radius: @border-radius-base;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
&-prev,
|
||||
&-next {
|
||||
outline: 0;
|
||||
|
||||
a {
|
||||
color: @text-color;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
&:hover a {
|
||||
border-color: @primary-5;
|
||||
}
|
||||
|
||||
.@{pagination-prefix-cls}-item-link {
|
||||
display: block;
|
||||
height: 100%;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
background-color: @pagination-item-link-bg;
|
||||
border: @border-width-base @border-style-base @border-color-base;
|
||||
border-radius: @border-radius-base;
|
||||
outline: none;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
&:focus .@{pagination-prefix-cls}-item-link,
|
||||
&:hover .@{pagination-prefix-cls}-item-link {
|
||||
color: @primary-color;
|
||||
border-color: @primary-color;
|
||||
}
|
||||
}
|
||||
|
||||
&-disabled {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
cursor: not-allowed;
|
||||
a,
|
||||
.@{pagination-prefix-cls}-item-link {
|
||||
color: @disabled-color;
|
||||
border-color: @border-color-base;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-slash {
|
||||
margin: 0 10px 0 5px;
|
||||
}
|
||||
|
||||
&-options {
|
||||
display: inline-block;
|
||||
margin-left: 16px;
|
||||
vertical-align: middle;
|
||||
|
||||
// IE11 css hack. `*::-ms-backdrop,` is a must have
|
||||
@media all and (-ms-high-contrast: none) {
|
||||
*::-ms-backdrop,
|
||||
& {
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
&-size-changer.@{ant-prefix}-select {
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
&-quick-jumper {
|
||||
display: inline-block;
|
||||
height: @input-height-base;
|
||||
line-height: @input-height-base;
|
||||
vertical-align: top;
|
||||
|
||||
input {
|
||||
.input;
|
||||
|
||||
width: 50px;
|
||||
margin: 0 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-simple &-prev,
|
||||
&-simple &-next {
|
||||
height: @pagination-item-size-sm;
|
||||
line-height: @pagination-item-size-sm;
|
||||
vertical-align: top;
|
||||
.@{pagination-prefix-cls}-item-link {
|
||||
height: @pagination-item-size-sm;
|
||||
border: 0;
|
||||
&::after {
|
||||
height: @pagination-item-size-sm;
|
||||
line-height: @pagination-item-size-sm;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-simple &-simple-pager {
|
||||
display: inline-block;
|
||||
height: @pagination-item-size-sm;
|
||||
margin-right: 8px;
|
||||
|
||||
input {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
margin-right: 8px;
|
||||
padding: 0 6px;
|
||||
text-align: center;
|
||||
background-color: @pagination-item-input-bg;
|
||||
border: @border-width-base @border-style-base @border-color-base;
|
||||
border-radius: @border-radius-base;
|
||||
outline: none;
|
||||
transition: border-color 0.3s;
|
||||
|
||||
&:hover {
|
||||
border-color: @primary-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.mini &-total-text,
|
||||
&.mini &-simple-pager {
|
||||
height: @pagination-item-size-sm;
|
||||
line-height: @pagination-item-size-sm;
|
||||
}
|
||||
|
||||
&.mini &-item {
|
||||
min-width: @pagination-item-size-sm;
|
||||
height: @pagination-item-size-sm;
|
||||
margin: 0;
|
||||
line-height: @pagination-item-size-sm - 2px;
|
||||
}
|
||||
|
||||
&.mini &-item:not(&-item-active) {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
&.mini &-prev,
|
||||
&.mini &-next {
|
||||
min-width: @pagination-item-size-sm;
|
||||
height: @pagination-item-size-sm;
|
||||
margin: 0;
|
||||
line-height: @pagination-item-size-sm;
|
||||
}
|
||||
|
||||
&.mini &-prev &-item-link,
|
||||
&.mini &-next &-item-link {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
&::after {
|
||||
height: @pagination-item-size-sm;
|
||||
line-height: @pagination-item-size-sm;
|
||||
}
|
||||
}
|
||||
|
||||
&.mini &-jump-prev,
|
||||
&.mini &-jump-next {
|
||||
height: @pagination-item-size-sm;
|
||||
margin-right: 0;
|
||||
line-height: @pagination-item-size-sm;
|
||||
}
|
||||
|
||||
&.mini &-options {
|
||||
margin-left: 2px;
|
||||
|
||||
&-size-changer {
|
||||
top: @pagination-mini-options-size-changer-top;
|
||||
}
|
||||
|
||||
&-quick-jumper {
|
||||
height: @pagination-item-size-sm;
|
||||
line-height: @pagination-item-size-sm;
|
||||
|
||||
input {
|
||||
.input-sm;
|
||||
|
||||
width: 44px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ============================ Disabled ============================
|
||||
&&-disabled {
|
||||
cursor: not-allowed;
|
||||
|
||||
.@{pagination-prefix-cls}-item {
|
||||
background: @disabled-bg;
|
||||
border-color: @border-color-base;
|
||||
cursor: not-allowed;
|
||||
|
||||
a {
|
||||
color: @disabled-color;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&-active {
|
||||
background: @pagination-item-disabled-bg-active;
|
||||
border-color: transparent;
|
||||
a {
|
||||
color: @pagination-item-disabled-color-active;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{pagination-prefix-cls}-item-link {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: @text-color-secondary;
|
||||
background: @disabled-bg;
|
||||
border-color: @border-color-base;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
.@{pagination-prefix-cls}-jump-prev,
|
||||
.@{pagination-prefix-cls}-jump-next {
|
||||
&:focus,
|
||||
&:hover {
|
||||
.@{pagination-prefix-cls}-item-link-icon {
|
||||
opacity: 0;
|
||||
}
|
||||
.@{pagination-prefix-cls}-item-ellipsis {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @screen-lg) {
|
||||
.@{pagination-prefix-cls}-item {
|
||||
&-after-jump-prev,
|
||||
&-before-jump-next {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: @screen-sm) {
|
||||
.@{pagination-prefix-cls}-options {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@import './rtl';
|
||||
69
web/node_modules/antd/es/pagination/style/rtl.less
generated
vendored
Normal file
69
web/node_modules/antd/es/pagination/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
@import '../../input/style/mixin';
|
||||
|
||||
@pagination-prefix-cls: ~'@{ant-prefix}-pagination';
|
||||
|
||||
.@{pagination-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
&-total-text {
|
||||
.@{pagination-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&-item {
|
||||
.@{pagination-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&-prev,
|
||||
&-jump-prev,
|
||||
&-jump-next {
|
||||
.@{pagination-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&-options {
|
||||
.@{pagination-prefix-cls}-rtl & {
|
||||
margin-right: 16px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&-size-changer.@{ant-prefix}-select {
|
||||
.@{pagination-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-simple &-simple-pager {
|
||||
.@{pagination-prefix-cls}-rtl& {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
input {
|
||||
.@{pagination-prefix-cls}-rtl& {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.mini &-options {
|
||||
.@{pagination-prefix-cls}-rtl& {
|
||||
margin-right: 2px;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user