forked from p96170835/amis
升级 react-transition-group
This commit is contained in:
parent
402dd1a9c3
commit
0be54764f8
|
@ -66,7 +66,7 @@
|
||||||
"react-progress-2": "^4.4.2",
|
"react-progress-2": "^4.4.2",
|
||||||
"react-select": "1.2.1",
|
"react-select": "1.2.1",
|
||||||
"react-textarea-autosize": "5.1.0",
|
"react-textarea-autosize": "5.1.0",
|
||||||
"react-transition-group": "2.2.1",
|
"react-transition-group": "4.4.1",
|
||||||
"react-visibility-sensor": "3.11.0",
|
"react-visibility-sensor": "3.11.0",
|
||||||
"redux": "^3.7.2",
|
"redux": "^3.7.2",
|
||||||
"setimmediate": "1.0.5",
|
"setimmediate": "1.0.5",
|
||||||
|
|
|
@ -19,6 +19,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-clickable {
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: $Form-input-onFocused-borderColor;
|
||||||
|
box-shadow: $Form-input-boxShadow;
|
||||||
|
|
||||||
|
@if $Form-input-onFocused-bg !=$Form-input-bg {
|
||||||
|
background-color: $Form-input-onFocused-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.is-error.is-focused {
|
&.is-error.is-focused {
|
||||||
border-color: $Form-input-onError-borderColor;
|
border-color: $Form-input-onError-borderColor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,7 +124,8 @@ export class ResultBox extends React.Component<ResultBoxProps> {
|
||||||
className,
|
className,
|
||||||
isFocused ? 'is-focused' : '',
|
isFocused ? 'is-focused' : '',
|
||||||
disabled ? 'is-disabled' : '',
|
disabled ? 'is-disabled' : '',
|
||||||
hasError ? 'is-error' : ''
|
hasError ? 'is-error' : '',
|
||||||
|
onResultClick ? 'is-clickable' : ''
|
||||||
)}
|
)}
|
||||||
onClick={onResultClick}
|
onClick={onResultClick}
|
||||||
tabIndex={!allowInput && onFocus ? 0 : -1}
|
tabIndex={!allowInput && onFocus ? 0 : -1}
|
||||||
|
|
Loading…
Reference in New Issue