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