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

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.38";
6
+ export const version = "2.0.2-beta.39";
7
7
  window.__bkui_vue_version__ = version;
@@ -2581,10 +2581,10 @@ var SelectedItem = /*#__PURE__*/function () {
2581
2581
  if (!str) return str;
2582
2582
  var keyword = props.keyword;
2583
2583
  var len = keyword.length;
2584
- if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase())) return str;
2584
+ if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase().trim())) return str;
2585
2585
  var list = [];
2586
2586
  var lastIndex = -1;
2587
- keyword = keyword.replace(/([.*/]{1})/gim, '\\$1');
2587
+ keyword = keyword.replace(/([.*/]{1})/gim, '\\$1').trim();
2588
2588
  str.replace(new RegExp("".concat(keyword), 'igm'), function (key, index) {
2589
2589
  if (list.length === 0 && index !== 0) {
2590
2590
  list.push(str.slice(0, index));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.38",
3
+ "version": "2.0.2-beta.39",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",