Latest updates from IceHrmPro
This commit is contained in:
54
web/node_modules/antd/es/checkbox/Checkbox.d.ts
generated
vendored
Normal file
54
web/node_modules/antd/es/checkbox/Checkbox.d.ts
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
import * as React from 'react';
|
||||
import CheckboxGroup from './Group';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
export interface AbstractCheckboxProps<T> {
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
defaultChecked?: boolean;
|
||||
checked?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
disabled?: boolean;
|
||||
onChange?: (e: T) => void;
|
||||
onClick?: React.MouseEventHandler<HTMLElement>;
|
||||
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
||||
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
||||
onKeyPress?: React.KeyboardEventHandler<HTMLElement>;
|
||||
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
||||
value?: any;
|
||||
tabIndex?: number;
|
||||
name?: string;
|
||||
children?: React.ReactNode;
|
||||
id?: string;
|
||||
autoFocus?: boolean;
|
||||
}
|
||||
export interface CheckboxProps extends AbstractCheckboxProps<CheckboxChangeEvent> {
|
||||
indeterminate?: boolean;
|
||||
}
|
||||
export interface CheckboxChangeEventTarget extends CheckboxProps {
|
||||
checked: boolean;
|
||||
}
|
||||
export interface CheckboxChangeEvent {
|
||||
target: CheckboxChangeEventTarget;
|
||||
stopPropagation: () => void;
|
||||
preventDefault: () => void;
|
||||
nativeEvent: MouseEvent;
|
||||
}
|
||||
declare class Checkbox extends React.PureComponent<CheckboxProps, {}> {
|
||||
static Group: typeof CheckboxGroup;
|
||||
static __ANT_CHECKBOX: boolean;
|
||||
static defaultProps: {
|
||||
indeterminate: boolean;
|
||||
};
|
||||
static contextType: React.Context<import("./Group").CheckboxGroupContext | null>;
|
||||
context: any;
|
||||
private rcCheckbox;
|
||||
componentDidMount(): void;
|
||||
componentDidUpdate({ value: prevValue }: CheckboxProps): void;
|
||||
componentWillUnmount(): void;
|
||||
saveCheckbox: (node: any) => void;
|
||||
focus(): void;
|
||||
blur(): void;
|
||||
renderCheckbox: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export default Checkbox;
|
||||
181
web/node_modules/antd/es/checkbox/Checkbox.js
generated
vendored
Normal file
181
web/node_modules/antd/es/checkbox/Checkbox.js
generated
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
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 classNames from 'classnames';
|
||||
import RcCheckbox from 'rc-checkbox';
|
||||
import { GroupContext } from './Group';
|
||||
import { ConfigConsumer } from '../config-provider';
|
||||
import warning from '../_util/warning';
|
||||
|
||||
var Checkbox = /*#__PURE__*/function (_React$PureComponent) {
|
||||
_inherits(Checkbox, _React$PureComponent);
|
||||
|
||||
var _super = _createSuper(Checkbox);
|
||||
|
||||
function Checkbox() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, Checkbox);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
|
||||
_this.saveCheckbox = function (node) {
|
||||
_this.rcCheckbox = node;
|
||||
};
|
||||
|
||||
_this.renderCheckbox = function (_ref) {
|
||||
var _classNames;
|
||||
|
||||
var getPrefixCls = _ref.getPrefixCls,
|
||||
direction = _ref.direction;
|
||||
|
||||
var _assertThisInitialize = _assertThisInitialized(_this),
|
||||
props = _assertThisInitialize.props,
|
||||
context = _assertThisInitialize.context;
|
||||
|
||||
var customizePrefixCls = props.prefixCls,
|
||||
className = props.className,
|
||||
children = props.children,
|
||||
indeterminate = props.indeterminate,
|
||||
style = props.style,
|
||||
onMouseEnter = props.onMouseEnter,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = __rest(props, ["prefixCls", "className", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave"]);
|
||||
|
||||
var checkboxGroup = context;
|
||||
var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
|
||||
|
||||
var checkboxProps = _extends({}, restProps);
|
||||
|
||||
if (checkboxGroup) {
|
||||
checkboxProps.onChange = function () {
|
||||
if (restProps.onChange) {
|
||||
restProps.onChange.apply(restProps, arguments);
|
||||
}
|
||||
|
||||
checkboxGroup.toggleOption({
|
||||
label: children,
|
||||
value: props.value
|
||||
});
|
||||
};
|
||||
|
||||
checkboxProps.name = checkboxGroup.name;
|
||||
checkboxProps.checked = checkboxGroup.value.indexOf(props.value) !== -1;
|
||||
checkboxProps.disabled = props.disabled || checkboxGroup.disabled;
|
||||
}
|
||||
|
||||
var classString = classNames(className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-wrapper"), true), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "".concat(prefixCls, "-wrapper-checked"), checkboxProps.checked), _defineProperty(_classNames, "".concat(prefixCls, "-wrapper-disabled"), checkboxProps.disabled), _classNames));
|
||||
var checkboxClass = classNames(_defineProperty({}, "".concat(prefixCls, "-indeterminate"), indeterminate));
|
||||
return (
|
||||
/*#__PURE__*/
|
||||
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
||||
React.createElement("label", {
|
||||
className: classString,
|
||||
style: style,
|
||||
onMouseEnter: onMouseEnter,
|
||||
onMouseLeave: onMouseLeave
|
||||
}, /*#__PURE__*/React.createElement(RcCheckbox, _extends({}, checkboxProps, {
|
||||
prefixCls: prefixCls,
|
||||
className: checkboxClass,
|
||||
ref: _this.saveCheckbox
|
||||
})), children !== undefined && /*#__PURE__*/React.createElement("span", null, children))
|
||||
);
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(Checkbox, [{
|
||||
key: "componentDidMount",
|
||||
value: function componentDidMount() {
|
||||
var _a;
|
||||
|
||||
var value = this.props.value;
|
||||
(_a = this.context) === null || _a === void 0 ? void 0 : _a.registerValue(value);
|
||||
warning('checked' in this.props || this.context || !('value' in this.props), 'Checkbox', '`value` is not a valid prop, do you mean `checked`?');
|
||||
}
|
||||
}, {
|
||||
key: "componentDidUpdate",
|
||||
value: function componentDidUpdate(_ref2) {
|
||||
var prevValue = _ref2.value;
|
||||
|
||||
var _a, _b;
|
||||
|
||||
var value = this.props.value;
|
||||
|
||||
if (value !== prevValue) {
|
||||
(_a = this.context) === null || _a === void 0 ? void 0 : _a.cancelValue(prevValue);
|
||||
(_b = this.context) === null || _b === void 0 ? void 0 : _b.registerValue(value);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "componentWillUnmount",
|
||||
value: function componentWillUnmount() {
|
||||
var _a;
|
||||
|
||||
var value = this.props.value;
|
||||
(_a = this.context) === null || _a === void 0 ? void 0 : _a.cancelValue(value);
|
||||
}
|
||||
}, {
|
||||
key: "focus",
|
||||
value: function focus() {
|
||||
this.rcCheckbox.focus();
|
||||
}
|
||||
}, {
|
||||
key: "blur",
|
||||
value: function blur() {
|
||||
this.rcCheckbox.blur();
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderCheckbox);
|
||||
}
|
||||
}]);
|
||||
|
||||
return Checkbox;
|
||||
}(React.PureComponent);
|
||||
|
||||
Checkbox.__ANT_CHECKBOX = true;
|
||||
Checkbox.defaultProps = {
|
||||
indeterminate: false
|
||||
};
|
||||
Checkbox.contextType = GroupContext;
|
||||
export default Checkbox;
|
||||
57
web/node_modules/antd/es/checkbox/Group.d.ts
generated
vendored
Normal file
57
web/node_modules/antd/es/checkbox/Group.d.ts
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
import * as React from 'react';
|
||||
import * as PropTypes from 'prop-types';
|
||||
import { CheckboxChangeEvent } from './Checkbox';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
export declare type CheckboxValueType = string | number | boolean;
|
||||
export interface CheckboxOptionType {
|
||||
label: React.ReactNode;
|
||||
value: CheckboxValueType;
|
||||
style?: React.CSSProperties;
|
||||
disabled?: boolean;
|
||||
onChange?: (e: CheckboxChangeEvent) => void;
|
||||
}
|
||||
export interface AbstractCheckboxGroupProps {
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
options?: Array<CheckboxOptionType | string>;
|
||||
disabled?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
export interface CheckboxGroupProps extends AbstractCheckboxGroupProps {
|
||||
name?: string;
|
||||
defaultValue?: Array<CheckboxValueType>;
|
||||
value?: Array<CheckboxValueType>;
|
||||
onChange?: (checkedValue: Array<CheckboxValueType>) => void;
|
||||
}
|
||||
export interface CheckboxGroupState {
|
||||
value: CheckboxValueType[];
|
||||
registeredValues: CheckboxValueType[];
|
||||
}
|
||||
export interface CheckboxGroupContext {
|
||||
toggleOption?: (option: CheckboxOptionType) => void;
|
||||
value?: any;
|
||||
disabled?: boolean;
|
||||
}
|
||||
export declare const GroupContext: React.Context<CheckboxGroupContext | null>;
|
||||
declare class CheckboxGroup extends React.PureComponent<CheckboxGroupProps, CheckboxGroupState> {
|
||||
static defaultProps: {
|
||||
options: never[];
|
||||
};
|
||||
static propTypes: {
|
||||
defaultValue: PropTypes.Requireable<any[]>;
|
||||
value: PropTypes.Requireable<any[]>;
|
||||
options: PropTypes.Validator<any[]>;
|
||||
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
||||
};
|
||||
static getDerivedStateFromProps(nextProps: CheckboxGroupProps): {
|
||||
value: CheckboxValueType[];
|
||||
} | null;
|
||||
constructor(props: CheckboxGroupProps);
|
||||
getOptions(): CheckboxOptionType[];
|
||||
cancelValue: (value: string) => void;
|
||||
registerValue: (value: string) => void;
|
||||
toggleOption: (option: CheckboxOptionType) => void;
|
||||
renderGroup: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export default CheckboxGroup;
|
||||
235
web/node_modules/antd/es/checkbox/Group.js
generated
vendored
Normal file
235
web/node_modules/antd/es/checkbox/Group.js
generated
vendored
Normal file
@@ -0,0 +1,235 @@
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
||||
|
||||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
||||
|
||||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _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 PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import omit from 'omit.js';
|
||||
import Checkbox from './Checkbox';
|
||||
import { ConfigConsumer } from '../config-provider';
|
||||
export var GroupContext = React.createContext(null);
|
||||
|
||||
var CheckboxGroup = /*#__PURE__*/function (_React$PureComponent) {
|
||||
_inherits(CheckboxGroup, _React$PureComponent);
|
||||
|
||||
var _super = _createSuper(CheckboxGroup);
|
||||
|
||||
function CheckboxGroup(props) {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, CheckboxGroup);
|
||||
|
||||
_this = _super.call(this, props);
|
||||
|
||||
_this.cancelValue = function (value) {
|
||||
_this.setState(function (_ref) {
|
||||
var registeredValues = _ref.registeredValues;
|
||||
return {
|
||||
registeredValues: registeredValues.filter(function (val) {
|
||||
return val !== value;
|
||||
})
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
_this.registerValue = function (value) {
|
||||
_this.setState(function (_ref2) {
|
||||
var registeredValues = _ref2.registeredValues;
|
||||
return {
|
||||
registeredValues: [].concat(_toConsumableArray(registeredValues), [value])
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
_this.toggleOption = function (option) {
|
||||
var registeredValues = _this.state.registeredValues;
|
||||
|
||||
var optionIndex = _this.state.value.indexOf(option.value);
|
||||
|
||||
var value = _toConsumableArray(_this.state.value);
|
||||
|
||||
if (optionIndex === -1) {
|
||||
value.push(option.value);
|
||||
} else {
|
||||
value.splice(optionIndex, 1);
|
||||
}
|
||||
|
||||
if (!('value' in _this.props)) {
|
||||
_this.setState({
|
||||
value: value
|
||||
});
|
||||
}
|
||||
|
||||
var onChange = _this.props.onChange;
|
||||
|
||||
if (onChange) {
|
||||
var options = _this.getOptions();
|
||||
|
||||
onChange(value.filter(function (val) {
|
||||
return registeredValues.indexOf(val) !== -1;
|
||||
}).sort(function (a, b) {
|
||||
var indexA = options.findIndex(function (opt) {
|
||||
return opt.value === a;
|
||||
});
|
||||
var indexB = options.findIndex(function (opt) {
|
||||
return opt.value === b;
|
||||
});
|
||||
return indexA - indexB;
|
||||
}));
|
||||
}
|
||||
};
|
||||
|
||||
_this.renderGroup = function (_ref3) {
|
||||
var getPrefixCls = _ref3.getPrefixCls,
|
||||
direction = _ref3.direction;
|
||||
|
||||
var _assertThisInitialize = _assertThisInitialized(_this),
|
||||
props = _assertThisInitialize.props,
|
||||
state = _assertThisInitialize.state;
|
||||
|
||||
var customizePrefixCls = props.prefixCls,
|
||||
className = props.className,
|
||||
style = props.style,
|
||||
options = props.options,
|
||||
restProps = __rest(props, ["prefixCls", "className", "style", "options"]);
|
||||
|
||||
var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
|
||||
var groupPrefixCls = "".concat(prefixCls, "-group");
|
||||
var domProps = omit(restProps, ['children', 'defaultValue', 'value', 'onChange', 'disabled']);
|
||||
var children = props.children;
|
||||
|
||||
if (options && options.length > 0) {
|
||||
children = _this.getOptions().map(function (option) {
|
||||
return /*#__PURE__*/React.createElement(Checkbox, {
|
||||
prefixCls: prefixCls,
|
||||
key: option.value.toString(),
|
||||
disabled: 'disabled' in option ? option.disabled : props.disabled,
|
||||
value: option.value,
|
||||
checked: state.value.indexOf(option.value) !== -1,
|
||||
onChange: option.onChange,
|
||||
className: "".concat(groupPrefixCls, "-item"),
|
||||
style: option.style
|
||||
}, option.label);
|
||||
});
|
||||
}
|
||||
|
||||
var context = {
|
||||
toggleOption: _this.toggleOption,
|
||||
value: _this.state.value,
|
||||
disabled: _this.props.disabled,
|
||||
name: _this.props.name,
|
||||
// https://github.com/ant-design/ant-design/issues/16376
|
||||
registerValue: _this.registerValue,
|
||||
cancelValue: _this.cancelValue
|
||||
};
|
||||
var classString = classNames(groupPrefixCls, className, _defineProperty({}, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'));
|
||||
return /*#__PURE__*/React.createElement("div", _extends({
|
||||
className: classString,
|
||||
style: style
|
||||
}, domProps), /*#__PURE__*/React.createElement(GroupContext.Provider, {
|
||||
value: context
|
||||
}, children));
|
||||
};
|
||||
|
||||
_this.state = {
|
||||
value: props.value || props.defaultValue || [],
|
||||
registeredValues: []
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(CheckboxGroup, [{
|
||||
key: "getOptions",
|
||||
value: function getOptions() {
|
||||
var options = this.props.options; // https://github.com/Microsoft/TypeScript/issues/7960
|
||||
|
||||
return options.map(function (option) {
|
||||
if (typeof option === 'string') {
|
||||
return {
|
||||
label: option,
|
||||
value: option
|
||||
};
|
||||
}
|
||||
|
||||
return option;
|
||||
});
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderGroup);
|
||||
}
|
||||
}], [{
|
||||
key: "getDerivedStateFromProps",
|
||||
value: function getDerivedStateFromProps(nextProps) {
|
||||
if ('value' in nextProps) {
|
||||
return {
|
||||
value: nextProps.value || []
|
||||
};
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}]);
|
||||
|
||||
return CheckboxGroup;
|
||||
}(React.PureComponent);
|
||||
|
||||
CheckboxGroup.defaultProps = {
|
||||
options: []
|
||||
};
|
||||
CheckboxGroup.propTypes = {
|
||||
defaultValue: PropTypes.array,
|
||||
value: PropTypes.array,
|
||||
options: PropTypes.array.isRequired,
|
||||
onChange: PropTypes.func
|
||||
};
|
||||
export default CheckboxGroup;
|
||||
4
web/node_modules/antd/es/checkbox/index.d.ts
generated
vendored
Normal file
4
web/node_modules/antd/es/checkbox/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import Checkbox from './Checkbox';
|
||||
export { CheckboxProps, CheckboxChangeEvent } from './Checkbox';
|
||||
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
||||
export default Checkbox;
|
||||
4
web/node_modules/antd/es/checkbox/index.js
generated
vendored
Normal file
4
web/node_modules/antd/es/checkbox/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import Checkbox from './Checkbox';
|
||||
import Group from './Group';
|
||||
Checkbox.Group = Group;
|
||||
export default Checkbox;
|
||||
2
web/node_modules/antd/es/checkbox/style/css.js
generated
vendored
Normal file
2
web/node_modules/antd/es/checkbox/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import '../../style/index.css';
|
||||
import './index.css';
|
||||
246
web/node_modules/antd/es/checkbox/style/index.css
generated
vendored
Normal file
246
web/node_modules/antd/es/checkbox/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,246 @@
|
||||
/* 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 */
|
||||
@-webkit-keyframes antCheckboxEffect {
|
||||
0% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
opacity: 0.5;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: scale(1.6);
|
||||
transform: scale(1.6);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
@keyframes antCheckboxEffect {
|
||||
0% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
opacity: 0.5;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: scale(1.6);
|
||||
transform: scale(1.6);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
.ant-checkbox {
|
||||
-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;
|
||||
top: -0.09em;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ant-checkbox-wrapper:hover .ant-checkbox-inner,
|
||||
.ant-checkbox:hover .ant-checkbox-inner,
|
||||
.ant-checkbox-input:focus + .ant-checkbox-inner {
|
||||
border-color: #1890ff;
|
||||
}
|
||||
.ant-checkbox-checked::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 1px solid #1890ff;
|
||||
border-radius: 2px;
|
||||
visibility: hidden;
|
||||
-webkit-animation: antCheckboxEffect 0.36s ease-in-out;
|
||||
animation: antCheckboxEffect 0.36s ease-in-out;
|
||||
-webkit-animation-fill-mode: backwards;
|
||||
animation-fill-mode: backwards;
|
||||
content: '';
|
||||
}
|
||||
.ant-checkbox:hover::after,
|
||||
.ant-checkbox-wrapper:hover .ant-checkbox::after {
|
||||
visibility: visible;
|
||||
}
|
||||
.ant-checkbox-inner {
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
direction: ltr;
|
||||
background-color: #fff;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
border-collapse: separate;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.ant-checkbox-inner::after {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 22%;
|
||||
display: table;
|
||||
width: 5.71428571px;
|
||||
height: 9.14285714px;
|
||||
border: 2px solid #fff;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
-webkit-transform: rotate(45deg) scale(0) translate(-50%, -50%);
|
||||
transform: rotate(45deg) scale(0) translate(-50%, -50%);
|
||||
opacity: 0;
|
||||
-webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
|
||||
transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
|
||||
content: ' ';
|
||||
}
|
||||
.ant-checkbox-input {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
}
|
||||
.ant-checkbox-checked .ant-checkbox-inner::after {
|
||||
position: absolute;
|
||||
display: table;
|
||||
border: 2px solid #fff;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
-webkit-transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
||||
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
||||
opacity: 1;
|
||||
-webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
|
||||
transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
|
||||
content: ' ';
|
||||
}
|
||||
.ant-checkbox-checked .ant-checkbox-inner {
|
||||
background-color: #1890ff;
|
||||
border-color: #1890ff;
|
||||
}
|
||||
.ant-checkbox-disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after {
|
||||
border-color: rgba(0, 0, 0, 0.25);
|
||||
-webkit-animation-name: none;
|
||||
animation-name: none;
|
||||
}
|
||||
.ant-checkbox-disabled .ant-checkbox-input {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-checkbox-disabled .ant-checkbox-inner {
|
||||
background-color: #f5f5f5;
|
||||
border-color: #d9d9d9 !important;
|
||||
}
|
||||
.ant-checkbox-disabled .ant-checkbox-inner::after {
|
||||
border-color: #f5f5f5;
|
||||
border-collapse: separate;
|
||||
-webkit-animation-name: none;
|
||||
animation-name: none;
|
||||
}
|
||||
.ant-checkbox-disabled + span {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-checkbox-disabled:hover::after,
|
||||
.ant-checkbox-wrapper:hover .ant-checkbox-disabled::after {
|
||||
visibility: hidden;
|
||||
}
|
||||
.ant-checkbox-wrapper {
|
||||
-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';
|
||||
display: inline-block;
|
||||
line-height: unset;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-checkbox-wrapper + .ant-checkbox-wrapper {
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-checkbox + span {
|
||||
padding-right: 8px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
.ant-checkbox-group {
|
||||
-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';
|
||||
display: inline-block;
|
||||
}
|
||||
.ant-checkbox-group-item {
|
||||
display: inline-block;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.ant-checkbox-group-item:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.ant-checkbox-group-item + .ant-checkbox-group-item {
|
||||
margin-left: 0;
|
||||
}
|
||||
.ant-checkbox-indeterminate .ant-checkbox-inner {
|
||||
background-color: #fff;
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
.ant-checkbox-indeterminate .ant-checkbox-inner::after {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background-color: #1890ff;
|
||||
border: 0;
|
||||
-webkit-transform: translate(-50%, -50%) scale(1);
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
opacity: 1;
|
||||
content: ' ';
|
||||
}
|
||||
.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after {
|
||||
background-color: rgba(0, 0, 0, 0.25);
|
||||
border-color: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.ant-checkbox-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-checkbox-group-rtl .ant-checkbox-group-item {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-checkbox-group-rtl .ant-checkbox-group-item:last-child {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
.ant-checkbox-group-rtl .ant-checkbox-group-item + .ant-checkbox-group-item {
|
||||
margin-left: 8px;
|
||||
}
|
||||
2
web/node_modules/antd/es/checkbox/style/index.d.ts
generated
vendored
Normal file
2
web/node_modules/antd/es/checkbox/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/checkbox/style/index.js
generated
vendored
Normal file
2
web/node_modules/antd/es/checkbox/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
5
web/node_modules/antd/es/checkbox/style/index.less
generated
vendored
Normal file
5
web/node_modules/antd/es/checkbox/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
@import '../../style/themes/index';
|
||||
@import './mixin';
|
||||
|
||||
.antCheckboxFn();
|
||||
@import './rtl';
|
||||
221
web/node_modules/antd/es/checkbox/style/mixin.less
generated
vendored
Normal file
221
web/node_modules/antd/es/checkbox/style/mixin.less
generated
vendored
Normal file
@@ -0,0 +1,221 @@
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
.antCheckboxFn(@checkbox-prefix-cls: ~'@{ant-prefix}-checkbox') {
|
||||
@checkbox-inner-prefix-cls: ~'@{checkbox-prefix-cls}-inner';
|
||||
// 一般状态
|
||||
.@{checkbox-prefix-cls} {
|
||||
.reset-component;
|
||||
|
||||
position: relative;
|
||||
top: -0.09em;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
|
||||
.@{checkbox-prefix-cls}-wrapper:hover &-inner,
|
||||
&:hover &-inner,
|
||||
&-input:focus + &-inner {
|
||||
border-color: @checkbox-color;
|
||||
}
|
||||
|
||||
&-checked::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 1px solid @checkbox-color;
|
||||
border-radius: @border-radius-base;
|
||||
visibility: hidden;
|
||||
animation: antCheckboxEffect 0.36s ease-in-out;
|
||||
animation-fill-mode: backwards;
|
||||
content: '';
|
||||
}
|
||||
|
||||
&:hover::after,
|
||||
.@{checkbox-prefix-cls}-wrapper:hover &::after {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
&-inner {
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
width: @checkbox-size;
|
||||
height: @checkbox-size;
|
||||
direction: ltr;
|
||||
background-color: @checkbox-check-bg;
|
||||
border: @checkbox-border-width @border-style-base @border-color-base;
|
||||
border-radius: @border-radius-base;
|
||||
// Fix IE checked style
|
||||
// https://github.com/ant-design/ant-design/issues/12597
|
||||
border-collapse: separate;
|
||||
transition: all 0.3s;
|
||||
|
||||
&::after {
|
||||
@check-width: (@checkbox-size / 14) * 5px;
|
||||
@check-height: (@checkbox-size / 14) * 8px;
|
||||
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 22%;
|
||||
display: table;
|
||||
width: @check-width;
|
||||
height: @check-height;
|
||||
border: 2px solid @checkbox-check-color;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
transform: rotate(45deg) scale(0) translate(-50%, -50%);
|
||||
opacity: 0;
|
||||
transition: all 0.1s @ease-in-back, opacity 0.1s;
|
||||
content: ' ';
|
||||
}
|
||||
}
|
||||
|
||||
&-input {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 选中状态
|
||||
.@{checkbox-prefix-cls}-checked .@{checkbox-inner-prefix-cls}::after {
|
||||
position: absolute;
|
||||
display: table;
|
||||
border: 2px solid @checkbox-check-color;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
||||
opacity: 1;
|
||||
transition: all 0.2s @ease-out-back 0.1s;
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
.@{checkbox-prefix-cls}-checked {
|
||||
.@{checkbox-inner-prefix-cls} {
|
||||
background-color: @checkbox-color;
|
||||
border-color: @checkbox-color;
|
||||
}
|
||||
}
|
||||
|
||||
.@{checkbox-prefix-cls}-disabled {
|
||||
cursor: not-allowed;
|
||||
|
||||
&.@{checkbox-prefix-cls}-checked {
|
||||
.@{checkbox-inner-prefix-cls}::after {
|
||||
border-color: @disabled-color;
|
||||
animation-name: none;
|
||||
}
|
||||
}
|
||||
|
||||
.@{checkbox-prefix-cls}-input {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.@{checkbox-inner-prefix-cls} {
|
||||
background-color: @input-disabled-bg;
|
||||
border-color: @border-color-base !important;
|
||||
&::after {
|
||||
border-color: @input-disabled-bg;
|
||||
border-collapse: separate;
|
||||
animation-name: none;
|
||||
}
|
||||
}
|
||||
|
||||
& + span {
|
||||
color: @disabled-color;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
// Not show highlight border of checkbox when disabled
|
||||
&:hover::after,
|
||||
.@{checkbox-prefix-cls}-wrapper:hover &::after {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.@{checkbox-prefix-cls}-wrapper {
|
||||
.reset-component;
|
||||
|
||||
display: inline-block;
|
||||
line-height: unset;
|
||||
cursor: pointer;
|
||||
&.@{checkbox-prefix-cls}-wrapper-disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
& + & {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.@{checkbox-prefix-cls} + span {
|
||||
padding-right: 8px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.@{checkbox-prefix-cls}-group {
|
||||
.reset-component;
|
||||
|
||||
display: inline-block;
|
||||
&-item {
|
||||
display: inline-block;
|
||||
margin-right: 8px;
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
&-item + &-item {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 半选状态
|
||||
.@{checkbox-prefix-cls}-indeterminate {
|
||||
.@{checkbox-inner-prefix-cls} {
|
||||
background-color: @checkbox-check-bg;
|
||||
border-color: @border-color-base;
|
||||
}
|
||||
.@{checkbox-inner-prefix-cls}::after {
|
||||
@indeterminate-width: @checkbox-size - 8px;
|
||||
@indeterminate-height: @checkbox-size - 8px;
|
||||
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: @indeterminate-width;
|
||||
height: @indeterminate-height;
|
||||
background-color: @checkbox-color;
|
||||
border: 0;
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
opacity: 1;
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
&.@{checkbox-prefix-cls}-disabled .@{checkbox-inner-prefix-cls}::after {
|
||||
background-color: @disabled-color;
|
||||
border-color: @disabled-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes antCheckboxEffect {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
opacity: 0.5;
|
||||
}
|
||||
100% {
|
||||
transform: scale(1.6);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
26
web/node_modules/antd/es/checkbox/style/rtl.less
generated
vendored
Normal file
26
web/node_modules/antd/es/checkbox/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
.antCheckboxFn(@checkbox-prefix-cls: ~'@{ant-prefix}-checkbox') {
|
||||
.@{checkbox-prefix-cls}-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.@{checkbox-prefix-cls}-group {
|
||||
&-item {
|
||||
.@{checkbox-prefix-cls}-group-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
&:last-child {
|
||||
.@{checkbox-prefix-cls}-group-rtl & {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-item + &-item {
|
||||
.@{checkbox-prefix-cls}-group-rtl & {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user