@chlp-tech/rpa-ui 0.0.19 → 0.0.21
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.
|
@@ -155,7 +155,8 @@ var AccountSelect = function AccountSelect(props) {
|
|
|
155
155
|
var list = (_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.filter(function (item) {
|
|
156
156
|
var accountName = (item.accountName || '').toString().toLowerCase();
|
|
157
157
|
var ownerName = (item.ownerUserName || '').toString().toLowerCase();
|
|
158
|
-
|
|
158
|
+
var remark = (item.remark || '').toString().toLowerCase();
|
|
159
|
+
return accountName.includes(searchValue) || ownerName.includes(searchValue) || remark.includes(searchValue);
|
|
159
160
|
});
|
|
160
161
|
setOptionList(list || []);
|
|
161
162
|
};
|
|
@@ -52,7 +52,7 @@ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
52
52
|
return (_props$menu2 = props.menu) === null || _props$menu2 === void 0 || (_props$menu2 = _props$menu2.items) === null || _props$menu2 === void 0 || (_props$menu2 = _props$menu2.find(function (item) {
|
|
53
53
|
return item.key === activeItem;
|
|
54
54
|
})) === null || _props$menu2 === void 0 ? void 0 : _props$menu2.component;
|
|
55
|
-
}, [activeItem, props]);
|
|
55
|
+
}, [activeItem, props.menu]);
|
|
56
56
|
var handleOpen = function handleOpen() {
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
58
58
|
props.onOpen && props.onOpen();
|