@ucloud-fe/react-components 1.10.1 → 1.10.3
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/CHANGELOG.md +19 -0
- package/dist/main.min.js +2 -2
- package/index.d.ts +2 -0
- package/lib/components/DatePicker/Range.js +4 -4
- package/lib/components/Message/Message.js +1 -1
- package/lib/components/Message/style/index.js +19 -19
- package/lib/components/Nav/Nav.d.ts +6 -1
- package/lib/components/Nav/Nav.js +12 -19
- package/lib/components/Nav/NavContext.d.ts +1 -1
- package/lib/components/Nav/NavItem.js +2 -2
- package/lib/components/Nav/style/index.js +4 -4
- package/lib/components/Table/Table.js +1 -1
- package/lib/components/Table/utils.js +2 -2
- package/lib/components/Textarea/style/index.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export { default as Select } from './lib/components/Select';
|
|
|
48
48
|
|
|
49
49
|
export { default as Breadcrumb } from './lib/components/Breadcrumb';
|
|
50
50
|
|
|
51
|
+
export { default as Nav } from './lib/components/Nav';
|
|
52
|
+
|
|
51
53
|
// Button
|
|
52
54
|
import { ButtonProps } from './lib/components/Button/Button';
|
|
53
55
|
export { default as Button } from './lib/components/Button';
|
|
@@ -278,8 +278,8 @@ var Range = function Range(_ref2) {
|
|
|
278
278
|
onChange(newValue);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
setCacheValue(newValue);
|
|
282
|
-
}.bind(this), [cacheValue, rules, precision, isFirstEditing, locale, onChange]);
|
|
281
|
+
setCacheValue(formatRangeValue(newValue, nullable, d));
|
|
282
|
+
}.bind(this), [cacheValue, rules, precision, isFirstEditing, locale, onChange, nullable, d]);
|
|
283
283
|
var handleEndChange = (0, _react.useCallback)(function (value, isClear) {
|
|
284
284
|
(0, _newArrowCheck2.default)(this, _this3);
|
|
285
285
|
|
|
@@ -318,8 +318,8 @@ var Range = function Range(_ref2) {
|
|
|
318
318
|
onChange(newValue);
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
setCacheValue(newValue);
|
|
322
|
-
}.bind(this), [cacheValue, rules, precision, isFirstEditing, locale, onChange]);
|
|
321
|
+
setCacheValue(formatRangeValue(newValue, nullable, d));
|
|
322
|
+
}.bind(this), [cacheValue, rules, precision, isFirstEditing, locale, onChange, nullable, d]);
|
|
323
323
|
var onClearS = (0, _react.useCallback)(function () {
|
|
324
324
|
(0, _newArrowCheck2.default)(this, _this3);
|
|
325
325
|
handleStartChange(null, true);
|
|
@@ -121,7 +121,7 @@ var Message = /*#__PURE__*/function (_Component) {
|
|
|
121
121
|
}, /*#__PURE__*/_react.default.createElement(_SvgIcon.default, {
|
|
122
122
|
size: "20px",
|
|
123
123
|
type: "cross"
|
|
124
|
-
})), title && /*#__PURE__*/_react.default.createElement(_style.TitleWrap, null, title), children && /*#__PURE__*/_react.default.createElement(_style.ContentWrap, null, children), footer && /*#__PURE__*/_react.default.createElement(_style.FooterWrap, null, footer));
|
|
124
|
+
})), title && (children ? /*#__PURE__*/_react.default.createElement(_style.TitleWrap, null, title) : /*#__PURE__*/_react.default.createElement(_style.ContentWrap, null, title)), children && /*#__PURE__*/_react.default.createElement(_style.ContentWrap, null, children), footer && /*#__PURE__*/_react.default.createElement(_style.FooterWrap, null, footer));
|
|
125
125
|
}
|
|
126
126
|
}]);
|
|
127
127
|
return Message;
|