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

Sign up to get free protection for your applications and to get access to all the features.
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();