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

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.121",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -137,7 +137,7 @@ export function createTreeNode(
137
137
  /*当前节点的文本是否匹配搜索关键词*/
138
138
  const isMatchSearch = () => {
139
139
  const { filterMethod, filterText } = props;
140
- if (filterText == null) {
140
+ if (filterText == null || !filterText.trim().length) {
141
141
  return true;
142
142
  }
143
143
  const label = self.label();