@whitesev/pops 2.4.0 → 2.4.1
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/dist/index.amd.js +1 -3
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +1 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +1 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +1 -3
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +1 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/components/searchSuggestion/types/index.d.ts +0 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10919,14 +10919,13 @@ const searchSuggestionConfig = () => {
|
|
|
10919
10919
|
for (let index = 0; index < 10; index++) {
|
|
10920
10920
|
data.push({
|
|
10921
10921
|
value: `测试${index}`,
|
|
10922
|
-
text: `测试${index}-html`,
|
|
10923
10922
|
enableDeleteButton: true,
|
|
10924
10923
|
deleteButtonClickCallback(event, $dataItem, dataItem, config) {
|
|
10925
10924
|
console.log("删除当前项", [event, $dataItem, dataItem, config]);
|
|
10926
10925
|
return true;
|
|
10927
10926
|
},
|
|
10928
10927
|
itemView(dateItem, $parent) {
|
|
10929
|
-
return
|
|
10928
|
+
return `测试${index}-html`;
|
|
10930
10929
|
},
|
|
10931
10930
|
clickCallback(event, $dataItem, dataItem, config) {
|
|
10932
10931
|
console.log("item项的点击回调", [event, $dataItem, data, config]);
|
|
@@ -11575,7 +11574,6 @@ const PopsSearchSuggestion = {
|
|
|
11575
11574
|
// 需目标高度+搜索建议框高度大于文档高度,则显示在上面
|
|
11576
11575
|
let targetBottom = targetRect.bottom;
|
|
11577
11576
|
let searchSuggestionContainerHeight = popsDOMUtils.height(SearchSuggestion.$el.$hintULContainer);
|
|
11578
|
-
console.log(targetBottom, searchSuggestionContainerHeight, targetBottom + searchSuggestionContainerHeight, documentHeight);
|
|
11579
11577
|
if (targetBottom + searchSuggestionContainerHeight > documentHeight) {
|
|
11580
11578
|
// 在上面
|
|
11581
11579
|
position = "top";
|