bkui-vue 2.0.2-beta.61 → 2.0.2-beta.62
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.cjs.js +8 -8
- package/dist/index.esm.js +1011 -1011
- package/dist/index.umd.js +8 -8
- package/lib/index.js +1 -1
- package/lib/search-select/index.js +3 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -3326,7 +3326,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3326
3326
|
function _setMenuList() {
|
3327
3327
|
_setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
|
3328
3328
|
var _props$data, _usingItem$value$sear, _usingItem$value$valu;
|
3329
|
-
var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
3329
|
+
var list, _usingItem$value14, _usingItem$value15, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
3330
3330
|
return regenerator_default().wrap(function _callee5$(_context5) {
|
3331
3331
|
while (1) switch (_context5.prev = _context5.next) {
|
3332
3332
|
case 0:
|
@@ -3337,7 +3337,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3337
3337
|
}
|
3338
3338
|
loading.value = true;
|
3339
3339
|
_context5.next = 5;
|
3340
|
-
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim())["catch"](function () {
|
3340
|
+
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim() || ((_usingItem$value15 = usingItem.value) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15.values) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15[0]) === null || _usingItem$value15 === void 0 ? void 0 : _usingItem$value15.name) || '')["catch"](function () {
|
3341
3341
|
return [];
|
3342
3342
|
});
|
3343
3343
|
case 5:
|
@@ -3433,7 +3433,6 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3433
3433
|
}
|
3434
3434
|
case 10:
|
3435
3435
|
menuList.value = list;
|
3436
|
-
console.log('list', list);
|
3437
3436
|
if (props.valueBehavior === ValueBehavior.NEED_KEY) {
|
3438
3437
|
hoverItem = list.find(function (item) {
|
3439
3438
|
return !item.disabled;
|
@@ -3444,7 +3443,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3444
3443
|
menuHoverId.value = hoverItem.id;
|
3445
3444
|
}
|
3446
3445
|
}
|
3447
|
-
case
|
3446
|
+
case 12:
|
3448
3447
|
case "end":
|
3449
3448
|
return _context5.stop();
|
3450
3449
|
}
|