|
|
@@ -49,12 +49,6 @@ class FuncItem extends Component {
|
|
|
supState: 0,
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- if (supValue) {
|
|
|
- this.setState({
|
|
|
- supState: supValue,
|
|
|
- })
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
shouldComponentUpdate (nextProps, nextState, nextContext) {
|
|
|
@@ -109,13 +103,13 @@ class FuncItem extends Component {
|
|
|
style={funcTextStyle}
|
|
|
>{funcObj.name}</span>
|
|
|
{
|
|
|
- ((supAble || supValue) && supState) ?
|
|
|
+ ((supAble && supState) || supValue) ?
|
|
|
<sup
|
|
|
className='func-func-sup'
|
|
|
style={{
|
|
|
// paddingTop: getOS() === 'Android' ? '3px' : '0px',
|
|
|
}}
|
|
|
- >{supState}</sup> : ''
|
|
|
+ >{supValue || supState}</sup> : ''
|
|
|
}
|
|
|
</div>
|
|
|
{
|