@titaui/pc 1.16.3 → 1.16.4
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.
|
@@ -363,19 +363,9 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
363
363
|
}); // 暂时用title
|
|
364
364
|
|
|
365
365
|
if (typeof (mindData === null || mindData === void 0 ? void 0 : mindData.content) === 'string' && (mindData === null || mindData === void 0 ? void 0 : mindData.content) !== '') {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
if (JSON.parse(mindData.content || '{}').SelectedValues) {
|
|
371
|
-
var _JSON$parse;
|
|
372
|
-
|
|
373
|
-
selectEmotionValue = (_JSON$parse = JSON.parse(mindData.content || '{}')) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.SelectedValues[0];
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
setMindImg((_Motion$find = _constant.Motion.find(function (item) {
|
|
377
|
-
return item.id === selectEmotionValue;
|
|
378
|
-
})) === null || _Motion$find === void 0 ? void 0 : _Motion$find.img);
|
|
366
|
+
setMindImg(_constant.Motion.find(function (item) {
|
|
367
|
+
return item.id === JSON.parse(mindData.content || '{}').SelectedValues[0];
|
|
368
|
+
}).img);
|
|
379
369
|
}
|
|
380
370
|
}
|
|
381
371
|
}, [dailyContent]);
|
|
@@ -155,11 +155,10 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
155
155
|
onBlur && onBlur(value);
|
|
156
156
|
setHasActive(false);
|
|
157
157
|
|
|
158
|
-
var errors = _verifing();
|
|
158
|
+
var errors = _verifing(); // if(onBlur) {
|
|
159
|
+
// onBlur()
|
|
160
|
+
// }
|
|
159
161
|
|
|
160
|
-
if (onBlur) {
|
|
161
|
-
onBlur();
|
|
162
|
-
}
|
|
163
162
|
|
|
164
163
|
if (errors.length) {
|
|
165
164
|
setHasError(true);
|
package/lib/index.js
CHANGED
|
@@ -615,6 +615,12 @@ Object.defineProperty(exports, "Textarea", {
|
|
|
615
615
|
return _textarea["default"];
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
|
+
Object.defineProperty(exports, "TimePicker", {
|
|
619
|
+
enumerable: true,
|
|
620
|
+
get: function get() {
|
|
621
|
+
return _timePicker["default"];
|
|
622
|
+
}
|
|
623
|
+
});
|
|
618
624
|
Object.defineProperty(exports, "TitaChart", {
|
|
619
625
|
enumerable: true,
|
|
620
626
|
get: function get() {
|
|
@@ -938,6 +944,8 @@ var _tabs = _interopRequireDefault(require("./components/tabs"));
|
|
|
938
944
|
|
|
939
945
|
var _titaChart = _interopRequireDefault(require("./components/tita-chart"));
|
|
940
946
|
|
|
947
|
+
var _timePicker = _interopRequireDefault(require("./components/time-picker"));
|
|
948
|
+
|
|
941
949
|
var _tooltip = _interopRequireDefault(require("./components/tooltip"));
|
|
942
950
|
|
|
943
951
|
var _textarea = _interopRequireDefault(require("./components/textarea"));
|