调整评分

dev_cs
杨树明 6 years ago
parent d4737b3aa2
commit 18e67e7bee

@ -116,7 +116,7 @@ class ShixunsHome extends Component {
// myValue = Math.floor(myValue) + 0.5;
// }
return <Rating {...rest} defaultValue={myValue} />;
return <Rating {...rest} value={myValue} />;
};
return (
<div className="newMain clearfix backFAFAFA shixunsHome">

@ -95,7 +95,7 @@ export default class TPMFork_listComponent extends Component {
// myValue = Math.floor(myValue) + 0.5;
// }
return <Rating {...rest} defaultValue={myValue} />;
return <Rating {...rest} value={myValue} />;
};
return (
<React.Fragment>

@ -53,7 +53,7 @@ class ShixunCard extends Component {
// myValue = Math.floor(myValue) + 0.5;
// }
return <Rating {...rest} defaultValue={myValue} />;
return <Rating {...rest} value={myValue} />;
};
return (
<div className="educontent mb80">

Loading…
Cancel
Save