@zhenliang/sheet 0.2.5-beta.2 → 0.2.5-beta.4
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.
|
@@ -75,7 +75,7 @@ export var getFormulaInputEditor = function getFormulaInputEditor(options, repla
|
|
|
75
75
|
}, [inputValue, flatOptions]);
|
|
76
76
|
// 根据搜索文本获取筛选后的层级选项(保持层级结构)
|
|
77
77
|
var filteredHierarchyOptions = useMemo(function () {
|
|
78
|
-
var searchText = inputAfterDropDownShow;
|
|
78
|
+
var searchText = inputAfterDropDownShow.trim();
|
|
79
79
|
// 如果搜索文本为空,显示所有选项(保持层级)
|
|
80
80
|
if (!searchText) {
|
|
81
81
|
return options;
|