mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
parent
44d5fc6fd2
commit
1dac1370de
@ -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') {
|
||||
|
@ -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 ?
|
||||
|
@ -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;
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
4
custom-typings.d.ts
vendored
@ -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' {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user