upgrade and fix tslint problems

This commit is contained in:
afc163 2017-05-31 15:48:11 +08:00
parent af89c14e4a
commit fd625ef1a0
8 changed files with 12 additions and 10 deletions

View File

@ -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>

View File

@ -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`}

View File

@ -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}

View File

@ -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=""

View File

@ -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}

View File

@ -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}

View File

@ -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",

View File

@ -5,6 +5,8 @@
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"jsx": "preserve",
"noUnusedParameters": true,
"noUnusedLocals": true,
"target": "es6",
"lib": [
"dom",