indicator-ui 0.0.304 → 0.0.305
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/dist/index.js
CHANGED
|
@@ -50992,7 +50992,8 @@ function SelectField(_ref) {
|
|
|
50992
50992
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
50993
50993
|
onBlur = _ref.onBlur,
|
|
50994
50994
|
pagination = _ref.pagination,
|
|
50995
|
-
_onFocus = _ref.onFocus
|
|
50995
|
+
_onFocus = _ref.onFocus,
|
|
50996
|
+
isActiveItem = _ref.isActiveItem;
|
|
50996
50997
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
|
50997
50998
|
_useState2 = _slicedToArray(_useState, 2),
|
|
50998
50999
|
isFocus = _useState2[0],
|
|
@@ -51151,6 +51152,9 @@ function SelectField(_ref) {
|
|
|
51151
51152
|
};
|
|
51152
51153
|
}();
|
|
51153
51154
|
var isActive = function isActive(curItem) {
|
|
51155
|
+
if (isActiveItem) {
|
|
51156
|
+
return isActiveItem(curItem);
|
|
51157
|
+
}
|
|
51154
51158
|
var saveValue = value || [];
|
|
51155
51159
|
var arrValue = Array.isArray(saveValue) ? saveValue : [saveValue];
|
|
51156
51160
|
return !!arrValue.find(function (item) {
|