Browse Source

upgrade and fix tslint problems

pull/6307/head
afc163 8 years ago
parent
commit
fd625ef1a0
  1. 2
      components/badge/index.tsx
  2. 4
      components/date-picker/RangePicker.tsx
  3. 2
      components/date-picker/createPicker.tsx
  4. 6
      components/modal/confirm.tsx
  5. 2
      components/tabs/index.tsx
  6. 2
      components/tag/index.tsx
  7. 2
      package.json
  8. 2
      tsconfig.json

2
components/badge/index.tsx

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

4
components/date-picker/RangePicker.tsx

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

2
components/date-picker/createPicker.tsx

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

6
components/modal/confirm.tsx

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

2
components/tabs/index.tsx

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

2
components/tag/index.tsx

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

2
package.json

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

2
tsconfig.json

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

Loading…
Cancel
Save