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