@gingkoo/pandora-metabase 0.0.1-alpha.11 → 0.0.1-alpha.12

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/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-metabase v0.0.1-alpha.11
2
+ * @gingkoo/pandora-metabase v0.0.1-alpha.12
3
3
  */
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import * as React from 'react';
@@ -3215,7 +3215,7 @@ const SelectJoinColumn = ({
3215
3215
  if (v.alias === tableAlias) {
3216
3216
  return {
3217
3217
  ...v,
3218
- columns: _data[i]?.columns.filter(v => ~v.name.toLocaleLowerCase().indexOf(val.toLocaleLowerCase())),
3218
+ columns: _data[i]?.columns.filter(v => ~(v.name + (v.name_zh || '')).toLocaleLowerCase().indexOf(val.toLocaleLowerCase())),
3219
3219
  searchText: val
3220
3220
  };
3221
3221
  }
@@ -4111,7 +4111,7 @@ const SelectTable = ({
4111
4111
  function onInput(e) {
4112
4112
  let val = e.target.value;
4113
4113
  let newList = _$3.cloneDeep(originList.slice());
4114
- setList(newList.filter(v => ~v.name.toLocaleLowerCase().indexOf(val.toLocaleLowerCase())));
4114
+ setList(newList.filter(v => ~(v.name + (v.name_zh || '')).toLocaleLowerCase().indexOf(val.toLocaleLowerCase())));
4115
4115
  }
4116
4116
  function goPrevPage() {
4117
4117
  setVal({