@titaui/pc 1.9.24 → 1.9.25
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.
- package/lib/components/form/form-fields/input/index.js +1 -2
- package/lib/components/okr-detail/components/header/index.js +1 -1
- package/lib/components/okr-detail/components/header/o-score.js +1 -3
- package/package.json +1 -1
- package/src/components/form/form-fields/input/index.tsx +1 -1
- package/src/components/okr-detail/components/header/index.js +1 -1
- package/src/components/okr-detail/components/header/o-score.tsx +1 -1
|
@@ -152,8 +152,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
152
152
|
|
|
153
153
|
if (errors.length) {
|
|
154
154
|
setHasError(true);
|
|
155
|
-
setTip(errors[0].tip);
|
|
156
|
-
inputRef.current.focus();
|
|
155
|
+
setTip(errors[0].tip); // inputRef.current.focus();
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
return errors;
|
|
@@ -189,7 +189,7 @@ var Header = function Header(props) {
|
|
|
189
189
|
}, (showOkrEvalute || showOScore || okrInfo.manualEvaluateValue) && /*#__PURE__*/_react["default"].createElement(_oScore["default"], {
|
|
190
190
|
editable: editable && showOScore,
|
|
191
191
|
okrId: okrInfo.workId,
|
|
192
|
-
score: okrInfo.evaluateValue,
|
|
192
|
+
score: showOkrEvalute || okrInfo.manualEvaluateValue ? okrInfo.evaluateValue : 0,
|
|
193
193
|
isEvaluate: okrInfo.manualEvaluateValue || showOkrEvalute && !!okrInfo.evaluateValue
|
|
194
194
|
}))), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
195
195
|
okrInfo: okrInfo,
|
|
@@ -99,9 +99,7 @@ var OScore = function OScore(props) {
|
|
|
99
99
|
|
|
100
100
|
var checkForm = function checkForm() {
|
|
101
101
|
// @ts-ignore
|
|
102
|
-
var errors = formRef.current.verifing(
|
|
103
|
-
onlyFirstError: true
|
|
104
|
-
});
|
|
102
|
+
var errors = formRef.current.verifing();
|
|
105
103
|
if (errors.length) return false;
|
|
106
104
|
return true;
|
|
107
105
|
};
|
package/package.json
CHANGED
|
@@ -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 || okrInfo.manualEvaluateValue) && <Score editable={editable&&showOScore} okrId={okrInfo.workId} score={okrInfo.evaluateValue} isEvaluate={okrInfo.manualEvaluateValue || (showOkrEvalute && !!okrInfo.evaluateValue)} />}
|
|
152
|
+
{(showOkrEvalute || showOScore || okrInfo.manualEvaluateValue) && <Score editable={editable&&showOScore} okrId={okrInfo.workId} score={showOkrEvalute || okrInfo.manualEvaluateValue ? okrInfo.evaluateValue:0} isEvaluate={okrInfo.manualEvaluateValue || (showOkrEvalute && !!okrInfo.evaluateValue)} />}
|
|
153
153
|
</span>
|
|
154
154
|
</span>
|
|
155
155
|
<OProgressUpdate okrInfo={okrInfo} renderContent={renderContent} />
|
|
@@ -45,7 +45,7 @@ const OScore = (props: IOScoreProps) => {
|
|
|
45
45
|
|
|
46
46
|
const checkForm = () => {
|
|
47
47
|
// @ts-ignore
|
|
48
|
-
const errors = formRef.current.verifing(
|
|
48
|
+
const errors = formRef.current.verifing();
|
|
49
49
|
if (errors.length) return false;
|
|
50
50
|
return true;
|
|
51
51
|
};
|