bkui-vue 2.0.2-beta.37 → 2.0.2-beta.38

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/lib/index.js CHANGED
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.37";
6
+ export const version = "2.0.2-beta.38";
7
7
  window.__bkui_vue_version__ = version;
@@ -2957,6 +2957,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
2957
2957
  debounceSetMenuList();
2958
2958
  }
2959
2959
  function handleInputChange(event) {
2960
+ console.log('handleInputChange', event, isComposition.value);
2960
2961
  if (isComposition.value) return;
2961
2962
  clearInputBr();
2962
2963
  var text = event.target.innerText;
@@ -3337,7 +3338,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3337
3338
  }
3338
3339
  loading.value = true;
3339
3340
  _context5.next = 5;
3340
- return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value)["catch"](function () {
3341
+ return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim())["catch"](function () {
3341
3342
  return [];
3342
3343
  });
3343
3344
  case 5:
@@ -3394,7 +3395,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3394
3395
  try {
3395
3396
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3396
3397
  _child = _step3.value;
3397
- if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
3398
+ if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim())) {
3398
3399
  _filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
3399
3400
  realId: item.id,
3400
3401
  id: (0,shared_namespaceObject.random)(10),
@@ -3428,7 +3429,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3428
3429
  list = props.conditions;
3429
3430
  } else if (!((_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
3430
3431
  list = usingItem.value.children.filter(function (item) {
3431
- return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
3432
+ return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim());
3432
3433
  });
3433
3434
  }
3434
3435
  case 10:
@@ -3673,10 +3674,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3673
3674
  function handleCompositionEnd(event) {
3674
3675
  isComposition.value = false;
3675
3676
  keyword.value = event.data;
3677
+ console.log('handleCompositionEnd', keyword.value);
3676
3678
  handleInputChange(event);
3677
3679
  }
3678
3680
  function handleCompositionStart() {
3679
3681
  isComposition.value = true;
3682
+ console.log('handleCompositionStart');
3680
3683
  }
3681
3684
  // expose
3682
3685
  expose({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.37",
3
+ "version": "2.0.2-beta.38",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",