deps: replace obejct.omit with omit.js, close: #2988 (#2994)

This commit is contained in:
Benjy Cui 2016-09-10 17:17:55 +08:00 committed by 偏右
parent 44d5fc6fd2
commit 1dac1370de
9 changed files with 11 additions and 11 deletions

View File

@ -3,7 +3,7 @@ import Animate from 'rc-animate';
import Icon from '../icon';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import classNames from 'classnames';
import omit from 'object.omit';
import omit from 'omit.js';
function getScroll(target, top) {
if (typeof window === 'undefined') {

View File

@ -3,7 +3,7 @@ import { createElement, Component } from 'react';
import {findDOMNode} from 'react-dom';
import isCssAnimationSupported from '../_util/isCssAnimationSupported';
import assign from 'object-assign';
import omit from 'object.omit';
import omit from 'omit.js';
function getNumberArray(num) {
return num ?

View File

@ -5,7 +5,7 @@ import Icon from '../icon';
import arrayTreeFilter from 'array-tree-filter';
import classNames from 'classnames';
import splitObject from '../_util/splitObject';
import omit from 'object.omit';
import omit from 'omit.js';
export interface CascaderOptionType {
value: string;

View File

@ -2,7 +2,7 @@ import * as React from 'react';
import { PropTypes } from 'react';
import classNames from 'classnames';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import omit from 'object.omit';
import omit from 'omit.js';
import warning from 'warning';
import assign from 'object-assign';
import FormItem from './FormItem';

View File

@ -3,7 +3,7 @@ import { Component, PropTypes } from 'react';
import classNames from 'classnames';
import calculateNodeHeight from './calculateNodeHeight';
import assign from 'object-assign';
import omit from 'object.omit';
import omit from 'omit.js';
function fixControlledValue(value) {
if (typeof value === 'undefined' || value === null) {
@ -35,7 +35,7 @@ interface AutoSizeType {
export interface InputProps {
prefixCls?: string;
className?: string;
type: string;
type?: string;
id?: number | string;
value?: any;
defaultValue?: any;

View File

@ -4,7 +4,7 @@ import { findDOMNode } from 'react-dom';
import classNames from 'classnames';
import isCssAnimationSupported from '../_util/isCssAnimationSupported';
import splitObject from '../_util/splitObject';
import omit from 'object.omit';
import omit from 'omit.js';
export interface SpinProps {
prefixCls?: string;

View File

@ -4,7 +4,7 @@ import Animate from 'rc-animate';
import Icon from '../icon';
import classNames from 'classnames';
import splitObject from '../_util/splitObject';
import omit from 'object.omit';
import omit from 'omit.js';
export interface TagProps {
/** 标签是否可以关闭 */

4
custom-typings.d.ts vendored
View File

@ -67,8 +67,8 @@ declare module "object-assign" {
export default function(target: any, ...sources: any[]): any;
}
declare module "object.omit" {
export default function(target: any, ...sources: any[]): any;
declare module "omit.js" {
export default function(obj: Object, fields: string[]): any;
}
declare module 'rc-animate' {

View File

@ -40,7 +40,7 @@
"gregorian-calendar": "~4.1.0",
"gregorian-calendar-format": "~4.1.0",
"object-assign": "~4.1.0",
"object.omit": "^2.0.0",
"omit.js": "^0.1.0",
"rc-animate": "~2.3.0",
"rc-calendar": "^7.0.3",
"rc-cascader": "~0.10.1",