mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
upgrade and fix tslint problems
This commit is contained in:
parent
af89c14e4a
commit
fd625ef1a0
@ -110,7 +110,7 @@ export default class Badge extends React.Component<BadgeProps, any> {
|
||||
component=""
|
||||
showProp="data-show"
|
||||
transitionName={children ? `${prefixCls}-zoom` : ''}
|
||||
transitionAppear={true}
|
||||
transitionAppear
|
||||
>
|
||||
{scrollNumber}
|
||||
</Animate>
|
||||
|
@ -224,7 +224,7 @@ export default class RangePicker extends React.Component<any, any> {
|
||||
<span className={props.pickerInputClass} disabled={props.disabled}>
|
||||
<input
|
||||
disabled={props.disabled}
|
||||
readOnly={true}
|
||||
readOnly
|
||||
value={(start && start.format(props.format)) || ''}
|
||||
placeholder={startPlaceholder}
|
||||
className={`${prefixCls}-range-picker-input`}
|
||||
@ -232,7 +232,7 @@ export default class RangePicker extends React.Component<any, any> {
|
||||
<span className={`${prefixCls}-range-picker-separator`}> ~ </span>
|
||||
<input
|
||||
disabled={props.disabled}
|
||||
readOnly={true}
|
||||
readOnly
|
||||
value={(end && end.format(props.format)) || ''}
|
||||
placeholder={endPlaceholder}
|
||||
className={`${prefixCls}-range-picker-input`}
|
||||
|
@ -128,7 +128,7 @@ export default function createPicker(TheCalendar): any {
|
||||
<span>
|
||||
<input
|
||||
disabled={props.disabled}
|
||||
readOnly={true}
|
||||
readOnly
|
||||
value={(inputValue && inputValue.format(props.format)) || ''}
|
||||
placeholder={placeholder}
|
||||
className={props.pickerInputClass}
|
||||
|
@ -57,7 +57,7 @@ export default function confirm(config) {
|
||||
<ActionButton actionFn={props.onCancel} closeModal={close}>
|
||||
{props.cancelText}
|
||||
</ActionButton>
|
||||
<ActionButton type="primary" actionFn={props.onOk} closeModal={close} autoFocus={true}>
|
||||
<ActionButton type="primary" actionFn={props.onOk} closeModal={close} autoFocus>
|
||||
{props.okText}
|
||||
</ActionButton>
|
||||
</div>
|
||||
@ -65,7 +65,7 @@ export default function confirm(config) {
|
||||
} else {
|
||||
footer = (
|
||||
<div className={`${prefixCls}-btns`}>
|
||||
<ActionButton type="primary" actionFn={props.onOk} closeModal={close} autoFocus={true}>
|
||||
<ActionButton type="primary" actionFn={props.onOk} closeModal={close} autoFocus>
|
||||
{props.okText}
|
||||
</ActionButton>
|
||||
</div>
|
||||
@ -80,7 +80,7 @@ export default function confirm(config) {
|
||||
<Dialog
|
||||
className={classString}
|
||||
onCancel={close.bind(this, { triggerCancel: true })}
|
||||
visible={true}
|
||||
visible
|
||||
title=""
|
||||
transitionName="zoom"
|
||||
footer=""
|
||||
|
@ -179,7 +179,7 @@ export default class Tabs extends React.Component<TabsProps, any> {
|
||||
className={cls}
|
||||
tabBarPosition={tabPosition}
|
||||
renderTabBar={renderTabBar}
|
||||
renderTabContent={() => <TabContent animated={tabPaneAnimated} animatedWithMargin={true} />}
|
||||
renderTabContent={() => <TabContent animated={tabPaneAnimated} animatedWithMargin />}
|
||||
onChange={this.handleChange}
|
||||
>
|
||||
{childrenWithClose || children}
|
||||
|
@ -104,7 +104,7 @@ export default class Tag extends React.Component<TagProps, any> {
|
||||
component=""
|
||||
showProp="data-show"
|
||||
transitionName={`${prefixCls}-zoom`}
|
||||
transitionAppear={true}
|
||||
transitionAppear
|
||||
onEnd={this.animationEnd}
|
||||
>
|
||||
{tag}
|
||||
|
@ -82,7 +82,7 @@
|
||||
"@types/react": "^15.0.8",
|
||||
"@types/react-dom": "~0.14.18",
|
||||
"antd-demo-jest": "^1.0.5",
|
||||
"antd-tools": "^1.2.0",
|
||||
"antd-tools": "^1.4.2",
|
||||
"babel-cli": "^6.18.0",
|
||||
"babel-eslint": "^7.1.0",
|
||||
"babel-jest": "^19.0.0",
|
||||
|
@ -5,6 +5,8 @@
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"experimentalDecorators": true,
|
||||
"jsx": "preserve",
|
||||
"noUnusedParameters": true,
|
||||
"noUnusedLocals": true,
|
||||
"target": "es6",
|
||||
"lib": [
|
||||
"dom",
|
||||
|
Loading…
Reference in New Issue
Block a user