@titaui/pc 1.9.21 → 1.9.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -188,7 +188,7 @@ var Header = function Header(props) {
188
188
  editable: editable,
189
189
  okrId: okrInfo.workId,
190
190
  score: okrInfo.evaluateValue,
191
- isEvaluate: okrInfo.manualEvaluateValue
191
+ isEvaluate: okrInfo.manualEvaluateValue || !!okrInfo.evaluateValue
192
192
  }))), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
193
193
  okrInfo: okrInfo,
194
194
  renderContent: renderContent
@@ -75,7 +75,7 @@ var OScore = function OScore(props) {
75
75
  refreshAll = _useContext.refreshAll;
76
76
 
77
77
  var _useState3 = (0, _react.useState)({
78
- score: score,
78
+ score: score.toFixed(2),
79
79
  describe: ""
80
80
  }),
81
81
  _useState4 = _slicedToArray(_useState3, 2),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.21",
3
+ "version": "1.9.22",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -149,7 +149,7 @@ const Header = (props) => {
149
149
  <OCycle editable={editable} okrId={okrInfo.workId} />
150
150
  </span>
151
151
  <span className={`${precls}__action-item`}>
152
- {(showOkrEvalute || showOScore) && <Score editable={editable} okrId={okrInfo.workId} score={okrInfo.evaluateValue} isEvaluate={okrInfo.manualEvaluateValue} />}
152
+ {(showOkrEvalute || showOScore) && <Score editable={editable} okrId={okrInfo.workId} score={okrInfo.evaluateValue} isEvaluate={okrInfo.manualEvaluateValue||!!okrInfo.evaluateValue} />}
153
153
  </span>
154
154
  </span>
155
155
  <OProgressUpdate okrInfo={okrInfo} renderContent={renderContent} />
@@ -25,7 +25,7 @@ const OScore = (props: IOScoreProps) => {
25
25
  const [visible, setVisible] = useState(false);
26
26
  const { refreshAll } = useContext(CommonContext);
27
27
  const [formFiedlsValue, setFormFiedlsValue] = useState<FormFields>({
28
- score: score,
28
+ score: score.toFixed(2),
29
29
  describe: "",
30
30
  });
31
31
  const formContainerRef = useRef<any>();