This commit is contained in:
yangchch6 2019-02-28 17:17:28 +08:00
commit aaa60b8f97
17 changed files with 80 additions and 13 deletions

View File

@ -28,7 +28,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
//import isWindow from './isWindow';

View File

@ -1,6 +1,10 @@
'use strict';
exports.__esModule = true;
/**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
var EVENT_NAME_MAP = {
transitionend: {
transition: 'transitionend',

View File

@ -13,6 +13,10 @@ var _reactDom2 = _interopRequireDefault(_reactDom);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
function addEventListenerWrap(target, eventType, cb) {
/* eslint camelcase: 2 */
var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {

View File

@ -36,4 +36,7 @@ function all() {
}
return (0, _createChainableTypeChecker2.default)(allPropTypes);
}
} /**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/

View File

@ -2,7 +2,11 @@
exports.__esModule = true;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
var _react = require('react');

View File

@ -2,6 +2,10 @@
exports.__esModule = true;
exports.default = contains;
/**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
function contains(root, n) {
var node = n;
while (node) {

View File

@ -1,6 +1,10 @@
'use strict';
exports.__esModule = true;
/**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
function createChainedFunction() {
for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
funcs[_key] = arguments[_key];

View File

@ -2,7 +2,11 @@
exports.__esModule = true;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
var _Event = require('./Event');

View File

@ -9,8 +9,10 @@ var _warning2 = _interopRequireDefault(_warning);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var warned = {};
var warned = {}; /**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
function deprecated(validator, reason) {
return function validate(props, propName, componentName, location, propFullName) {
var componentNameSafe = componentName || '<<anonymous>>';

View File

@ -2,7 +2,11 @@
exports.__esModule = true;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
var _react = require('react');

View File

@ -2,7 +2,11 @@
exports.__esModule = true;
var _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; };
var _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; }; /**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
exports.default = getContainerRenderMixin;

View File

@ -2,6 +2,10 @@
exports.__esModule = true;
exports.default = isRequiredForA11y;
/**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
function isRequiredForA11y(validator) {
return function validate(props, propName, componentName, location, propFullName) {
var componentNameSafe = componentName || '<<anonymous>>';

View File

@ -1,3 +1,7 @@
/**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
'use strict';
/**

View File

@ -2,6 +2,10 @@
exports.__esModule = true;
exports.default = splitComponentProps;
/**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
function _objectEntries(obj) {
var entries = [];
var keys = Object.keys(obj);

View File

@ -15,4 +15,7 @@ function toArray(children) {
ret.push(c);
});
return ret;
}
} /**
* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/

View File

@ -13,6 +13,10 @@ exports.default = createChainableTypeChecker;
// Mostly taken from ReactPropTypes.
/* This source code is quoted from rc-util.
* homepage: https://github.com/react-component/util
*/
function createChainableTypeChecker(validate) {
function checkType(isRequired, props, propName, componentName, location, propFullName) {
var componentNameSafe = componentName || '<<anonymous>>';

View File

@ -206,7 +206,7 @@ $color-light: $gray-darker !default;
//redius
$default-border-radius: 4px;
$default-border-radius: $border-radius;
// hover时的背景色包括selectdropdowntabledatepickertreemenu等组件
$hover-bg-color-base: unquote("rgb(#{$item-hover-bg-color-base})") !default;
@ -567,7 +567,7 @@ $timeline-danger-color: $color-danger;
$alert-padding:10px;
$alert-font-size:12px;
$alert-border-radius: 4px;
$alert-border-radius: $border-radius;
$alert-text-padding-left: 15px;
$alert-text-padding-right: 15px;
$alert-close-font-size: 21px;
@ -700,6 +700,8 @@ $loading-duration: 360 * $loading-arc-time / (
strip-units($loading-arc-start-rot + (360deg - $loading-arc-size)));
// datetimepicker
$timepicker-border-gap-color:#ccc;
$timepicker-font-size:14px;
$date-bg-color: unquote("rgb(#{$primary-color})") !default;
@ -1236,7 +1238,6 @@ $message-font-size: 12px;
$message-right: 30px;
$message-width: 300px;
$message-text-margin-right: 15px;
$default-border-radius: 4px;
$message-padding: 0;
$message-content-padding: 15px;
$message-background: $gray-darkest;
@ -1494,3 +1495,9 @@ $tree-node-bg-color: $hover-bg-color-base !default;
// bee-table
$table-head-background-color: unquote("rgb(#{$table-header-background-color})") !default;
$table-head-text-color: unquote("rgb(#{$table-header-text-color})") !default;
// bee-transfer
$transfer-border-gap-color:#d9d9d9;
// bee-transfer
$cascader-border-gap-color:#ccc;