plain-design 1.0.0-beta.120 → 1.0.0-beta.122

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.120",
3
+ "version": "1.0.0-beta.122",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -136,8 +136,9 @@ export function createTreeNode(
136
136
  };
137
137
  /*当前节点的文本是否匹配搜索关键词*/
138
138
  const isMatchSearch = () => {
139
+ if (empty) {return false;}
139
140
  const { filterMethod, filterText } = props;
140
- if (filterText == null) {
141
+ if (filterText == null || !filterText.trim().length) {
141
142
  return true;
142
143
  }
143
144
  const label = self.label();