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
@@ -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();
|