@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.system.js
CHANGED
|
@@ -10924,14 +10924,13 @@ System.register('pops', [], (function (exports) {
|
|
|
10924
10924
|
for (let index = 0; index < 10; index++) {
|
|
10925
10925
|
data.push({
|
|
10926
10926
|
value: `测试${index}`,
|
|
10927
|
-
text: `测试${index}-html`,
|
|
10928
10927
|
enableDeleteButton: true,
|
|
10929
10928
|
deleteButtonClickCallback(event, $dataItem, dataItem, config) {
|
|
10930
10929
|
console.log("删除当前项", [event, $dataItem, dataItem, config]);
|
|
10931
10930
|
return true;
|
|
10932
10931
|
},
|
|
10933
10932
|
itemView(dateItem, $parent) {
|
|
10934
|
-
return
|
|
10933
|
+
return `测试${index}-html`;
|
|
10935
10934
|
},
|
|
10936
10935
|
clickCallback(event, $dataItem, dataItem, config) {
|
|
10937
10936
|
console.log("item项的点击回调", [event, $dataItem, data, config]);
|
|
@@ -11580,7 +11579,6 @@ System.register('pops', [], (function (exports) {
|
|
|
11580
11579
|
// 需目标高度+搜索建议框高度大于文档高度,则显示在上面
|
|
11581
11580
|
let targetBottom = targetRect.bottom;
|
|
11582
11581
|
let searchSuggestionContainerHeight = popsDOMUtils.height(SearchSuggestion.$el.$hintULContainer);
|
|
11583
|
-
console.log(targetBottom, searchSuggestionContainerHeight, targetBottom + searchSuggestionContainerHeight, documentHeight);
|
|
11584
11582
|
if (targetBottom + searchSuggestionContainerHeight > documentHeight) {
|
|
11585
11583
|
// 在上面
|
|
11586
11584
|
position = "top";
|