mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
chore: update typescript@~2.9.1 (#10748)
This commit is contained in:
parent
30eacdfb1b
commit
bbf5cb75c3
@ -75,7 +75,7 @@ export default class Avatar extends React.Component<AvatarProps, AvatarState> {
|
||||
|
||||
render() {
|
||||
const {
|
||||
prefixCls, shape, size, src, icon, className, ...others,
|
||||
prefixCls, shape, size, src, icon, className, ...others
|
||||
} = this.props;
|
||||
|
||||
const sizeCls = classNames({
|
||||
|
@ -59,7 +59,7 @@ export default class Badge extends React.Component<BadgeProps, any> {
|
||||
text,
|
||||
offset,
|
||||
title,
|
||||
...restProps,
|
||||
...restProps
|
||||
} = this.props;
|
||||
let displayCount = (count as number) > (overflowCount as number) ? `${overflowCount}+` : count;
|
||||
const isZero = displayCount === '0' || displayCount === 0;
|
||||
|
@ -157,7 +157,7 @@ export default class Button extends React.Component<ButtonProps, any> {
|
||||
|
||||
render() {
|
||||
const {
|
||||
type, shape, size, className, htmlType, children, icon, prefixCls, ghost, ...others,
|
||||
type, shape, size, className, htmlType, children, icon, prefixCls, ghost, ...others
|
||||
} = this.props;
|
||||
|
||||
const { loading, clicked, hasTwoCNChar } = this.state;
|
||||
|
@ -134,7 +134,7 @@ export default class Card extends React.Component<CardProps, CardState> {
|
||||
render() {
|
||||
const {
|
||||
prefixCls = 'ant-card', className, extra, bodyStyle = {}, noHovering, hoverable, title, loading,
|
||||
bordered = true, type, cover, actions, tabList, children, activeTabKey, defaultActiveTabKey, ...others,
|
||||
bordered = true, type, cover, actions, tabList, children, activeTabKey, defaultActiveTabKey, ...others
|
||||
} = this.props;
|
||||
|
||||
const classString = classNames(prefixCls, className, {
|
||||
|
@ -339,7 +339,7 @@ export default class Cascader extends React.Component<CascaderProps, CascaderSta
|
||||
const { props, state } = this;
|
||||
const {
|
||||
prefixCls, inputPrefixCls, children, placeholder, size, disabled,
|
||||
className, style, allowClear, showSearch = false, ...otherProps,
|
||||
className, style, allowClear, showSearch = false, ...otherProps
|
||||
} = props;
|
||||
const value = state.value;
|
||||
|
||||
|
@ -79,7 +79,7 @@ export default class Checkbox extends React.Component<CheckboxProps, {}> {
|
||||
style,
|
||||
onMouseEnter,
|
||||
onMouseLeave,
|
||||
...restProps,
|
||||
...restProps
|
||||
} = props;
|
||||
const { checkboxGroup } = context;
|
||||
let checkboxProps: CheckboxProps = { ...restProps };
|
||||
|
@ -18,7 +18,7 @@ export default function Divider({
|
||||
className,
|
||||
children,
|
||||
dashed,
|
||||
...restProps,
|
||||
...restProps
|
||||
}: DividerProps) {
|
||||
const orientationPrefix = (orientation.length > 0) ? '-' + orientation : orientation;
|
||||
const classString = classNames(
|
||||
|
@ -24,7 +24,7 @@ export default class DropdownButton extends React.Component<DropdownButtonProps,
|
||||
type, disabled, onClick, children,
|
||||
prefixCls, className, overlay, trigger, align,
|
||||
visible, onVisibleChange, placement, getPopupContainer,
|
||||
...restProps,
|
||||
...restProps
|
||||
} = this.props;
|
||||
|
||||
const dropdownProps = {
|
||||
|
@ -115,7 +115,7 @@ export default class Row extends React.Component<RowProps, RowState> {
|
||||
render() {
|
||||
const {
|
||||
type, justify, align, className, style, children,
|
||||
prefixCls = 'ant-row', ...others,
|
||||
prefixCls = 'ant-row', ...others
|
||||
} = this.props;
|
||||
const gutter = this.getGutter();
|
||||
const classes = classNames({
|
||||
|
@ -180,7 +180,7 @@ export default class Sider extends React.Component<SiderProps, SiderState> {
|
||||
render() {
|
||||
const { prefixCls, className, theme,
|
||||
collapsible, reverseArrow, trigger, style, width, collapsedWidth,
|
||||
...others,
|
||||
...others
|
||||
} = this.props;
|
||||
const divProps = omit(others, ['collapsed',
|
||||
'defaultCollapsed', 'onCollapse', 'breakpoint']);
|
||||
|
@ -31,7 +31,7 @@ export const Meta = (props: ListItemMetaProps) => {
|
||||
avatar,
|
||||
title,
|
||||
description,
|
||||
...others,
|
||||
...others
|
||||
} = props;
|
||||
|
||||
const classString = classNames(`${prefixCls}-item-meta`, className);
|
||||
|
@ -162,7 +162,7 @@ export default class List extends React.Component<ListProps> {
|
||||
footer,
|
||||
loading,
|
||||
locale,
|
||||
...rest,
|
||||
...rest
|
||||
} = this.props;
|
||||
|
||||
let loadingProp = loading;
|
||||
|
@ -70,7 +70,7 @@ export default class Progress extends React.Component<ProgressProps, {}> {
|
||||
const props = this.props;
|
||||
const {
|
||||
prefixCls, className, percent = 0, status, format, trailColor, size, successPercent,
|
||||
type, strokeWidth, width, showInfo, gapDegree = 0, gapPosition, ...restProps,
|
||||
type, strokeWidth, width, showInfo, gapDegree = 0, gapPosition, ...restProps
|
||||
} = props;
|
||||
const progressStatus = parseInt((successPercent ? successPercent.toString() : percent.toString()), 10) >= 100 &&
|
||||
!('status' in props) ? 'success' : (status || 'normal');
|
||||
|
@ -47,7 +47,7 @@ export default class Radio extends React.Component<RadioProps, {}> {
|
||||
className,
|
||||
children,
|
||||
style,
|
||||
...restProps,
|
||||
...restProps
|
||||
} = props;
|
||||
const { radioGroup } = context;
|
||||
let radioProps: RadioProps = { ...restProps };
|
||||
|
@ -130,7 +130,7 @@ export default class Select extends React.Component<SelectProps, {}> {
|
||||
className = '',
|
||||
size,
|
||||
mode,
|
||||
...restProps,
|
||||
...restProps
|
||||
} = this.props;
|
||||
const cls = classNames({
|
||||
[`${prefixCls}-lg`]: size === 'large',
|
||||
|
@ -25,7 +25,7 @@ export default class Timeline extends React.Component<TimelineProps, any> {
|
||||
prefixCls,
|
||||
pending = null, pendingDot,
|
||||
children, className, reverse,
|
||||
...restProps,
|
||||
...restProps
|
||||
} = this.props;
|
||||
const pendingNode = typeof pending === 'boolean' ? null : pending;
|
||||
const classString = classNames(prefixCls, {
|
||||
|
@ -52,7 +52,7 @@ export default class TreeSelect extends React.Component<TreeSelectProps, any> {
|
||||
notFoundContent,
|
||||
dropdownStyle,
|
||||
dropdownClassName,
|
||||
...restProps,
|
||||
...restProps
|
||||
} = this.props;
|
||||
|
||||
const cls = classNames({
|
||||
|
@ -167,7 +167,7 @@
|
||||
"scrollama": "^1.4.1",
|
||||
"stylelint": "9.2.1",
|
||||
"stylelint-config-standard": "^18.0.0",
|
||||
"typescript": "~2.8.1",
|
||||
"typescript": "~2.9.1",
|
||||
"unified": "^7.0.0",
|
||||
"values.js": "^1.0.3",
|
||||
"xhr-mock": "^2.4.0",
|
||||
|
Loading…
Reference in New Issue
Block a user