@titaui/pc 1.12.37 → 1.12.38

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.
@@ -137,19 +137,20 @@ var EvaluteCard = function EvaluteCard(props) {
137
137
  (0, _react.useEffect)(function () {
138
138
  if (evaluation) {
139
139
  setCurrentEvalute(evaluation);
140
-
141
- if (type === 1) {
142
- setEvaluateConfig({
143
- bgc: "rgba(240, 163, 38, 0.12)"
144
- });
145
- } else if (type === 2) {
146
- var curTypeConfig = RemarkTypeList.find(function (item) {
147
- return item.id === Number(value);
148
- }) || {};
149
- setEvaluateConfig(curTypeConfig);
150
- }
151
140
  }
152
141
  }, [evaluation]);
142
+ (0, _react.useEffect)(function () {
143
+ if (type === 1) {
144
+ setEvaluateConfig({
145
+ bgc: "rgba(240, 163, 38, 0.12)"
146
+ });
147
+ } else if (type === 2) {
148
+ var curTypeConfig = RemarkTypeList.find(function (item) {
149
+ return item.id === Number(value);
150
+ }) || {};
151
+ setEvaluateConfig(curTypeConfig);
152
+ }
153
+ }, [currentEvalute]);
153
154
  return /*#__PURE__*/_react["default"].createElement("div", {
154
155
  className: (0, _classnames["default"])(preCls, (_classNames = {}, _defineProperty(_classNames, "".concat(preCls, "__score"), type === 1), _defineProperty(_classNames, "".concat(preCls, "__").concat(evaluateConfig.key), type === 2), _classNames)),
155
156
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.12.37",
3
+ "version": "1.12.38",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",